Home
last modified time | relevance | path

Searched refs:ring_num (Results 1 – 2 of 2) sorted by relevance

/linux-3.4.99/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c1161 unsigned int ring_num; in pch_gbe_tx_queue() local
1211 ring_num = tx_ring->next_to_use; in pch_gbe_tx_queue()
1212 if (unlikely((ring_num + 1) == tx_ring->count)) in pch_gbe_tx_queue()
1215 tx_ring->next_to_use = ring_num + 1; in pch_gbe_tx_queue()
1218 buffer_info = &tx_ring->buffer_info[ring_num]; in pch_gbe_tx_queue()
1237 tx_ring->next_to_use = ring_num; in pch_gbe_tx_queue()
1244 tx_desc = PCH_GBE_TX_DESC(*tx_ring, ring_num); in pch_gbe_tx_queue()
1251 if (unlikely(++ring_num == tx_ring->count)) in pch_gbe_tx_queue()
1252 ring_num = 0; in pch_gbe_tx_queue()
1256 (int)sizeof(struct pch_gbe_tx_desc) * ring_num, in pch_gbe_tx_queue()
/linux-3.4.99/drivers/net/ethernet/broadcom/
Dbnx2.c5109 bnx2_init_tx_ring(struct bnx2 *bp, int ring_num) in bnx2_init_tx_ring() argument
5116 bnapi = &bp->bnx2_napi[ring_num]; in bnx2_init_tx_ring()
5119 if (ring_num == 0) in bnx2_init_tx_ring()
5122 cid = TX_TSS_CID + ring_num - 1; in bnx2_init_tx_ring()
5165 bnx2_init_rx_ring(struct bnx2 *bp, int ring_num) in bnx2_init_rx_ring() argument
5170 struct bnx2_napi *bnapi = &bp->bnx2_napi[ring_num]; in bnx2_init_rx_ring()
5173 if (ring_num == 0) in bnx2_init_rx_ring()
5176 cid = RX_RSS_CID + ring_num - 1; in bnx2_init_rx_ring()
5198 BNX2_L2CTX_RBDC_JUMBO_KEY - ring_num); in bnx2_init_rx_ring()
5220 ring_num, i, bp->rx_pg_ring_size); in bnx2_init_rx_ring()
[all …]