Home
last modified time | relevance | path

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

1234

/drivers/net/ethernet/intel/i40e/
Di40e_xsk.c385 u16 next_to_clean = rx_ring->next_to_clean; in i40e_clean_rx_irq_zc() local
398 rx_desc = I40E_RX_DESC(rx_ring, next_to_clean); in i40e_clean_rx_irq_zc()
411 bi = *i40e_rx_bi(rx_ring, next_to_clean); in i40e_clean_rx_irq_zc()
413 next_to_clean = (next_to_clean + 1) & count_mask; in i40e_clean_rx_irq_zc()
422 bi = *i40e_rx_bi(rx_ring, next_to_clean); in i40e_clean_rx_irq_zc()
432 next_to_clean = (next_to_clean + 1) & count_mask; in i40e_clean_rx_irq_zc()
435 rx_ring->next_to_clean = next_to_clean; in i40e_clean_rx_irq_zc()
436 cleaned_count = (next_to_clean - rx_ring->next_to_use - 1) & count_mask; in i40e_clean_rx_irq_zc()
445 if (failure || next_to_clean == rx_ring->next_to_use) in i40e_clean_rx_irq_zc()
584 if (head_idx < 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()
1000 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()
/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()
/drivers/net/ethernet/freescale/enetc/
Denetc.h97 int next_to_clean; member
126 if (bdr->next_to_clean > bdr->next_to_use) in enetc_bd_unused()
127 return bdr->next_to_clean - bdr->next_to_use - 1; in enetc_bd_unused()
129 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_use - 1; in enetc_bd_unused()
134 if (bdr->next_to_clean > bdr->next_to_alloc) in enetc_swbd_unused()
135 return bdr->next_to_clean - bdr->next_to_alloc - 1; in enetc_swbd_unused()
137 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_alloc - 1; in enetc_swbd_unused()
150 int next_to_clean; member
Denetc_cbdr.c23 cbdr->next_to_clean = 0; in enetc_setup_cbdr()
40 enetc_wr_reg(cbdr->pir, cbdr->next_to_clean); in enetc_setup_cbdr()
66 i = ring->next_to_clean; in enetc_clean_cbdr()
80 ring->next_to_clean = i; in enetc_clean_cbdr()
85 return (r->next_to_clean - r->next_to_use - 1 + r->bd_count) % in enetc_cbd_unused()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_xsk.c231 u32 ntc = rx_ring->next_to_clean + 1; in ixgbe_inc_ntc()
234 rx_ring->next_to_clean = ntc; in ixgbe_inc_ntc()
262 rx_desc = IXGBE_RX_DESC(rx_ring, rx_ring->next_to_clean); in ixgbe_clean_rx_irq_zc()
273 bi = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in ixgbe_clean_rx_irq_zc()
283 &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in ixgbe_clean_rx_irq_zc()
359 if (failure || rx_ring->next_to_clean == rx_ring->next_to_use) in ixgbe_clean_rx_irq_zc()
453 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in ixgbe_clean_xdp_tx_irq()
490 tx_ring->next_to_clean = ntc; in ixgbe_clean_xdp_tx_irq()
541 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in ixgbe_xsk_clean_tx_ring()
/drivers/net/ethernet/intel/ice/
Dice_controlq.h18 ((u16)((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \
19 (R)->next_to_clean - (R)->next_to_use - 1))
56 u16 next_to_clean; member
Dice_xsk.c430 int ntc = rx_ring->next_to_clean + 1; in ice_bump_ntc()
433 rx_ring->next_to_clean = ntc; in ice_bump_ntc()
546 rx_desc = ICE_RX_DESC(rx_ring, rx_ring->next_to_clean); in ice_clean_rx_irq_zc()
563 xdp = &rx_ring->xdp_buf[rx_ring->next_to_clean]; in ice_clean_rx_irq_zc()
619 if (failure || rx_ring->next_to_clean == rx_ring->next_to_use) in ice_clean_rx_irq_zc()
706 s16 ntc = xdp_ring->next_to_clean; in ice_clean_tx_irq_zc()
747 xdp_ring->next_to_clean = ntc; in ice_clean_tx_irq_zc()
830 u16 ntc = rx_ring->next_to_clean; in ice_xsk_clean_rx_ring()
847 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)
279 u16 next_to_clean; member
Dice_txrx.c169 tx_ring->next_to_clean = 0; in ice_clean_tx_ring()
209 s16 i = tx_ring->next_to_clean; in ice_clean_tx_irq()
297 tx_ring->next_to_clean = i; in ice_clean_tx_irq()
359 tx_ring->next_to_clean = 0; in ice_setup_tx_ring()
423 rx_ring->next_to_clean = 0; in ice_clean_rx_ring()
483 rx_ring->next_to_clean = 0; in ice_setup_rx_ring()
859 rx_buf = &rx_ring->rx_buf[rx_ring->next_to_clean]; in ice_get_rx_buf()
1006 u16 ntc = rx_ring->next_to_clean + 1; in ice_put_rx_buf()
1010 rx_ring->next_to_clean = ntc; in ice_put_rx_buf()
1092 rx_desc = ICE_RX_DESC(rx_ring, rx_ring->next_to_clean); in ice_clean_rx_irq()
[all …]
/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],
Dhns3_enet.c987 tx_spare->last_to_clean == tx_spare->next_to_clean) in hns3_tx_spare_update()
994 tx_spare->next_to_clean); in hns3_tx_spare_update()
1123 u32 ntc = tx_spare->next_to_clean; in hns3_tx_spare_reclaim_cb()
1126 tx_spare->next_to_clean += len; in hns3_tx_spare_reclaim_cb()
1128 if (tx_spare->next_to_clean >= tx_spare->len) { in hns3_tx_spare_reclaim_cb()
1129 tx_spare->next_to_clean -= tx_spare->len; in hns3_tx_spare_reclaim_cb()
1131 if (tx_spare->next_to_clean) { in hns3_tx_spare_reclaim_cb()
1133 len = tx_spare->next_to_clean; in hns3_tx_spare_reclaim_cb()
2675 tx_ring->next_to_clean, napi->state); in hns3_get_tx_timeo_queue_info()
3389 int ntc = ring->next_to_clean; in hns3_nic_reclaim_desc()
[all …]
/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()
312 csq->next_to_clean = hclgevf_read_dev(hw, in hclgevf_cmd_send()
449 hdev->hw.cmq.csq.next_to_clean = 0; in hclgevf_cmd_init()
451 hdev->hw.cmq.crq.next_to_clean = 0; in hclgevf_cmd_init()
/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)
/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()
330 csq->next_to_clean = hclge_read_dev(hw, HCLGE_NIC_CSQ_HEAD_REG); in hclge_cmd_send()
499 hdev->hw.cmq.csq.next_to_clean = 0; in hclge_cmd_init()
501 hdev->hw.cmq.crq.next_to_clean = 0; in hclge_cmd_init()
/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) \
/drivers/net/ethernet/atheros/atl1c/
Datl1c_main.c903 atomic_set(&tpd_ring->next_to_clean, 0); in atl1c_clean_tx_ring()
926 rfd_ring->next_to_clean = 0; in atl1c_clean_rx_ring()
929 rrd_ring->next_to_clean = 0; in atl1c_clean_rx_ring()
945 atomic_set(&tpd_ring[i].next_to_clean, 0); in atl1c_init_ring_ptrs()
953 rfd_ring[i].next_to_clean = 0; in atl1c_init_ring_ptrs()
955 rrd_ring[i].next_to_clean = 0; in atl1c_init_ring_ptrs()
1606 u16 next_to_clean = atomic_read(&tpd_ring->next_to_clean); in atl1c_clean_tx() local
1614 while (next_to_clean != hw_next_to_clean) { in atl1c_clean_tx()
1615 buffer_info = &tpd_ring->buffer_info[next_to_clean]; in atl1c_clean_tx()
1621 if (++next_to_clean == tpd_ring->count) in atl1c_clean_tx()
[all …]
/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 …]
/drivers/net/ethernet/amazon/ena/
Dena_netdev.c788 tx_ring->next_to_clean = 0; in ena_setup_tx_resources()
920 rx_ring->next_to_clean = 0; in ena_setup_rx_resources()
1327 u16 next_to_clean; in ena_clean_tx_irq() local
1332 next_to_clean = tx_ring->next_to_clean; in ena_clean_tx_irq()
1373 tx_ring->free_ids[next_to_clean] = req_id; in ena_clean_tx_irq()
1374 next_to_clean = ENA_TX_RING_IDX_NEXT(next_to_clean, in ena_clean_tx_irq()
1378 tx_ring->next_to_clean = next_to_clean; in ena_clean_tx_irq()
1438 u16 *next_to_clean) in ena_rx_skb() argument
1498 rx_ring->free_ids[*next_to_clean] = req_id; in ena_rx_skb()
1499 *next_to_clean = ENA_RX_RING_IDX_ADD(*next_to_clean, descs, in ena_rx_skb()
[all …]
/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); \
/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 …]
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c58 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \
59 (R)->next_to_clean - (R)->next_to_use - 1)
928 tx_ring->next_to_clean = 0; in pch_gbe_clean_tx_ring()
959 rx_ring->next_to_clean = 0; in pch_gbe_clean_rx_ring()
1468 tx_ring->next_to_clean); in pch_gbe_clean_tx()
1470 i = tx_ring->next_to_clean; in pch_gbe_clean_tx()
1483 tx_ring->next_to_clean, tx_ring->next_to_use, in pch_gbe_clean_tx()
1572 tx_ring->next_to_clean = i; in pch_gbe_clean_tx()
1575 tx_ring->next_to_clean); in pch_gbe_clean_tx()
1609 i = rx_ring->next_to_clean; in pch_gbe_clean_rx()
[all …]
/drivers/net/ethernet/intel/iavf/
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()
1256 rx_buffer = &rx_ring->rx_bi[rx_ring->next_to_clean]; in iavf_get_rx_buffer()
1432 u32 ntc = rx_ring->next_to_clean + 1; in iavf_is_non_eop()
1436 rx_ring->next_to_clean = ntc; in iavf_is_non_eop()
[all …]
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()
/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c752 atomic_set(&tx_ring->next_to_clean, 0); in atl1e_init_ring_ptrs()
1235 u16 next_to_clean = atomic_read(&tx_ring->next_to_clean); in atl1e_clean_tx_irq() local
1237 while (next_to_clean != hw_next_to_clean) { in atl1e_clean_tx_irq()
1238 tx_buffer = &tx_ring->tx_buffer[next_to_clean]; in atl1e_clean_tx_irq()
1258 if (++next_to_clean == tx_ring->count) in atl1e_clean_tx_irq()
1259 next_to_clean = 0; in atl1e_clean_tx_irq()
1262 atomic_set(&tx_ring->next_to_clean, next_to_clean); in atl1e_clean_tx_irq()
1563 u16 next_to_clean = 0; in atl1e_tpd_avail() local
1565 next_to_clean = atomic_read(&tx_ring->next_to_clean); in atl1e_tpd_avail()
1568 return (u16)(next_to_clean > next_to_use) ? in atl1e_tpd_avail()
[all …]

1234