| /Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
| D | hclgevf_cmd.c | 22 int ntu = ring->next_to_use; in hclgevf_ring_space() 33 int ntu = ring->next_to_use; in hclgevf_is_valid_csq_clean_head() 54 csq->next_to_use, csq->next_to_clean); in hclgevf_cmd_csq_clean() 72 return head == hw->cmq.csq.next_to_use; in hclgevf_cmd_csq_done() 255 ntc = hw->cmq.csq.next_to_use; in hclgevf_cmd_send() 258 desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use]; in hclgevf_cmd_send() 260 (hw->cmq.csq.next_to_use)++; in hclgevf_cmd_send() 261 if (hw->cmq.csq.next_to_use == hw->cmq.csq.desc_num) in hclgevf_cmd_send() 262 hw->cmq.csq.next_to_use = 0; in hclgevf_cmd_send() 268 hw->cmq.csq.next_to_use); in hclgevf_cmd_send() [all …]
|
| D | hclgevf_mbx.c | 142 return tail == hw->cmq.crq.next_to_use; in hclgevf_cmd_crq_empty() 165 desc = &crq->desc[crq->next_to_use]; in hclgevf_mbx_handler() 168 flag = le16_to_cpu(crq->desc[crq->next_to_use].flag); in hclgevf_mbx_handler() 175 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler() 242 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler() 248 crq->next_to_use); in hclgevf_mbx_handler()
|
| /Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| D | hclge_cmd.c | 20 int ntu = ring->next_to_use; in hclge_ring_space() 29 int ntu = ring->next_to_use; in is_valid_csq_clean_head() 149 csq->next_to_use, csq->next_to_clean); in hclge_cmd_csq_clean() 166 return head == hw->cmq.csq.next_to_use; in hclge_cmd_csq_done() 289 ntc = hw->cmq.csq.next_to_use; in hclge_cmd_send() 291 desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use]; in hclge_cmd_send() 293 (hw->cmq.csq.next_to_use)++; in hclge_cmd_send() 294 if (hw->cmq.csq.next_to_use >= hw->cmq.csq.desc_num) in hclge_cmd_send() 295 hw->cmq.csq.next_to_use = 0; in hclge_cmd_send() 300 hclge_write_dev(hw, HCLGE_NIC_CSQ_TAIL_REG, hw->cmq.csq.next_to_use); in hclge_cmd_send() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/freescale/enetc/ |
| D | enetc.h | 60 int next_to_use; member 85 if (bdr->next_to_clean > bdr->next_to_use) in enetc_bd_unused() 86 return bdr->next_to_clean - bdr->next_to_use - 1; in enetc_bd_unused() 88 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_use - 1; in enetc_bd_unused() 99 int next_to_use; member
|
| D | enetc_cbdr.c | 31 return (r->next_to_clean - r->next_to_use - 1 + r->bd_count) % in enetc_cbd_unused() 48 i = ring->next_to_use; in enetc_send_cmd() 55 ring->next_to_use = i; in enetc_send_cmd()
|
| /Linux-v5.4/drivers/net/ethernet/intel/ice/ |
| D | ice_controlq.h | 17 (u16)((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 18 (R)->next_to_clean - (R)->next_to_use - 1) 50 u16 next_to_use; member
|
| D | ice_txrx.h | 41 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 42 (R)->next_to_clean - (R)->next_to_use - 1) 188 u16 next_to_use; member
|
| D | ice_controlq.c | 337 cq->sq.next_to_use = 0; in ice_init_sq() 396 cq->rq.next_to_use = 0; in ice_init_rq() 825 return rd32(hw, cq->sq.head) == cq->sq.next_to_use; in ice_sq_done() 896 details = ICE_CTL_Q_DETAILS(cq->sq, cq->sq.next_to_use); in ice_sq_send_cmd() 915 desc_on_ring = ICE_CTL_Q_DESC(cq->sq, cq->sq.next_to_use); in ice_sq_send_cmd() 922 dma_buf = &cq->sq.r.sq_bi[cq->sq.next_to_use]; in ice_sq_send_cmd() 942 (cq->sq.next_to_use)++; in ice_sq_send_cmd() 943 if (cq->sq.next_to_use == cq->sq.count) in ice_sq_send_cmd() 944 cq->sq.next_to_use = 0; in ice_sq_send_cmd() 945 wr32(hw, cq->sq.tail, cq->sq.next_to_use); in ice_sq_send_cmd() [all …]
|
| D | ice_txrx.c | 67 tx_ring->next_to_use = 0; in ice_clean_tx_ring() 252 tx_ring->next_to_use = 0; in ice_setup_tx_ring() 310 rx_ring->next_to_use = 0; in ice_clean_rx_ring() 364 rx_ring->next_to_use = 0; in ice_setup_rx_ring() 381 u16 prev_ntu = rx_ring->next_to_use; in ice_release_rx_desc() 383 rx_ring->next_to_use = val; in ice_release_rx_desc() 470 u16 ntu = rx_ring->next_to_use; in ice_alloc_rx_bufs() 512 if (rx_ring->next_to_use != ntu) in ice_alloc_rx_bufs() 1594 u16 i = tx_ring->next_to_use; in ice_tx_map() 1707 tx_ring->next_to_use = i; in ice_tx_map() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_xsk.c | 318 u16 i = rx_ring->next_to_use; in __ixgbe_alloc_rx_buffers_zc() 363 if (rx_ring->next_to_use != i) { in __ixgbe_alloc_rx_buffers_zc() 364 rx_ring->next_to_use = i; in __ixgbe_alloc_rx_buffers_zc() 539 writel(ring->next_to_use, ring->tail); in ixgbe_clean_rx_irq_zc() 550 if (failure || rx_ring->next_to_clean == rx_ring->next_to_use) in ixgbe_clean_rx_irq_zc() 600 tx_bi = &xdp_ring->tx_buffer_info[xdp_ring->next_to_use]; in ixgbe_xmit_zc() 605 tx_desc = IXGBE_TX_DESC(xdp_ring, xdp_ring->next_to_use); in ixgbe_xmit_zc() 617 xdp_ring->next_to_use++; in ixgbe_xmit_zc() 618 if (xdp_ring->next_to_use == xdp_ring->count) in ixgbe_xmit_zc() 619 xdp_ring->next_to_use = 0; in ixgbe_xmit_zc() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/intel/ixgb/ |
| D | ixgb.h | 94 unsigned int next_to_use; member 102 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 103 (R)->next_to_clean - (R)->next_to_use - 1)
|
| D | ixgb_main.c | 690 txdr->next_to_use = 0; in ixgb_setup_tx_resources() 775 rxdr->next_to_use = 0; in ixgb_setup_rx_resources() 942 tx_ring->next_to_use = 0; in ixgb_clean_tx_ring() 1014 rx_ring->next_to_use = 0; in ixgb_clean_rx_ring() 1216 i = adapter->tx_ring.next_to_use; in ixgb_tso() 1240 adapter->tx_ring.next_to_use = i; in ixgb_tso() 1260 i = adapter->tx_ring.next_to_use; in ixgb_tx_csum() 1278 adapter->tx_ring.next_to_use = i; in ixgb_tx_csum() 1302 i = tx_ring->next_to_use; in ixgb_tx_map() 1411 i = tx_ring->next_to_use; in ixgb_tx_queue() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/atheros/atlx/ |
| D | atl1.c | 1114 atomic_set(&tpd_ring->next_to_use, 0); in atl1_init_ring_ptrs() 1118 atomic_set(&rfd_ring->next_to_use, 0); in atl1_init_ring_ptrs() 1120 rrd_ring->next_to_use = 0; in atl1_init_ring_ptrs() 1158 atomic_set(&rfd_ring->next_to_use, 0); in atl1_clean_rx_ring() 1160 rrd_ring->next_to_use = 0; in atl1_clean_rx_ring() 1200 atomic_set(&tpd_ring->next_to_use, 0); in atl1_clean_tx_ring() 1499 value = ((atomic_read(&adapter->tpd_ring.next_to_use) in atl1_configure() 1503 ((atomic_read(&adapter->rfd_ring.next_to_use) in atl1_configure() 1745 tpd_next_to_use = atomic_read(&adapter->tpd_ring.next_to_use); in atl1_update_mailbox() 1746 rfd_next_to_use = atomic_read(&adapter->rfd_ring.next_to_use); in atl1_update_mailbox() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/intel/i40e/ |
| D | i40e_adminq.c | 354 hw->aq.asq.next_to_use = 0; in i40e_init_asq() 413 hw->aq.arq.next_to_use = 0; in i40e_init_arq() 715 return rd32(hw, hw->aq.asq.head) == hw->aq.asq.next_to_use; in i40e_asq_done() 763 details = I40E_ADMINQ_DETAILS(hw->aq.asq, hw->aq.asq.next_to_use); in i40e_asq_send_command() 818 desc_on_ring = I40E_ADMINQ_DESC(hw->aq.asq, hw->aq.asq.next_to_use); in i40e_asq_send_command() 825 dma_buff = &(hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use]); in i40e_asq_send_command() 843 (hw->aq.asq.next_to_use)++; in i40e_asq_send_command() 844 if (hw->aq.asq.next_to_use == hw->aq.asq.count) in i40e_asq_send_command() 845 hw->aq.asq.next_to_use = 0; in i40e_asq_send_command() 847 wr32(hw, hw->aq.asq.tail, hw->aq.asq.next_to_use); in i40e_asq_send_command() [all …]
|
| D | i40e_xsk.c | 318 u16 ntu = rx_ring->next_to_use; in __i40e_alloc_rx_buffers_zc() 352 if (rx_ring->next_to_use != ntu) in __i40e_alloc_rx_buffers_zc() 630 if (failure || rx_ring->next_to_clean == rx_ring->next_to_use) in i40e_clean_rx_irq_zc() 670 tx_bi = &xdp_ring->tx_bi[xdp_ring->next_to_use]; in i40e_xmit_zc() 673 tx_desc = I40E_TX_DESC(xdp_ring, xdp_ring->next_to_use); in i40e_xmit_zc() 680 xdp_ring->next_to_use++; in i40e_xmit_zc() 681 if (xdp_ring->next_to_use == xdp_ring->count) in i40e_xmit_zc() 682 xdp_ring->next_to_use = 0; in i40e_xmit_zc() 839 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in i40e_xsk_clean_tx_ring()
|
| D | i40e_txrx.c | 30 i = tx_ring->next_to_use; in i40e_fdir() 34 tx_ring->next_to_use = (i < tx_ring->count) ? i : 0; in i40e_fdir() 122 i = tx_ring->next_to_use; in i40e_program_fdir_filter() 127 i = tx_ring->next_to_use; in i40e_program_fdir_filter() 131 tx_ring->next_to_use = ((i + 1) < tx_ring->count) ? i + 1 : 0; in i40e_program_fdir_filter() 156 writel(tx_ring->next_to_use, tx_ring->tail); in i40e_program_fdir_filter() 657 tx_ring->next_to_use = 0; in i40e_clean_tx_ring() 703 tail = ring->next_to_use; in i40e_get_tx_pending() 1328 tx_ring->next_to_use = 0; in i40e_setup_tx_descriptors() 1399 rx_ring->next_to_use = 0; in i40e_clean_rx_ring() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/intel/iavf/ |
| D | iavf_adminq.c | 341 hw->aq.asq.next_to_use = 0; in iavf_init_asq() 400 hw->aq.arq.next_to_use = 0; in iavf_init_arq() 618 return rd32(hw, hw->aq.asq.head) == hw->aq.asq.next_to_use; in iavf_asq_done() 665 details = IAVF_ADMINQ_DETAILS(hw->aq.asq, hw->aq.asq.next_to_use); in iavf_asq_send_command() 720 desc_on_ring = IAVF_ADMINQ_DESC(hw->aq.asq, hw->aq.asq.next_to_use); in iavf_asq_send_command() 727 dma_buff = &hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use]; in iavf_asq_send_command() 745 (hw->aq.asq.next_to_use)++; in iavf_asq_send_command() 746 if (hw->aq.asq.next_to_use == hw->aq.asq.count) in iavf_asq_send_command() 747 hw->aq.asq.next_to_use = 0; in iavf_asq_send_command() 749 wr32(hw, hw->aq.asq.tail, hw->aq.asq.next_to_use); in iavf_asq_send_command() [all …]
|
| D | iavf_txrx.c | 76 tx_ring->next_to_use = 0; in iavf_clean_tx_ring() 640 tx_ring->next_to_use = 0; in iavf_setup_tx_descriptors() 705 rx_ring->next_to_use = 0; in iavf_clean_rx_ring() 761 rx_ring->next_to_use = 0; in iavf_setup_rx_descriptors() 777 rx_ring->next_to_use = val; in iavf_release_rx_desc() 881 u16 ntu = rx_ring->next_to_use; in iavf_alloc_rx_buffers() 922 if (rx_ring->next_to_use != ntu) in iavf_alloc_rx_buffers() 928 if (rx_ring->next_to_use != ntu) in iavf_alloc_rx_buffers() 2130 int i = tx_ring->next_to_use; in iavf_create_tx_ctx() 2140 tx_ring->next_to_use = (i < tx_ring->count) ? i : 0; in iavf_create_tx_ctx() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/hisilicon/hns/ |
| D | hns_enet.c | 40 struct hnae_desc *desc = &ring->desc[ring->next_to_use]; in fill_v2_desc_hw() 41 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in fill_v2_desc_hw() 126 ring_ptr_move_fw(ring, next_to_use); in fill_v2_desc_hw() 148 struct hnae_desc *desc = &ring->desc[ring->next_to_use]; in fill_desc() 149 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in fill_desc() 202 ring_ptr_move_fw(ring, next_to_use); in fill_desc() 207 ring_ptr_move_bw(ring, next_to_use); in unfill_desc() 316 int size, next_to_use; in hns_nic_net_xmit_hw() local 333 next_to_use = ring->next_to_use; in hns_nic_net_xmit_hw() 377 while (ring->next_to_use != next_to_use) { in hns_nic_net_xmit_hw() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/atheros/atl1e/ |
| D | atl1e_main.c | 754 tx_ring->next_to_use = 0; in atl1e_init_ring_ptrs() 1555 u16 next_to_use = 0; in atl1e_tpd_avail() local 1559 next_to_use = tx_ring->next_to_use; in atl1e_tpd_avail() 1561 return (u16)(next_to_clean > next_to_use) ? in atl1e_tpd_avail() 1562 (next_to_clean - next_to_use - 1) : in atl1e_tpd_avail() 1563 (tx_ring->count + next_to_clean - next_to_use - 1); in atl1e_tpd_avail() 1574 u16 next_to_use = 0; in atl1e_get_tpd() local 1576 next_to_use = tx_ring->next_to_use; in atl1e_get_tpd() 1577 if (++tx_ring->next_to_use == tx_ring->count) in atl1e_get_tpd() 1578 tx_ring->next_to_use = 0; in atl1e_get_tpd() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/ |
| D | hclge_mbx.h | 124 (crq->next_to_use = (crq->next_to_use + 1) % crq->desc_num)
|
| D | hns3_enet.c | 1108 struct hns3_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in hns3_fill_desc() 1109 struct hns3_desc *desc = &ring->desc[ring->next_to_use]; in hns3_fill_desc() 1151 ring_ptr_move_fw(ring, next_to_use); in hns3_fill_desc() 1180 ring_ptr_move_fw(ring, next_to_use); in hns3_fill_desc() 1182 desc_cb = &ring->desc_cb[ring->next_to_use]; in hns3_fill_desc() 1183 desc = &ring->desc[ring->next_to_use]; in hns3_fill_desc() 1294 if (ring->next_to_use == next_to_use_orig) in hns3_clear_desc() 1298 ring_ptr_move_bw(ring, next_to_use); in hns3_clear_desc() 1301 if (ring->desc_cb[ring->next_to_use].type == DESC_TYPE_SKB) in hns3_clear_desc() 1303 ring->desc_cb[ring->next_to_use].dma, in hns3_clear_desc() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/atheros/atl1c/ |
| D | atl1c_main.c | 873 tpd_ring->next_to_use = 0; in atl1c_clean_tx_ring() 895 rfd_ring->next_to_use = 0; in atl1c_clean_rx_ring() 896 rrd_ring->next_to_use = 0; in atl1c_clean_rx_ring() 912 tpd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs() 919 rfd_ring->next_to_use = 0; in atl1c_init_ring_ptrs() 921 rrd_ring->next_to_use = 0; in atl1c_init_ring_ptrs() 1698 next_next = rfd_next_to_use = rfd_ring->next_to_use; in atl1c_alloc_rx_buffer() 1749 rfd_ring->next_to_use = rfd_next_to_use; in atl1c_alloc_rx_buffer() 1751 rfd_ring->next_to_use & MB_RFDX_PROD_IDX_MASK); in atl1c_alloc_rx_buffer() 1911 u16 next_to_use = 0; in atl1c_tpd_avail() local [all …]
|
| /Linux-v5.4/drivers/net/ethernet/intel/e1000/ |
| D | e1000.h | 154 unsigned int next_to_use; member 175 unsigned int next_to_use; member 192 unsigned int use = READ_ONCE((R)->next_to_use); \
|
| /Linux-v5.4/drivers/net/ethernet/oki-semi/pch_gbe/ |
| D | pch_gbe_main.c | 56 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 57 (R)->next_to_clean - (R)->next_to_use - 1) 946 tx_ring->next_to_use = 0; in pch_gbe_clean_tx_ring() 979 rx_ring->next_to_use = 0; in pch_gbe_clean_rx_ring() 1149 ring_num = tx_ring->next_to_use; in pch_gbe_tx_queue() 1151 tx_ring->next_to_use = 0; in pch_gbe_tx_queue() 1153 tx_ring->next_to_use = ring_num + 1; in pch_gbe_tx_queue() 1175 tx_ring->next_to_use = ring_num; in pch_gbe_tx_queue() 1366 i = rx_ring->next_to_use; in pch_gbe_alloc_rx_buffers() 1404 if (likely(rx_ring->next_to_use != i)) { in pch_gbe_alloc_rx_buffers() [all …]
|