Home
last modified time | relevance | path

Searched refs:rx_ring (Results 1 – 25 of 55) sorted by relevance

123

/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlge/
H A Dqlge.c73 int ql_clean_outbound_rx_ring(struct rx_ring *rx_ring);
173 ql_read_sh_reg(qlge_t *qlge, struct rx_ring *rx_ring) in ql_read_sh_reg() argument
179 rx_ring->prod_idx_sh_reg_offset, in ql_read_sh_reg()
183 (uint32_t *)rx_ring->prod_idx_sh_reg); in ql_read_sh_reg()
928 ql_update_sbq_prod_idx(qlge_t *qlge, struct rx_ring *rx_ring) in ql_update_sbq_prod_idx() argument
932 rx_ring->sbq_prod_idx)); in ql_update_sbq_prod_idx()
933 ql_write_doorbell_reg(qlge, rx_ring->sbq_prod_idx_db_reg, in ql_update_sbq_prod_idx()
934 rx_ring->sbq_prod_idx); in ql_update_sbq_prod_idx()
941 ql_update_lbq_prod_idx(qlge_t *qlge, struct rx_ring *rx_ring) in ql_update_lbq_prod_idx() argument
945 rx_ring->lbq_prod_idx)); in ql_update_lbq_prod_idx()
[all …]
H A Dqlge_gld.c222 struct rx_ring *rx_ring; in ql_m_getstat() local
316 rx_ring = &qlge->rx_ring[i]; in ql_m_getstat()
317 cur_stats->rbytes += rx_ring->rx_bytes; in ql_m_getstat()
325 rx_ring = &qlge->rx_ring[i]; in ql_m_getstat()
326 cur_stats->rpackets += rx_ring->rx_packets; in ql_m_getstat()
334 rx_ring = &qlge->rx_ring[i]; in ql_m_getstat()
335 cur_stats->crc += rx_ring->fcs_err; in ql_m_getstat()
343 rx_ring = &qlge->rx_ring[i]; in ql_m_getstat()
345 rx_ring->frame_too_long; in ql_m_getstat()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_squeue.c444 ip_squeue_bind_ring(ill_t *ill, ill_rx_ring_t *rx_ring, processorid_t cpuid) in ip_squeue_bind_ring() argument
447 ASSERT(rx_ring->rr_ill == ill); in ip_squeue_bind_ring()
450 if (rx_ring->rr_ring_state == RR_FREE || in ip_squeue_bind_ring()
451 rx_ring->rr_ring_state == RR_FREE_INPROG) { in ip_squeue_bind_ring()
456 if (ip_squeue_cpu_move(rx_ring->rr_sqp, cpuid) != -1) in ip_squeue_bind_ring()
457 rx_ring->rr_ring_state = RR_SQUEUE_BOUND; in ip_squeue_bind_ring()
466 ill_rx_ring_t *rx_ring, *ring_tbl; in ip_squeue_add_ring() local
479 rx_ring = &ring_tbl[ip_rx_index]; in ip_squeue_add_ring()
480 if (rx_ring->rr_ring_state == RR_FREE) in ip_squeue_add_ring()
500 bzero(rx_ring, sizeof (ill_rx_ring_t)); in ip_squeue_add_ring()
[all …]
/illumos-gate/usr/src/uts/common/io/qede/
H A Dqede_main.c326 qede_rx_ring_t *rx_ring; in qede_destroy_locks() local
336 rx_ring = fp->rx_ring; in qede_destroy_locks()
337 mutex_destroy(&rx_ring->rx_lock); in qede_destroy_locks()
338 mutex_destroy(&rx_ring->rx_replen_lock); in qede_destroy_locks()
354 qede_rx_ring_t *rx_ring; in qede_init_locks() local
367 rx_ring = fp->rx_ring; in qede_init_locks()
368 mutex_init(&rx_ring->rx_lock, NULL, in qede_init_locks()
370 mutex_init(&rx_ring->rx_replen_lock, NULL, in qede_init_locks()
395 qede_rx_ring_t *rx_ring; in qede_alloc_io_structs() local
405 rx_ring = &qede->rx_array[i]; in qede_alloc_io_structs()
[all …]
H A Dqede_fp.c114 qede_print_rx_indexes(qede_rx_ring_t *rx_ring) in qede_print_rx_indexes() argument
116 u16 hw_bd_cons = HOST_TO_LE_16(*rx_ring->hw_cons_ptr); in qede_print_rx_indexes()
117 u16 sw_bd_cons = ecore_chain_get_cons_idx(&rx_ring->rx_cqe_ring); in qede_print_rx_indexes()
119 hw_bd_cons &= (rx_ring->qede->rx_ring_size - 1); in qede_print_rx_indexes()
120 sw_bd_cons &= (rx_ring->qede->rx_ring_size - 1); in qede_print_rx_indexes()
227 qede_has_rx_work(qede_rx_ring_t *rx_ring) in qede_has_rx_work() argument
229 u16 hw_bd_cons = HOST_TO_LE_16(*rx_ring->hw_cons_ptr); in qede_has_rx_work()
230 u16 sw_bd_cons = ecore_chain_get_cons_idx(&rx_ring->rx_cqe_ring); in qede_has_rx_work()
270 qede_get_next_rx_buffer(qede_rx_ring_t *rx_ring, in qede_get_next_rx_buffer() argument
276 rx_buffer = qede_get_from_active_list(rx_ring, &num_entries); in qede_get_next_rx_buffer()
[all …]
H A Dqede_kstat.c260 qede_rx_ring_t *rx_ring; in qede_kstat_update() local
332 rx_ring = fp->rx_ring; in qede_kstat_update()
333 qede->rxTotalPkts += rx_ring->rx_pkt_cnt; in qede_kstat_update()
334 qede->rxTotalBytes += rx_ring->rx_byte_cnt; in qede_kstat_update()
335 qede->rxTotalDiscards += rx_ring->rx_drop_cnt; in qede_kstat_update()
578 qede_rx_ring_t *rx_ring = &qede->rx_array[idx]; in qede_kstat_rxq_update() local
590 pStats->rxLowWater.value.ui64 = rx_ring->rx_low_buffer_threshold; in qede_kstat_rxq_update()
595 ecore_chain_get_elem_left(&rx_ring->rx_bd_ring); in qede_kstat_rxq_update()
603 ecore_chain_get_prod_idx(&rx_ring->rx_bd_ring) & in qede_kstat_rxq_update()
604 (rx_ring->qede->rx_ring_size - 1); in qede_kstat_rxq_update()
[all …]
H A Dqede_fp.h39 #define RX_INDICATE_UPSTREAM(rx_ring, mp) \ argument
40 mac_rx_ring(rx_ring->qede->mac_handle, \
41 rx_ring->mac_ring_handle, mp, \
42 rx_ring->mr_gen_num)
/illumos-gate/usr/src/uts/common/io/igb/
H A Digb_rx.c51 igb_rx_ring_t *rx_ring; in igb_rx_recycle() local
59 rx_ring = rx_data->rx_ring; in igb_rx_recycle()
60 igb = rx_ring->igb; in igb_rx_recycle()
142 igb_t *igb = rx_data->rx_ring->igb; in igb_rx_copy()
188 igb_t *igb = rx_data->rx_ring->igb; in igb_rx_bind()
292 igb_rx_ring_t *rx_ring = (igb_rx_ring_t *)arg; in igb_rx_ring_poll() local
297 if ((bytes == 0) || (rx_ring->igb->igb_state & IGB_SUSPENDED) || in igb_rx_ring_poll()
298 !(rx_ring->igb->igb_state & IGB_STARTED)) in igb_rx_ring_poll()
301 mutex_enter(&rx_ring->rx_lock); in igb_rx_ring_poll()
302 mp = igb_rx(rx_ring, bytes); in igb_rx_ring_poll()
[all …]
H A Digb_buf.c127 igb_rx_ring_t *rx_ring; in igb_alloc_dma() local
136 rx_ring = &igb->rx_rings[i]; in igb_alloc_dma()
137 rx_data = rx_ring->rx_data; in igb_alloc_dma()
174 igb_rx_ring_t *rx_ring; in igb_free_dma() local
183 rx_ring = &igb->rx_rings[i]; in igb_free_dma()
184 rx_data = rx_ring->rx_data; in igb_free_dma()
330 igb_alloc_rx_ring_data(igb_rx_ring_t *rx_ring) in igb_alloc_rx_ring_data() argument
333 igb_t *igb = rx_ring->igb; in igb_alloc_rx_ring_data()
347 rx_data->rx_ring = rx_ring; in igb_alloc_rx_ring_data()
397 rx_ring->rx_data = rx_data; in igb_alloc_rx_ring_data()
[all …]
H A Digb_gld.c696 igb_rx_ring_t *rx_ring = (igb_rx_ring_t *)intrh; in igb_rx_ring_intr_enable() local
697 igb_t *igb = rx_ring->igb; in igb_rx_ring_intr_enable()
699 uint32_t index = rx_ring->index; in igb_rx_ring_intr_enable()
724 igb_rx_ring_t *rx_ring = (igb_rx_ring_t *)intrh; in igb_rx_ring_intr_disable() local
725 igb_t *igb = rx_ring->igb; in igb_rx_ring_intr_disable()
727 uint32_t index = rx_ring->index; in igb_rx_ring_intr_disable()
753 igb_rx_ring_t *rx_ring; in igb_get_rx_ring_index() local
757 rx_ring = &igb->rx_rings[i]; in igb_get_rx_ring_index()
758 if (rx_ring->group_index == gindex) in igb_get_rx_ring_index()
770 igb_rx_ring_t *rx_ring = (igb_rx_ring_t *)rh; in igb_ring_start() local
[all …]
/illumos-gate/usr/src/uts/common/io/ixgbe/
H A Dixgbe_rx.c59 ixgbe_rx_ring_t *rx_ring; in ixgbe_rx_recycle() local
67 rx_ring = rx_data->rx_ring; in ixgbe_rx_recycle()
68 ixgbe = rx_ring->ixgbe; in ixgbe_rx_recycle()
152 ixgbe = rx_data->rx_ring->ixgbe; in ixgbe_rx_copy()
196 ixgbe_t *ixgbe = rx_data->rx_ring->ixgbe; in ixgbe_rx_bind()
283 ixgbe_t *ixgbe = rx_data->rx_ring->ixgbe; in ixgbe_lro_bind()
401 ixgbe = rx_data->rx_ring->ixgbe; in ixgbe_lro_copy()
543 ixgbe_ring_rx(ixgbe_rx_ring_t *rx_ring, int poll_bytes) in ixgbe_ring_rx() argument
561 ixgbe_t *ixgbe = rx_ring->ixgbe; in ixgbe_ring_rx()
570 rx_data = rx_ring->rx_data; in ixgbe_ring_rx()
[all …]
H A Dixgbe_buf.c125 ixgbe_rx_ring_t *rx_ring; in ixgbe_alloc_dma() local
134 rx_ring = &ixgbe->rx_rings[i]; in ixgbe_alloc_dma()
135 rx_data = rx_ring->rx_data; in ixgbe_alloc_dma()
171 ixgbe_rx_ring_t *rx_ring; in ixgbe_free_dma() local
180 rx_ring = &ixgbe->rx_rings[i]; in ixgbe_free_dma()
181 rx_data = rx_ring->rx_data; in ixgbe_free_dma()
198 ixgbe_alloc_rx_ring_data(ixgbe_rx_ring_t *rx_ring) in ixgbe_alloc_rx_ring_data() argument
201 ixgbe_t *ixgbe = rx_ring->ixgbe; in ixgbe_alloc_rx_ring_data()
214 rx_data->rx_ring = rx_ring; in ixgbe_alloc_rx_ring_data()
264 rx_ring->rx_data = rx_data; in ixgbe_alloc_rx_ring_data()
[all …]
H A Dixgbe_main.c1144 ixgbe_rx_ring_t *rx_ring; in ixgbe_init_driver_settings() local
1187 rx_ring = &ixgbe->rx_rings[i]; in ixgbe_init_driver_settings()
1188 rx_ring->index = i; in ixgbe_init_driver_settings()
1189 rx_ring->ixgbe = ixgbe; in ixgbe_init_driver_settings()
1190 rx_ring->group_index = i / ring_per_group; in ixgbe_init_driver_settings()
1191 rx_ring->hw_index = ixgbe_get_hw_rx_index(ixgbe, i); in ixgbe_init_driver_settings()
1236 ixgbe_rx_ring_t *rx_ring; in ixgbe_init_locks() local
1241 rx_ring = &ixgbe->rx_rings[i]; in ixgbe_init_locks()
1242 mutex_init(&rx_ring->rx_lock, NULL, in ixgbe_init_locks()
1271 ixgbe_rx_ring_t *rx_ring; in ixgbe_destroy_locks() local
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Depic100.c85 static struct epic_rx_desc rx_ring[RX_RING_SIZE] variable
250 outl(virt_to_le32desc(&rx_ring), prcdar); in epic100_open()
269 rx_ring[i].status = cpu_to_le32(RRING_OWN); /* Owned by Epic chip */ in epic100_init_ring()
270 rx_ring[i].buflength = cpu_to_le32(PKT_BUF_SZ); in epic100_init_ring()
271 rx_ring[i].bufaddr = virt_to_bus(&rx_packet[i * PKT_BUF_SZ]); in epic100_init_ring()
272 rx_ring[i].next = virt_to_le32desc(&rx_ring[i + 1]) ; in epic100_init_ring()
275 rx_ring[i-1].next = virt_to_le32desc(&rx_ring[0]); in epic100_init_ring()
375 if ((rx_ring[entry].status & cpu_to_le32(RRING_OWN)) == RRING_OWN) in epic100_poll()
380 status = le32_to_cpu(rx_ring[entry].status); in epic100_poll()
397 nic->packetlen = le32_to_cpu((rx_ring[entry].buflength))- 4; in epic100_poll()
[all …]
H A Dw89c840.c231 struct w840_rx_desc rx_ring[RX_RING_SIZE]; member
313 writel(virt_to_bus(w840private.rx_ring), ioaddr + RxRingPtr); in w89c840_reset()
452 memcpy(nic->packet, le32desc_to_virt(w840private.rx_ring[entry].buffer1), pkt_len); in w89c840_poll()
456 w840private.rx_ring[entry].status = DescOwn; in w89c840_poll()
474 w840private.rx_head_desc = &w840private.rx_ring[entry]; in w89c840_poll()
915 w840private.rx_head_desc = &w840private.rx_ring[0]; in init_ring()
922 w840private.rx_ring[i].length = w840private.rx_buf_sz; in init_ring()
923 w840private.rx_ring[i].status = 0; in init_ring()
924 w840private.rx_ring[i].next_desc = virt_to_le32desc(&w840private.rx_ring[i+1]); in init_ring()
926 w840private.rx_ring[i].buffer1 = virt_to_le32desc(p + (PKT_BUF_SZ * i)); in init_ring()
[all …]
H A Dsundance.c261 static struct netdev_desc rx_ring[RX_RING_SIZE]; variable
354 rx_ring[i].next_desc = virt_to_le32desc(&rx_ring[i + 1]); in init_ring()
355 rx_ring[i].status = 0; in init_ring()
356 rx_ring[i].length = 0; in init_ring()
357 rx_ring[i].addr = 0; in init_ring()
361 rx_ring[i - 1].next_desc = virt_to_le32desc(&rx_ring[0]); in init_ring()
364 rx_ring[i].addr = virt_to_le32desc(&rxb[i * PKT_BUF_SZ]); in init_ring()
365 rx_ring[i].length = cpu_to_le32(PKT_BUF_SZ | LastFrag); in init_ring()
394 outl(virt_to_le32desc(&rx_ring[0]), BASE + RxListPtr); in sundance_reset()
474 u32 frame_status = le32_to_cpu(rx_ring[entry].status); in sundance_poll()
[all …]
H A Dtlan.c201 struct TLanList rx_ring[TLAN_NUM_RX_LISTS]; variable
295 priv->rx_head_desc = &rx_ring[0]; in TLan_ResetLists()
299 rx_ring[i].forward = virt_to_le32desc(&rx_ring[i + 1]); in TLan_ResetLists()
300 rx_ring[i].cStat = TLAN_CSTAT_READY; in TLan_ResetLists()
301 rx_ring[i].frameSize = TLAN_MAX_FRAME_SIZE; in TLan_ResetLists()
302 rx_ring[i].buffer[0].count = in TLan_ResetLists()
304 rx_ring[i].buffer[0].address = in TLan_ResetLists()
306 rx_ring[i].buffer[1].count = 0; in TLan_ResetLists()
307 rx_ring[i].buffer[1].address = 0; in TLan_ResetLists()
311 rx_ring[i - 1].forward = virt_to_le32desc(&rx_ring[0]); in TLan_ResetLists()
[all …]
H A Dpcnet32.c222 u32 rx_ring; member
242 static struct pcnet32_rx_head rx_ring[RX_RING_SIZE] variable
412 rx_ring[i].base = (u32) virt_to_le32desc(&rxb[i]); in pcnet32_init_ring()
413 rx_ring[i].buf_length = le16_to_cpu(-PKT_BUF_SZ); in pcnet32_init_ring()
414 rx_ring[i].status = le16_to_cpu(0x8000); in pcnet32_init_ring()
429 lp->init_block.rx_ring = (u32) virt_to_le32desc(&rx_ring[0]); in pcnet32_init_ring()
552 status = ((short) le16_to_cpu(rx_ring[entry].status) >> 8); in pcnet32_poll()
561 (le32_to_cpu(rx_ring[entry].msg_length) & 0xfff) - 4; in pcnet32_poll()
566 rx_ring[entry].buf_length = le16_to_cpu(-PKT_BUF_SZ); in pcnet32_poll()
567 rx_ring[entry].status |= le16_to_cpu(0x8000); /* prime for next receive */ in pcnet32_poll()
[all …]
H A Dvia-rhine.c631 struct rhine_rx_desc *rx_ring; member
683 tp->rx_ring[i].rx_status.bits.own_bit = 1; in rhine_init_ring()
684 tp->rx_ring[i].rx_ctrl.bits.rx_buf_size = 1536; in rhine_init_ring()
686 tp->rx_ring[i].buf_addr_1 = virt_to_bus (tp->rx_buffs[i]); in rhine_init_ring()
687 tp->rx_ring[i].buf_addr_2 = virt_to_bus (&tp->rx_ring[i + 1]); in rhine_init_ring()
692 tp->rx_ring[i - 1].buf_addr_2 = virt_to_bus (&tp->rx_ring[0]); in rhine_init_ring()
1121 tp->rx_ring = (struct rhine_rx_desc *) bus_to_virt (j); in rhine_reset()
1160 outl (virt_to_bus (tp->rx_ring), dwCurrentRxDescAddr); in rhine_reset()
1199 if (tp->rx_ring[tp->cur_rx].rx_status.bits.own_bit == 0) in rhine_poll()
1218 rxstatus = tp->rx_ring[tp->cur_rx].rx_status.lw; in rhine_poll()
[all …]
H A Drtl8139.c173 static unsigned char rx_ring[RX_BUF_LEN+16] __attribute__((aligned(4))); variable
343 printf("rx ring address is %X\n",(unsigned long)rx_ring); in rtl_reset()
345 outl((unsigned long)virt_to_bus(rx_ring), nic->ioaddr + RxBuf); in rtl_reset()
445 rx_status = *(unsigned int*)(rx_ring + ring_offs); in rtl_poll()
461 memcpy(nic->packet, rx_ring + ring_offs + 4, semi_count); in rtl_poll()
462 memcpy(nic->packet+semi_count, rx_ring, rx_size-4-semi_count); in rtl_poll()
467 memcpy(nic->packet, rx_ring + ring_offs + 4, nic->packetlen); in rtl_poll()
474 (unsigned long)(rx_ring+ring_offs+4), in rtl_poll()
H A Dns83820.c331 writel(virt_to_le32desc(&rx_ring[ns->cur_rx]), ns->base + RXDP); \
383 static struct ring_desc rx_ring[NR_RX_DESC] variable
514 rx_ring[i].link = virt_to_le32desc(&rx_ring[i + 1]); in ns83820_setup_rx()
515 rx_ring[i].bufptr = in ns83820_setup_rx()
517 rx_ring[i].cmdsts = cpu_to_le32(REAL_RX_BUF_SIZE); in ns83820_setup_rx()
518 rx_ring[i].extsts = cpu_to_le32(0); in ns83820_setup_rx()
523 writel(virt_to_le32desc(&rx_ring[0]), ns->base + RXDP); in ns83820_setup_rx()
664 if (rx_ring[i].cmdsts == CMDSTS_OWN) { in ns83820_check_intr()
666 rx_ring[i].cmdsts = cpu_to_le32(REAL_RX_BUF_SIZE); in ns83820_check_intr()
683 cmdsts = le32_to_cpu(rx_ring[entry].cmdsts); in ns83820_poll()
[all …]
/illumos-gate/usr/src/uts/common/io/xge/drv/
H A Dxgell.c1401 xgell_rx_ring_t *rx_ring = (xgell_rx_ring_t *)rh; in xgell_rx_ring_start() local
1403 rx_ring->ring_gen_num = mr_gen_num; in xgell_rx_ring_start()
1447 xgell_rx_ring_t *rx_ring; in xgell_fill_ring() local
1456 rx_ring = lldev->rx_ring + rg_index; in xgell_fill_ring()
1458 rx_ring = lldev->rx_ring + index; in xgell_fill_ring()
1460 rx_ring->ring_handle = rh; in xgell_fill_ring()
1462 infop->mri_driver = (mac_ring_driver_t)rx_ring; in xgell_fill_ring()
1469 mintr->mi_handle = (mac_intr_handle_t)rx_ring; in xgell_fill_ring()
1506 xgell_rx_ring_t *rx_ring; in xgell_fill_group() local
1510 rx_ring = lldev->rx_ring + index; in xgell_fill_group()
[all …]
/illumos-gate/usr/src/uts/common/io/e1000g/
H A De1000g_rx.c124 Adapter = rx_data->rx_ring->adapter; in e1000g_rxfree_func()
162 rx_data = Adapter->rx_ring->rx_data; in e1000g_rx_setup()
389 Adapter = rx_data->rx_ring->adapter; in e1000g_get_buf()
434 e1000g_receive(e1000g_rx_ring_t *rx_ring, mblk_t **tail, uint_t sz) in e1000g_receive() argument
464 Adapter = rx_ring->adapter; in e1000g_receive()
465 rx_data = rx_ring->rx_data; in e1000g_receive()
483 E1000G_DEBUG_STAT(rx_ring->stat_none); in e1000g_receive()
591 E1000G_STAT(rx_ring->stat_error); in e1000g_receive()
615 E1000G_STAT(rx_ring->stat_crc_only_pkt); in e1000g_receive()
683 E1000G_DEBUG_STAT(rx_ring->stat_no_freepkt); in e1000g_receive()
[all …]
H A De1000g_main.c438 Adapter->rx_ring->adapter = Adapter; in e1000g_attach()
1270 e1000g_rx_ring_t *rx_ring; in e1000g_init_locks() local
1288 rx_ring = Adapter->rx_ring; in e1000g_init_locks()
1290 mutex_init(&rx_ring->rx_lock, NULL, in e1000g_init_locks()
1301 e1000g_rx_ring_t *rx_ring; in e1000g_destroy_locks() local
1310 rx_ring = Adapter->rx_ring; in e1000g_destroy_locks()
1311 mutex_destroy(&rx_ring->rx_lock); in e1000g_destroy_locks()
1681 e1000g_rx_ring_t *rx_ring; in e1000g_alloc_rx_data() local
1684 rx_ring = Adapter->rx_ring; in e1000g_alloc_rx_data()
1692 rx_data->rx_ring = rx_ring; in e1000g_alloc_rx_data()
[all …]
/illumos-gate/usr/src/uts/common/inet/
H A Dsqueue.c180 #define SQS_POLLING_ON(sqp, sq_poll_capable, rx_ring) { \ argument
183 ASSERT(rx_ring != NULL); \
186 if (rx_ring->rr_intr_disable(rx_ring->rr_intr_handle)) \
192 #define SQS_POLLING_OFF(sqp, sq_poll_capable, rx_ring) { \ argument
195 ASSERT(rx_ring != NULL); \
199 rx_ring->rr_intr_enable(rx_ring->rr_intr_handle); \
1079 ill_rx_ring_t *rx_ring; in squeue_worker_thr_control() local
1128 rx_ring = sqp->sq_rx_ring; in squeue_worker_thr_control()
1129 ill = rx_ring->rr_ill; in squeue_worker_thr_control()
1152 rx_ring->rr_sqp = NULL; in squeue_worker_thr_control()
[all …]

123