Searched refs:ring_prod (Results 1 – 4 of 4) sorted by relevance
/linux-3.4.99/drivers/xen/ |
D | evtchn.c | 63 unsigned int ring_cons, ring_prod, ring_overflow; member 118 if ((u->ring_prod - u->ring_cons) < EVTCHN_RING_SIZE) { in evtchn_interrupt() 119 u->ring[EVTCHN_RING_MASK(u->ring_prod)] = port; in evtchn_interrupt() 121 if (u->ring_cons == u->ring_prod++) { in evtchn_interrupt() 158 p = u->ring_prod; in evtchn_read() 168 u->ring_cons != u->ring_prod); in evtchn_read() 414 u->ring_cons = u->ring_prod = u->ring_overflow = 0; in evtchn_ioctl() 436 if (u->ring_cons != u->ring_prod) in evtchn_poll()
|
/linux-3.4.99/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.h | 1147 u16 ring_prod, cqe_ring_prod; in bnx2x_alloc_rx_bds() local 1151 cqe_ring_prod = ring_prod = 0; in bnx2x_alloc_rx_bds() 1157 if (bnx2x_alloc_rx_data(bp, fp, ring_prod) < 0) { in bnx2x_alloc_rx_bds() 1161 ring_prod = NEXT_RX_IDX(ring_prod); in bnx2x_alloc_rx_bds() 1163 WARN_ON(ring_prod <= (i - failure_cnt)); in bnx2x_alloc_rx_bds() 1170 fp->rx_bd_prod = ring_prod; in bnx2x_alloc_rx_bds()
|
D | bnx2x_cmn.c | 1029 u16 ring_prod; in bnx2x_init_rx_rings() local 1067 for (i = 0, ring_prod = 0; in bnx2x_init_rx_rings() 1070 if (bnx2x_alloc_rx_sge(bp, fp, ring_prod) < 0) { in bnx2x_init_rx_rings() 1077 ring_prod); in bnx2x_init_rx_rings() 1081 ring_prod = 0; in bnx2x_init_rx_rings() 1084 ring_prod = NEXT_SGE_IDX(ring_prod); in bnx2x_init_rx_rings() 1087 fp->rx_sge_prod = ring_prod; in bnx2x_init_rx_rings()
|
/linux-3.4.99/drivers/net/ethernet/broadcom/ |
D | bnx2.c | 5168 u16 prod, ring_prod; in bnx2_init_rx_ring() local 5216 ring_prod = prod = rxr->rx_pg_prod; in bnx2_init_rx_ring() 5218 if (bnx2_alloc_rx_page(bp, rxr, ring_prod, GFP_KERNEL) < 0) { in bnx2_init_rx_ring() 5224 ring_prod = RX_PG_RING_IDX(prod); in bnx2_init_rx_ring() 5228 ring_prod = prod = rxr->rx_prod; in bnx2_init_rx_ring() 5230 if (bnx2_alloc_rx_data(bp, rxr, ring_prod, GFP_KERNEL) < 0) { in bnx2_init_rx_ring() 5236 ring_prod = RX_RING_IDX(prod); in bnx2_init_rx_ring() 6457 u16 prod, ring_prod; in bnx2_start_xmit() local 6478 ring_prod = TX_RING_IDX(prod); in bnx2_start_xmit() 6530 tx_buf = &txr->tx_buf_ring[ring_prod]; in bnx2_start_xmit() [all …]
|