Home
last modified time | relevance | path

Searched refs:next_to_clean (Results 1 – 25 of 47) sorted by relevance

12

/drivers/net/ethernet/intel/ixgb/
Dixgb.h121 unsigned int next_to_clean; member
127 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \
128 (R)->next_to_clean - (R)->next_to_use - 1)
Dixgb_main.c723 txdr->next_to_clean = 0; in ixgb_setup_tx_resources()
807 rxdr->next_to_clean = 0; in ixgb_setup_rx_resources()
976 tx_ring->next_to_clean = 0; in ixgb_clean_tx_ring()
1046 rx_ring->next_to_clean = 0; in ixgb_clean_rx_ring()
1850 i = tx_ring->next_to_clean; in ixgb_clean_tx_irq()
1878 tx_ring->next_to_clean = i; in ixgb_clean_tx_irq()
1916 tx_ring->next_to_clean, in ixgb_clean_tx_irq()
2005 i = rx_ring->next_to_clean; in ixgb_clean_rx_irq()
2097 rx_ring->next_to_clean = i; in ixgb_clean_rx_irq()
/drivers/net/ethernet/intel/e1000/
De1000.h182 unsigned int next_to_clean; member
203 unsigned int next_to_clean; member
216 ((((R)->next_to_clean > (R)->next_to_use) \
217 ? 0 : (R)->count) + (R)->next_to_clean - (R)->next_to_use - 1)
/drivers/net/ethernet/pasemi/
Dpasemi_mac.h42 unsigned int next_to_clean; member
55 unsigned int next_to_clean; member
117 #define RING_USED(ring) (((ring)->next_to_fill - (ring)->next_to_clean) \
Dpasemi_mac.c478 ring->next_to_clean = 0; in pasemi_mac_setup_rx_resources()
541 ring->next_to_clean = 0; in pasemi_mac_setup_tx_resources()
563 start = txring->next_to_clean; in pasemi_mac_free_tx_resources()
759 n = rx->next_to_clean; in pasemi_mac_clean_rx()
840 rx_ring(mac)->next_to_clean = n; in pasemi_mac_clean_rx()
882 start = txring->next_to_clean; in pasemi_mac_clean_tx()
937 txring->next_to_clean = i & (TX_RING_SIZE-1); in pasemi_mac_clean_tx()
/drivers/net/ethernet/atheros/atl1c/
Datl1c_main.c880 atomic_set(&tpd_ring->next_to_clean, 0); in atl1c_clean_tx_ring()
902 rfd_ring->next_to_clean = 0; in atl1c_clean_rx_ring()
905 rrd_ring->next_to_clean = 0; in atl1c_clean_rx_ring()
921 atomic_set(&tpd_ring[i].next_to_clean, 0); in atl1c_init_ring_ptrs()
928 rfd_ring->next_to_clean = 0; in atl1c_init_ring_ptrs()
930 rrd_ring->next_to_clean = 0; in atl1c_init_ring_ptrs()
1550 u16 next_to_clean = atomic_read(&tpd_ring->next_to_clean); in atl1c_clean_tx_irq() local
1558 while (next_to_clean != hw_next_to_clean) { in atl1c_clean_tx_irq()
1559 buffer_info = &tpd_ring->buffer_info[next_to_clean]; in atl1c_clean_tx_irq()
1561 if (++next_to_clean == tpd_ring->count) in atl1c_clean_tx_irq()
[all …]
Datl1c.h492 atomic_t next_to_clean; member
503 u16 next_to_clean; member
514 u16 next_to_clean; member
/drivers/net/ethernet/intel/i40e/
Di40e_adminq.c388 hw->aq.asq.next_to_clean = 0; in i40e_init_asq()
447 hw->aq.arq.next_to_clean = 0; in i40e_init_arq()
670 u16 ntc = asq->next_to_clean; in i40e_clean_asq()
696 asq->next_to_clean = ntc; in i40e_clean_asq()
946 u16 ntc = hw->aq.arq.next_to_clean; in i40e_clean_arq_element()
1014 hw->aq.arq.next_to_clean = ntc; in i40e_clean_arq_element()
1038 hw->aq.asq.next_to_clean = 0; in i40e_resume_aq()
1043 hw->aq.arq.next_to_clean = 0; in i40e_resume_aq()
Di40e_txrx.c559 tx_ring->next_to_clean = 0; in i40e_clean_tx_ring()
597 u32 ntu = ((ring->next_to_clean <= ring->next_to_use) in i40e_get_tx_pending()
600 return ntu - ring->next_to_clean; in i40e_get_tx_pending()
670 u16 i = tx_ring->next_to_clean; in i40e_clean_tx_irq()
754 tx_ring->next_to_clean = i; in i40e_clean_tx_irq()
969 tx_ring->next_to_clean = 0; in i40e_setup_tx_descriptors()
1027 rx_ring->next_to_clean = 0; in i40e_clean_rx_ring()
1080 rx_ring->next_to_clean = 0; in i40e_setup_rx_descriptors()
1381 u16 i = rx_ring->next_to_clean; in i40e_clean_rx_irq()
1554 rx_ring->next_to_clean = i; in i40e_clean_rx_irq()
Di40e_adminq.h53 u16 next_to_clean; member
/drivers/net/ethernet/intel/i40evf/
Di40e_adminq.c386 hw->aq.asq.next_to_clean = 0; in i40e_init_asq()
445 hw->aq.arq.next_to_clean = 0; in i40e_init_arq()
623 u16 ntc = asq->next_to_clean; in i40e_clean_asq()
650 asq->next_to_clean = ntc; in i40e_clean_asq()
895 u16 ntc = hw->aq.arq.next_to_clean; in i40evf_clean_arq_element()
966 hw->aq.arq.next_to_clean = ntc; in i40evf_clean_arq_element()
982 hw->aq.asq.next_to_clean = 0; in i40evf_resume_aq()
987 hw->aq.arq.next_to_clean = 0; in i40evf_resume_aq()
Di40e_txrx.c99 tx_ring->next_to_clean = 0; in i40evf_clean_tx_ring()
137 u32 ntu = ((ring->next_to_clean <= ring->next_to_use) in i40e_get_tx_pending()
140 return ntu - ring->next_to_clean; in i40e_get_tx_pending()
204 u16 i = tx_ring->next_to_clean; in i40e_clean_tx_irq()
288 tx_ring->next_to_clean = i; in i40e_clean_tx_irq()
474 tx_ring->next_to_clean = 0; in i40evf_setup_tx_descriptors()
532 rx_ring->next_to_clean = 0; in i40evf_clean_rx_ring()
585 rx_ring->next_to_clean = 0; in i40evf_setup_rx_descriptors()
886 u16 i = rx_ring->next_to_clean; in i40e_clean_rx_irq()
1038 rx_ring->next_to_clean = i; in i40e_clean_rx_irq()
Di40evf.h130 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \
131 (R)->next_to_clean - (R)->next_to_use - 1)
Di40e_adminq.h53 u16 next_to_clean; member
/drivers/net/ethernet/intel/igb/
Digb.h252 u16 next_to_clean; member
317 if (ring->next_to_clean > ring->next_to_use) in igb_desc_unused()
318 return ring->next_to_clean - ring->next_to_use - 1; in igb_desc_unused()
320 return ring->count + ring->next_to_clean - ring->next_to_use - 1; in igb_desc_unused()
/drivers/net/ethernet/atheros/atlx/
Datl1.c1134 atomic_set(&tpd_ring->next_to_clean, 0); in atl1_init_ring_ptrs()
1136 rfd_ring->next_to_clean = 0; in atl1_init_ring_ptrs()
1140 atomic_set(&rrd_ring->next_to_clean, 0); in atl1_init_ring_ptrs()
1176 rfd_ring->next_to_clean = 0; in atl1_clean_rx_ring()
1180 atomic_set(&rrd_ring->next_to_clean, 0); in atl1_clean_rx_ring()
1220 atomic_set(&tpd_ring->next_to_clean, 0); in atl1_clean_tx_ring()
1520 ((atomic_read(&adapter->rrd_ring.next_to_clean) in atl1_configure()
1766 rrd_next_to_clean = atomic_read(&adapter->rrd_ring.next_to_clean); in atl1_update_mailbox()
1784 while (rfd_ring->next_to_clean != (rrd->buf_indx + offset)) { in atl1_clean_alloc_flag()
1785 rfd_ring->buffer_info[rfd_ring->next_to_clean].alloced = 0; in atl1_clean_alloc_flag()
[all …]
Datl1.h620 atomic_t next_to_clean; member
632 u16 next_to_clean; member
643 atomic_t next_to_clean; member
/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c772 atomic_set(&tx_ring->next_to_clean, 0); in atl1e_init_ring_ptrs()
1251 u16 next_to_clean = atomic_read(&tx_ring->next_to_clean); in atl1e_clean_tx_irq() local
1253 while (next_to_clean != hw_next_to_clean) { in atl1e_clean_tx_irq()
1254 tx_buffer = &tx_ring->tx_buffer[next_to_clean]; in atl1e_clean_tx_irq()
1270 if (++next_to_clean == tx_ring->count) in atl1e_clean_tx_irq()
1271 next_to_clean = 0; in atl1e_clean_tx_irq()
1274 atomic_set(&tx_ring->next_to_clean, next_to_clean); in atl1e_clean_tx_irq()
1573 u16 next_to_clean = 0; in atl1e_tpd_avail() local
1575 next_to_clean = atomic_read(&tx_ring->next_to_clean); in atl1e_tpd_avail()
1578 return (u16)(next_to_clean > next_to_use) ? in atl1e_tpd_avail()
[all …]
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c71 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \
72 (R)->next_to_clean - (R)->next_to_use - 1)
998 tx_ring->next_to_clean = 0; in pch_gbe_clean_tx_ring()
1029 rx_ring->next_to_clean = 0; in pch_gbe_clean_rx_ring()
1547 tx_ring->next_to_clean); in pch_gbe_clean_tx()
1549 i = tx_ring->next_to_clean; in pch_gbe_clean_tx()
1562 tx_ring->next_to_clean, tx_ring->next_to_use, in pch_gbe_clean_tx()
1651 tx_ring->next_to_clean = i; in pch_gbe_clean_tx()
1654 tx_ring->next_to_clean); in pch_gbe_clean_tx()
1688 i = rx_ring->next_to_clean; in pch_gbe_clean_rx()
[all …]
Dpch_gbe.h500 unsigned int next_to_clean; member
523 unsigned int next_to_clean; member
/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c295 rx_buffer = &rx_ring->rx_buffer[rx_ring->next_to_clean]; in fm10k_fetch_rx_buffer()
496 u32 ntc = rx_ring->next_to_clean + 1; in fm10k_is_non_eop()
500 rx_ring->next_to_clean = ntc; in fm10k_is_non_eop()
621 rx_desc = FM10K_RX_DESC(rx_ring, rx_ring->next_to_clean); in fm10k_clean_rx_irq()
1141 u32 head = ring->next_to_clean; in fm10k_get_tx_pending()
1204 unsigned int i = tx_ring->next_to_clean; in fm10k_clean_tx_irq()
1286 tx_ring->next_to_clean = i; in fm10k_clean_tx_irq()
Dfm10k.h139 u16 next_to_clean; member
384 s16 unused = ring->next_to_clean - ring->next_to_use - 1; in fm10k_desc_unused()
/drivers/net/ethernet/intel/igbvf/
Dnetdev.c92 if (ring->next_to_clean > ring->next_to_use) in igbvf_desc_unused()
93 return ring->next_to_clean - ring->next_to_use - 1; in igbvf_desc_unused()
95 return ring->count + ring->next_to_clean - ring->next_to_use - 1; in igbvf_desc_unused()
278 i = rx_ring->next_to_clean; in igbvf_clean_rx_irq()
391 rx_ring->next_to_clean = i; in igbvf_clean_rx_irq()
455 tx_ring->next_to_clean = 0; in igbvf_setup_tx_resources()
493 rx_ring->next_to_clean = 0; in igbvf_setup_rx_resources()
535 tx_ring->next_to_clean = 0; in igbvf_clean_tx_ring()
617 rx_ring->next_to_clean = 0; in igbvf_clean_rx_ring()
801 i = tx_ring->next_to_clean; in igbvf_clean_tx_irq()
[all …]
/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf.h97 unsigned int next_to_clean; member
312 u16 ntc = ring->next_to_clean; in ixgbevf_desc_unused()
/drivers/net/ethernet/intel/e1000e/
Dnetdev.c261 buffer_info = &tx_ring->buffer_info[tx_ring->next_to_clean]; in e1000e_dump()
263 0, tx_ring->next_to_use, tx_ring->next_to_clean, in e1000e_dump()
310 if (i == tx_ring->next_to_use && i == tx_ring->next_to_clean) in e1000e_dump()
314 else if (i == tx_ring->next_to_clean) in e1000e_dump()
340 0, rx_ring->next_to_use, rx_ring->next_to_clean); in e1000e_dump()
386 else if (i == rx_ring->next_to_clean) in e1000e_dump()
452 else if (i == rx_ring->next_to_clean) in e1000e_dump()
490 if (ring->next_to_clean > ring->next_to_use) in e1000_desc_unused()
491 return ring->next_to_clean - ring->next_to_use - 1; in e1000_desc_unused()
493 return ring->count + ring->next_to_clean - ring->next_to_use - 1; in e1000_desc_unused()
[all …]

12