Home
last modified time | relevance | path

Searched refs:ring_prod (Results 1 – 3 of 3) sorted by relevance

/linux-2.6.39/drivers/xen/
Devtchn.c63 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()
410 u->ring_cons = u->ring_prod = u->ring_overflow = 0; in evtchn_ioctl()
432 if (u->ring_cons != u->ring_prod) in evtchn_poll()
/linux-2.6.39/drivers/net/bnx2x/
Dbnx2x_cmn.c809 u16 ring_prod, cqe_ring_prod; in bnx2x_alloc_rx_bds() local
813 cqe_ring_prod = ring_prod = 0; in bnx2x_alloc_rx_bds()
815 if (bnx2x_alloc_rx_skb(bp, fp, ring_prod) < 0) { in bnx2x_alloc_rx_bds()
821 ring_prod = NEXT_RX_IDX(ring_prod); in bnx2x_alloc_rx_bds()
823 WARN_ON(ring_prod <= i); in bnx2x_alloc_rx_bds()
826 fp->rx_bd_prod = ring_prod; in bnx2x_alloc_rx_bds()
858 u16 ring_prod; in bnx2x_init_rx_rings() local
893 for (i = 0, ring_prod = 0; in bnx2x_init_rx_rings()
896 if (bnx2x_alloc_rx_sge(bp, fp, ring_prod) < 0) { in bnx2x_init_rx_rings()
903 fp, ring_prod); in bnx2x_init_rx_rings()
[all …]
/linux-2.6.39/drivers/net/
Dbnx2.c5104 u16 prod, ring_prod; in bnx2_init_rx_ring() local
5152 ring_prod = prod = rxr->rx_pg_prod; in bnx2_init_rx_ring()
5154 if (bnx2_alloc_rx_page(bp, rxr, ring_prod, GFP_KERNEL) < 0) { in bnx2_init_rx_ring()
5160 ring_prod = RX_PG_RING_IDX(prod); in bnx2_init_rx_ring()
5164 ring_prod = prod = rxr->rx_prod; in bnx2_init_rx_ring()
5166 if (bnx2_alloc_rx_skb(bp, rxr, ring_prod, GFP_KERNEL) < 0) { in bnx2_init_rx_ring()
5172 ring_prod = RX_RING_IDX(prod); in bnx2_init_rx_ring()
6368 u16 prod, ring_prod; in bnx2_start_xmit() local
6389 ring_prod = TX_RING_IDX(prod); in bnx2_start_xmit()
6441 tx_buf = &txr->tx_buf_ring[ring_prod]; in bnx2_start_xmit()
[all …]