Lines Matching defs:ring_data
2961 static int rx_intr_handler(struct ring_info *ring_data, int budget)
2972 get_info = ring_data->rx_curr_get_info;
2974 memcpy(&put_info, &ring_data->rx_curr_put_info, sizeof(put_info));
2976 rxdp = ring_data->rx_blocks[get_block].rxds[get_info.offset].virt_addr;
2986 ring_data->dev->name);
2992 ring_data->dev->name);
2995 if (ring_data->rxd_mode == RXD_MODE_1) {
2997 pci_unmap_single(ring_data->pdev, (dma_addr_t)
2999 ring_data->mtu +
3004 } else if (ring_data->rxd_mode == RXD_MODE_3B) {
3006 pci_dma_sync_single_for_cpu(ring_data->pdev,
3010 pci_unmap_single(ring_data->pdev,
3012 ring_data->mtu + 4,
3016 rx_osm_handler(ring_data, rxdp);
3018 ring_data->rx_curr_get_info.offset = get_info.offset;
3019 rxdp = ring_data->rx_blocks[get_block].
3021 if (get_info.offset == rxd_count[ring_data->rxd_mode]) {
3023 ring_data->rx_curr_get_info.offset = get_info.offset;
3025 if (get_block == ring_data->block_count)
3027 ring_data->rx_curr_get_info.block_index = get_block;
3028 rxdp = ring_data->rx_blocks[get_block].block_virt_addr;
3031 if (ring_data->nic->config.napi) {
3041 if (ring_data->lro) {
3044 struct lro *lro = &ring_data->lro0_n[i];
3046 update_L3L4_header(ring_data->nic, lro);
7459 static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp)
7461 struct s2io_nic *sp = ring_data->nic;
7462 struct net_device *dev = (struct net_device *)ring_data->dev;
7465 int ring_no = ring_data->ring_no;
7531 ring_data->rx_bufs_left -= 1;
7543 int get_block = ring_data->rx_curr_get_info.block_index;
7544 int get_off = ring_data->rx_curr_get_info.offset;
7549 struct buffAdd *ba = &ring_data->ba[get_block][get_off];
7555 ((!ring_data->lro) ||
7556 (ring_data->lro && (!(rxdp->Control_1 & RXD_FRAME_IP_FRAG)))) &&
7567 if (ring_data->lro) {
7572 ret = s2io_club_tcp_session(ring_data,
8579 static int s2io_club_tcp_session(struct ring_info *ring_data, u8 *buffer,
8600 struct lro *l_lro = &ring_data->lro0_n[i];
8638 struct lro *l_lro = &ring_data->lro0_n[i];