Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_xsk.c331 u32 ntc = rx_ring->next_to_clean + 1; in i40e_inc_ntc()
334 rx_ring->next_to_clean = ntc; in i40e_inc_ntc()
358 rx_desc = I40E_RX_DESC(rx_ring, rx_ring->next_to_clean); in i40e_clean_rx_irq_zc()
371 bi = i40e_rx_bi(rx_ring, rx_ring->next_to_clean); in i40e_clean_rx_irq_zc()
379 bi = i40e_rx_bi(rx_ring, rx_ring->next_to_clean); in i40e_clean_rx_irq_zc()
385 bi = i40e_rx_bi(rx_ring, rx_ring->next_to_clean); in i40e_clean_rx_irq_zc()
439 if (failure || rx_ring->next_to_clean == rx_ring->next_to_use) in i40e_clean_rx_irq_zc()
534 if (head_idx < tx_ring->next_to_clean) in i40e_clean_xdp_tx_irq()
536 completed_frames = head_idx - tx_ring->next_to_clean; in i40e_clean_xdp_tx_irq()
546 ntc = tx_ring->next_to_clean; in i40e_clean_xdp_tx_irq()
[all …]
Di40e_adminq.c355 hw->aq.asq.next_to_clean = 0; in i40e_init_asq()
414 hw->aq.arq.next_to_clean = 0; in i40e_init_arq()
725 u16 ntc = asq->next_to_clean; in i40e_clean_asq()
750 asq->next_to_clean = ntc; in i40e_clean_asq()
1001 u16 ntc = hw->aq.arq.next_to_clean; in i40e_clean_arq_element()
1076 hw->aq.arq.next_to_clean = ntc; in i40e_clean_arq_element()
1094 hw->aq.asq.next_to_clean = 0; in i40e_resume_aq()
1099 hw->aq.arq.next_to_clean = 0; in i40e_resume_aq()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_controlq.h17 (u16)((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \
18 (R)->next_to_clean - (R)->next_to_use - 1)
54 u16 next_to_clean; member
Dice_xsk.c480 int ntc = rx_ring->next_to_clean + 1; in ice_bump_ntc()
483 rx_ring->next_to_clean = ntc; in ice_bump_ntc()
606 rx_desc = ICE_RX_DESC(rx_ring, rx_ring->next_to_clean); in ice_clean_rx_irq_zc()
623 rx_buf = &rx_ring->rx_buf[rx_ring->next_to_clean]; in ice_clean_rx_irq_zc()
676 if (failure || rx_ring->next_to_clean == rx_ring->next_to_use) in ice_clean_rx_irq_zc()
763 s16 ntc = xdp_ring->next_to_clean; in ice_clean_tx_irq_zc()
804 xdp_ring->next_to_clean = ntc; in ice_clean_tx_irq_zc()
907 u16 ntc = xdp_ring->next_to_clean, ntu = xdp_ring->next_to_use; in ice_xsk_clean_xdp_ring()
Dice_txrx.h111 (u16)((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \
112 (R)->next_to_clean - (R)->next_to_use - 1)
285 u16 next_to_clean; member
Dice_txrx.c168 tx_ring->next_to_clean = 0; in ice_clean_tx_ring()
208 s16 i = tx_ring->next_to_clean; in ice_clean_tx_irq()
293 tx_ring->next_to_clean = i; in ice_clean_tx_irq()
355 tx_ring->next_to_clean = 0; in ice_setup_tx_ring()
418 rx_ring->next_to_clean = 0; in ice_clean_rx_ring()
478 rx_ring->next_to_clean = 0; in ice_setup_rx_ring()
881 rx_buf = &rx_ring->rx_buf[rx_ring->next_to_clean]; in ice_get_rx_buf()
1029 u16 ntc = rx_ring->next_to_clean + 1; in ice_put_rx_buf()
1033 rx_ring->next_to_clean = ntc; in ice_put_rx_buf()
1073 rx_ring->rx_buf[rx_ring->next_to_clean].skb = skb; in ice_is_non_eop()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
Digc_dump.c139 buffer_info = &tx_ring->tx_buffer_info[tx_ring->next_to_clean]; in igc_rings_dump()
142 n, tx_ring->next_to_use, tx_ring->next_to_clean, in igc_rings_dump()
182 i == tx_ring->next_to_clean) in igc_rings_dump()
186 else if (i == tx_ring->next_to_clean) in igc_rings_dump()
216 rx_ring->next_to_clean); in igc_rings_dump()
266 else if (i == rx_ring->next_to_clean) in igc_rings_dump()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_xsk.c232 u32 ntc = rx_ring->next_to_clean + 1; in ixgbe_inc_ntc()
235 rx_ring->next_to_clean = ntc; in ixgbe_inc_ntc()
263 rx_desc = IXGBE_RX_DESC(rx_ring, rx_ring->next_to_clean); in ixgbe_clean_rx_irq_zc()
274 bi = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in ixgbe_clean_rx_irq_zc()
284 &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in ixgbe_clean_rx_irq_zc()
357 if (failure || rx_ring->next_to_clean == rx_ring->next_to_use) in ixgbe_clean_rx_irq_zc()
451 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in ixgbe_clean_xdp_tx_irq()
488 tx_ring->next_to_clean = ntc; in ixgbe_clean_xdp_tx_irq()
539 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in ixgbe_xsk_clean_tx_ring()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgb/
Dixgb.h95 unsigned int next_to_clean; member
101 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \
102 (R)->next_to_clean - (R)->next_to_use - 1)
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/
Dhns3_trace.h84 __entry->ntc = ring->next_to_clean;
116 __entry->ntc = ring->next_to_clean;
118 __entry->buf_dma = ring->desc_cb[ring->next_to_clean].dma;
119 memcpy(__entry->desc, &ring->desc[ring->next_to_clean],
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_cmd.c18 int ntc = ring->next_to_clean; in hclgevf_ring_space()
31 int ntc = ring->next_to_clean; in hclgevf_is_valid_csq_clean_head()
51 csq->next_to_use, csq->next_to_clean); in hclgevf_cmd_csq_clean()
58 clean = (head - csq->next_to_clean + csq->desc_num) % csq->desc_num; in hclgevf_cmd_csq_clean()
59 csq->next_to_clean = head; in hclgevf_cmd_csq_clean()
243 csq->next_to_clean = hclgevf_read_dev(hw, in hclgevf_cmd_send()
413 hdev->hw.cmq.csq.next_to_clean = 0; in hclgevf_cmd_init()
415 hdev->hw.cmq.crq.next_to_clean = 0; in hclgevf_cmd_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_cmd.c19 int ntc = ring->next_to_clean; in hclge_ring_space()
28 int ntc = ring->next_to_clean; in is_valid_csq_clean_head()
147 csq->next_to_use, csq->next_to_clean); in hclge_cmd_csq_clean()
156 clean = (head - csq->next_to_clean + csq->desc_num) % csq->desc_num; in hclge_cmd_csq_clean()
157 csq->next_to_clean = head; in hclge_cmd_csq_clean()
278 csq->next_to_clean = hclge_read_dev(hw, HCLGE_NIC_CSQ_HEAD_REG); in hclge_cmd_send()
449 hdev->hw.cmq.csq.next_to_clean = 0; in hclge_cmd_init()
451 hdev->hw.cmq.crq.next_to_clean = 0; in hclge_cmd_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/pasemi/
Dpasemi_mac.h30 unsigned int next_to_clean; member
43 unsigned int next_to_clean; member
101 #define RING_USED(ring) (((ring)->next_to_fill - (ring)->next_to_clean) \
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/
Denetc.h64 int next_to_clean; member
90 if (bdr->next_to_clean > bdr->next_to_use) in enetc_bd_unused()
91 return bdr->next_to_clean - bdr->next_to_use - 1; in enetc_bd_unused()
93 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_use - 1; in enetc_bd_unused()
105 int next_to_clean; member
Denetc_cbdr.c12 i = ring->next_to_clean; in enetc_clean_cbdr()
26 ring->next_to_clean = i; in enetc_clean_cbdr()
31 return (r->next_to_clean - r->next_to_use - 1 + r->bd_count) % in enetc_cbd_unused()
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atl1c/
Datl1c_main.c870 atomic_set(&tpd_ring->next_to_clean, 0); in atl1c_clean_tx_ring()
892 rfd_ring->next_to_clean = 0; in atl1c_clean_rx_ring()
895 rrd_ring->next_to_clean = 0; in atl1c_clean_rx_ring()
911 atomic_set(&tpd_ring[i].next_to_clean, 0); in atl1c_init_ring_ptrs()
918 rfd_ring->next_to_clean = 0; in atl1c_init_ring_ptrs()
920 rrd_ring->next_to_clean = 0; in atl1c_init_ring_ptrs()
1539 u16 next_to_clean = atomic_read(&tpd_ring->next_to_clean); in atl1c_clean_tx_irq() local
1548 while (next_to_clean != hw_next_to_clean) { in atl1c_clean_tx_irq()
1549 buffer_info = &tpd_ring->buffer_info[next_to_clean]; in atl1c_clean_tx_irq()
1555 if (++next_to_clean == tpd_ring->count) in atl1c_clean_tx_irq()
[all …]
Datl1c.h479 atomic_t next_to_clean; member
490 u16 next_to_clean; member
501 u16 next_to_clean; member
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/
Dhns_enet.c422 desc = &ring->desc[ring->next_to_clean]; in hns_nic_reuse_page()
553 desc = &ring->desc[ring->next_to_clean]; in hns_nic_poll_rx_skb()
554 desc_cb = &ring->desc_cb[ring->next_to_clean]; in hns_nic_poll_rx_skb()
585 ring_ptr_move_fw(ring, next_to_clean); in hns_nic_poll_rx_skb()
599 ring_ptr_move_fw(ring, next_to_clean); in hns_nic_poll_rx_skb()
606 desc = &ring->desc[ring->next_to_clean]; in hns_nic_poll_rx_skb()
607 desc_cb = &ring->desc_cb[ring->next_to_clean]; in hns_nic_poll_rx_skb()
610 ring_ptr_move_fw(ring, next_to_clean); in hns_nic_poll_rx_skb()
705 int ntc = ring->next_to_clean; in hns_desc_unused()
920 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_clean]; in hns_nic_reclaim_one_desc()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000/
De1000.h155 unsigned int next_to_clean; member
176 unsigned int next_to_clean; member
190 unsigned int clean = smp_load_acquire(&(R)->next_to_clean); \
/kernel/linux/linux-5.10/drivers/net/ethernet/amazon/ena/
Dena_netdev.c711 tx_ring->next_to_clean = 0; in ena_setup_tx_resources()
842 rx_ring->next_to_clean = 0; in ena_setup_rx_resources()
1228 u16 next_to_clean; in ena_clean_tx_irq() local
1233 next_to_clean = tx_ring->next_to_clean; in ena_clean_tx_irq()
1274 tx_ring->free_ids[next_to_clean] = req_id; in ena_clean_tx_irq()
1275 next_to_clean = ENA_TX_RING_IDX_NEXT(next_to_clean, in ena_clean_tx_irq()
1279 tx_ring->next_to_clean = next_to_clean; in ena_clean_tx_irq()
1339 u16 *next_to_clean) in ena_rx_skb() argument
1388 rx_ring->free_ids[*next_to_clean] = req_id; in ena_rx_skb()
1389 *next_to_clean = ENA_RX_RING_IDX_ADD(*next_to_clean, descs, in ena_rx_skb()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atlx/
Datl1.c1113 atomic_set(&tpd_ring->next_to_clean, 0); in atl1_init_ring_ptrs()
1115 rfd_ring->next_to_clean = 0; in atl1_init_ring_ptrs()
1119 atomic_set(&rrd_ring->next_to_clean, 0); in atl1_init_ring_ptrs()
1155 rfd_ring->next_to_clean = 0; in atl1_clean_rx_ring()
1159 atomic_set(&rrd_ring->next_to_clean, 0); in atl1_clean_rx_ring()
1199 atomic_set(&tpd_ring->next_to_clean, 0); in atl1_clean_tx_ring()
1499 ((atomic_read(&adapter->rrd_ring.next_to_clean) in atl1_configure()
1745 rrd_next_to_clean = atomic_read(&adapter->rrd_ring.next_to_clean); in atl1_update_mailbox()
1763 while (rfd_ring->next_to_clean != (rrd->buf_indx + offset)) { in atl1_clean_alloc_flag()
1764 rfd_ring->buffer_info[rfd_ring->next_to_clean].alloced = 0; in atl1_clean_alloc_flag()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c56 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \
57 (R)->next_to_clean - (R)->next_to_use - 1)
940 tx_ring->next_to_clean = 0; in pch_gbe_clean_tx_ring()
971 rx_ring->next_to_clean = 0; in pch_gbe_clean_rx_ring()
1486 tx_ring->next_to_clean); in pch_gbe_clean_tx()
1488 i = tx_ring->next_to_clean; in pch_gbe_clean_tx()
1501 tx_ring->next_to_clean, tx_ring->next_to_use, in pch_gbe_clean_tx()
1590 tx_ring->next_to_clean = i; in pch_gbe_clean_tx()
1593 tx_ring->next_to_clean); in pch_gbe_clean_tx()
1627 i = rx_ring->next_to_clean; in pch_gbe_clean_rx()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c752 atomic_set(&tx_ring->next_to_clean, 0); in atl1e_init_ring_ptrs()
1232 u16 next_to_clean = atomic_read(&tx_ring->next_to_clean); in atl1e_clean_tx_irq() local
1234 while (next_to_clean != hw_next_to_clean) { in atl1e_clean_tx_irq()
1235 tx_buffer = &tx_ring->tx_buffer[next_to_clean]; in atl1e_clean_tx_irq()
1255 if (++next_to_clean == tx_ring->count) in atl1e_clean_tx_irq()
1256 next_to_clean = 0; in atl1e_clean_tx_irq()
1259 atomic_set(&tx_ring->next_to_clean, next_to_clean); in atl1e_clean_tx_irq()
1560 u16 next_to_clean = 0; in atl1e_tpd_avail() local
1562 next_to_clean = atomic_read(&tx_ring->next_to_clean); in atl1e_tpd_avail()
1565 return (u16)(next_to_clean > next_to_use) ? in atl1e_tpd_avail()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/
Diavf_adminq.c343 hw->aq.asq.next_to_clean = 0; in iavf_init_asq()
408 hw->aq.arq.next_to_clean = 0; in iavf_init_arq()
586 u16 ntc = asq->next_to_clean; in iavf_clean_asq()
612 asq->next_to_clean = ntc; in iavf_clean_asq()
860 u16 ntc = hw->aq.arq.next_to_clean; in iavf_clean_arq_element()
936 hw->aq.arq.next_to_clean = ntc; in iavf_clean_arq_element()
Diavf_txrx.c77 tx_ring->next_to_clean = 0; in iavf_clean_tx_ring()
120 head = ring->next_to_clean; in iavf_get_tx_pending()
196 int i = tx_ring->next_to_clean; in iavf_clean_tx_irq()
283 tx_ring->next_to_clean = i; in iavf_clean_tx_irq()
644 tx_ring->next_to_clean = 0; in iavf_setup_tx_descriptors()
707 rx_ring->next_to_clean = 0; in iavf_clean_rx_ring()
763 rx_ring->next_to_clean = 0; in iavf_setup_rx_descriptors()
1269 rx_buffer = &rx_ring->rx_bi[rx_ring->next_to_clean]; in iavf_get_rx_buffer()
1445 u32 ntc = rx_ring->next_to_clean + 1; in iavf_is_non_eop()
1449 rx_ring->next_to_clean = ntc; in iavf_is_non_eop()
[all …]

1234