/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_cmd.c | 20 int ntu = ring->next_to_use; in hclge_ring_space() 29 int u = 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() 218 ntc = hw->cmq.csq.next_to_use; in hclge_cmd_send() 221 desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use]; in hclge_cmd_send() 223 (hw->cmq.csq.next_to_use)++; in hclge_cmd_send() 224 if (hw->cmq.csq.next_to_use == hw->cmq.csq.desc_num) in hclge_cmd_send() 225 hw->cmq.csq.next_to_use = 0; in hclge_cmd_send() 230 hclge_write_dev(hw, HCLGE_NIC_CSQ_TAIL_REG, hw->cmq.csq.next_to_use); in hclge_cmd_send() [all …]
|
D | hclge_mbx.c | 448 return tail == hw->cmq.crq.next_to_use; in hclge_cmd_crq_empty() 461 desc = &crq->desc[crq->next_to_use]; in hclge_mbx_handler() 464 flag = le16_to_cpu(crq->desc[crq->next_to_use].flag); in hclge_mbx_handler() 471 crq->desc[crq->next_to_use].flag = 0; in hclge_mbx_handler() 548 crq->desc[crq->next_to_use].flag = 0; in hclge_mbx_handler() 553 hclge_write_dev(&hdev->hw, HCLGE_NIC_CRQ_HEAD_REG, crq->next_to_use); in hclge_mbx_handler()
|
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_cmd.c | 22 int ntu = ring->next_to_use; in hclgevf_ring_space() 59 return head == hw->cmq.csq.next_to_use; in hclgevf_cmd_csq_done() 110 ring->next_to_use = 0; in hclgevf_init_cmd_queue() 199 ntc = hw->cmq.csq.next_to_use; in hclgevf_cmd_send() 202 desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use]; in hclgevf_cmd_send() 204 (hw->cmq.csq.next_to_use)++; in hclgevf_cmd_send() 205 if (hw->cmq.csq.next_to_use == hw->cmq.csq.desc_num) in hclgevf_cmd_send() 206 hw->cmq.csq.next_to_use = 0; in hclgevf_cmd_send() 212 hw->cmq.csq.next_to_use); in hclgevf_cmd_send()
|
D | hclgevf_mbx.c | 133 return tail == hw->cmq.crq.next_to_use; in hclgevf_cmd_crq_empty() 151 desc = &crq->desc[crq->next_to_use]; in hclgevf_mbx_handler() 154 flag = le16_to_cpu(crq->desc[crq->next_to_use].flag); in hclgevf_mbx_handler() 161 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler() 225 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler() 231 crq->next_to_use); in hclgevf_mbx_handler()
|
/Linux-v4.19/drivers/net/ethernet/intel/ice/ |
D | ice_controlq.h | 16 (u16)((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 17 (R)->next_to_clean - (R)->next_to_use - 1) 49 u16 next_to_use; member
|
D | ice_txrx.h | 28 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 29 (R)->next_to_clean - (R)->next_to_use - 1) 143 u16 next_to_use; member
|
D | ice_txrx.c | 68 tx_ring->next_to_use = 0; in ice_clean_tx_ring() 252 tx_ring->next_to_use = 0; in ice_setup_tx_ring() 302 rx_ring->next_to_use = 0; in ice_clean_rx_ring() 356 rx_ring->next_to_use = 0; in ice_setup_rx_ring() 373 rx_ring->next_to_use = val; in ice_release_rx_desc() 443 u16 ntu = rx_ring->next_to_use; in ice_alloc_rx_bufs() 478 if (rx_ring->next_to_use != ntu) in ice_alloc_rx_bufs() 484 if (rx_ring->next_to_use != ntu) in ice_alloc_rx_bufs() 1175 u16 i = tx_ring->next_to_use; in ice_tx_map() 1288 tx_ring->next_to_use = i; in ice_tx_map() [all …]
|
D | ice_controlq.c | 394 cq->sq.next_to_use = 0; in ice_init_sq() 453 cq->rq.next_to_use = 0; in ice_init_rq() 780 return rd32(hw, cq->sq.head) == cq->sq.next_to_use; in ice_sq_done() 848 details = ICE_CTL_Q_DETAILS(cq->sq, cq->sq.next_to_use); in ice_sq_send_cmd() 867 desc_on_ring = ICE_CTL_Q_DESC(cq->sq, cq->sq.next_to_use); in ice_sq_send_cmd() 874 dma_buf = &cq->sq.r.sq_bi[cq->sq.next_to_use]; in ice_sq_send_cmd() 894 (cq->sq.next_to_use)++; in ice_sq_send_cmd() 895 if (cq->sq.next_to_use == cq->sq.count) in ice_sq_send_cmd() 896 cq->sq.next_to_use = 0; in ice_sq_send_cmd() 897 wr32(hw, cq->sq.tail, cq->sq.next_to_use); in ice_sq_send_cmd() [all …]
|
/Linux-v4.19/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() 1413 i = tx_ring->next_to_use; in ixgb_tx_queue() [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/ |
D | i40e_adminq.c | 351 hw->aq.asq.next_to_use = 0; in i40e_init_asq() 410 hw->aq.arq.next_to_use = 0; in i40e_init_arq() 631 return rd32(hw, hw->aq.asq.head) == hw->aq.asq.next_to_use; in i40evf_asq_done() 679 details = I40E_ADMINQ_DETAILS(hw->aq.asq, hw->aq.asq.next_to_use); in i40evf_asq_send_command() 734 desc_on_ring = I40E_ADMINQ_DESC(hw->aq.asq, hw->aq.asq.next_to_use); in i40evf_asq_send_command() 741 dma_buff = &(hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use]); in i40evf_asq_send_command() 759 (hw->aq.asq.next_to_use)++; in i40evf_asq_send_command() 760 if (hw->aq.asq.next_to_use == hw->aq.asq.count) in i40evf_asq_send_command() 761 hw->aq.asq.next_to_use = 0; in i40evf_asq_send_command() 763 wr32(hw, hw->aq.asq.tail, hw->aq.asq.next_to_use); in i40evf_asq_send_command() [all …]
|
D | i40e_txrx.c | 77 tx_ring->next_to_use = 0; in i40evf_clean_tx_ring() 641 tx_ring->next_to_use = 0; in i40evf_setup_tx_descriptors() 706 rx_ring->next_to_use = 0; in i40evf_clean_rx_ring() 762 rx_ring->next_to_use = 0; in i40evf_setup_rx_descriptors() 778 rx_ring->next_to_use = val; in i40e_release_rx_desc() 882 u16 ntu = rx_ring->next_to_use; in i40evf_alloc_rx_buffers() 923 if (rx_ring->next_to_use != ntu) in i40evf_alloc_rx_buffers() 929 if (rx_ring->next_to_use != ntu) in i40evf_alloc_rx_buffers() 2113 int i = tx_ring->next_to_use; in i40e_create_tx_ctx() 2123 tx_ring->next_to_use = (i < tx_ring->count) ? i : 0; in i40e_create_tx_ctx() [all …]
|
/Linux-v4.19/drivers/net/ethernet/atheros/atlx/ |
D | atl1.c | 1133 atomic_set(&tpd_ring->next_to_use, 0); in atl1_init_ring_ptrs() 1137 atomic_set(&rfd_ring->next_to_use, 0); in atl1_init_ring_ptrs() 1139 rrd_ring->next_to_use = 0; in atl1_init_ring_ptrs() 1177 atomic_set(&rfd_ring->next_to_use, 0); in atl1_clean_rx_ring() 1179 rrd_ring->next_to_use = 0; in atl1_clean_rx_ring() 1219 atomic_set(&tpd_ring->next_to_use, 0); in atl1_clean_tx_ring() 1518 value = ((atomic_read(&adapter->tpd_ring.next_to_use) in atl1_configure() 1522 ((atomic_read(&adapter->rfd_ring.next_to_use) in atl1_configure() 1764 tpd_next_to_use = atomic_read(&adapter->tpd_ring.next_to_use); in atl1_update_mailbox() 1765 rfd_next_to_use = atomic_read(&adapter->rfd_ring.next_to_use); in atl1_update_mailbox() [all …]
|
/Linux-v4.19/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() 702 return rd32(hw, hw->aq.asq.head) == hw->aq.asq.next_to_use; in i40e_asq_done() 750 details = I40E_ADMINQ_DETAILS(hw->aq.asq, hw->aq.asq.next_to_use); in i40e_asq_send_command() 805 desc_on_ring = I40E_ADMINQ_DESC(hw->aq.asq, hw->aq.asq.next_to_use); in i40e_asq_send_command() 812 dma_buff = &(hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use]); in i40e_asq_send_command() 830 (hw->aq.asq.next_to_use)++; in i40e_asq_send_command() 831 if (hw->aq.asq.next_to_use == hw->aq.asq.count) in i40e_asq_send_command() 832 hw->aq.asq.next_to_use = 0; in i40e_asq_send_command() 834 wr32(hw, hw->aq.asq.tail, hw->aq.asq.next_to_use); in i40e_asq_send_command() [all …]
|
D | i40e_txrx.c | 39 i = tx_ring->next_to_use; in i40e_fdir() 43 tx_ring->next_to_use = (i < tx_ring->count) ? i : 0; in i40e_fdir() 131 i = tx_ring->next_to_use; in i40e_program_fdir_filter() 136 i = tx_ring->next_to_use; in i40e_program_fdir_filter() 140 tx_ring->next_to_use = ((i + 1) < tx_ring->count) ? i + 1 : 0; in i40e_program_fdir_filter() 165 writel(tx_ring->next_to_use, tx_ring->tail); in i40e_program_fdir_filter() 661 tx_ring->next_to_use = 0; in i40e_clean_tx_ring() 707 tail = ring->next_to_use; in i40e_get_tx_pending() 1346 tx_ring->next_to_use = 0; in i40e_setup_tx_descriptors() 1411 rx_ring->next_to_use = 0; in i40e_clean_rx_ring() [all …]
|
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns/ |
D | hns_enet.c | 47 struct hnae_desc *desc = &ring->desc[ring->next_to_use]; in fill_v2_desc_hw() 48 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in fill_v2_desc_hw() 133 ring_ptr_move_fw(ring, next_to_use); in fill_v2_desc_hw() 155 struct hnae_desc *desc = &ring->desc[ring->next_to_use]; in fill_desc() 156 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in fill_desc() 209 ring_ptr_move_fw(ring, next_to_use); in fill_desc() 214 ring_ptr_move_bw(ring, next_to_use); in unfill_desc() 323 int size, next_to_use; in hns_nic_net_xmit_hw() local 340 next_to_use = ring->next_to_use; in hns_nic_net_xmit_hw() 386 while (ring->next_to_use != next_to_use) { in hns_nic_net_xmit_hw() [all …]
|
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/ |
D | hclge_mbx.h | 103 (crq->next_to_use = (crq->next_to_use + 1) % crq->desc_num)
|
D | hns3_enet.c | 902 struct hns3_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use]; in hns3_fill_desc() 903 struct hns3_desc *desc = &ring->desc[ring->next_to_use]; in hns3_fill_desc() 971 ring_ptr_move_fw(ring, next_to_use); in hns3_fill_desc() 1062 if (ring->next_to_use == next_to_use_orig) in hns_nic_dma_unmap() 1066 if (ring->desc_cb[ring->next_to_use].type == DESC_TYPE_SKB) in hns_nic_dma_unmap() 1068 ring->desc_cb[ring->next_to_use].dma, in hns_nic_dma_unmap() 1069 ring->desc_cb[ring->next_to_use].length, in hns_nic_dma_unmap() 1073 ring->desc_cb[ring->next_to_use].dma, in hns_nic_dma_unmap() 1074 ring->desc_cb[ring->next_to_use].length, in hns_nic_dma_unmap() 1078 ring_ptr_move_bw(ring, next_to_use); in hns_nic_dma_unmap() [all …]
|
/Linux-v4.19/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 765 tx_ring->next_to_use = 0; in atl1e_init_ring_ptrs() 1566 u16 next_to_use = 0; in atl1e_tpd_avail() local 1570 next_to_use = tx_ring->next_to_use; in atl1e_tpd_avail() 1572 return (u16)(next_to_clean > next_to_use) ? in atl1e_tpd_avail() 1573 (next_to_clean - next_to_use - 1) : in atl1e_tpd_avail() 1574 (tx_ring->count + next_to_clean - next_to_use - 1); in atl1e_tpd_avail() 1585 u16 next_to_use = 0; in atl1e_get_tpd() local 1587 next_to_use = tx_ring->next_to_use; in atl1e_get_tpd() 1588 if (++tx_ring->next_to_use == tx_ring->count) in atl1e_get_tpd() 1589 tx_ring->next_to_use = 0; in atl1e_get_tpd() [all …]
|
/Linux-v4.19/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_main.c | 886 tpd_ring->next_to_use = 0; in atl1c_clean_tx_ring() 908 rfd_ring->next_to_use = 0; in atl1c_clean_rx_ring() 909 rrd_ring->next_to_use = 0; in atl1c_clean_rx_ring() 925 tpd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs() 932 rfd_ring->next_to_use = 0; in atl1c_init_ring_ptrs() 934 rrd_ring->next_to_use = 0; in atl1c_init_ring_ptrs() 1711 next_next = rfd_next_to_use = rfd_ring->next_to_use; in atl1c_alloc_rx_buffer() 1762 rfd_ring->next_to_use = rfd_next_to_use; in atl1c_alloc_rx_buffer() 1764 rfd_ring->next_to_use & MB_RFDX_PROD_IDX_MASK); in atl1c_alloc_rx_buffer() 1924 u16 next_to_use = 0; in atl1c_tpd_avail() local [all …]
|
/Linux-v4.19/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-v4.19/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_main.c | 70 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 71 (R)->next_to_clean - (R)->next_to_use - 1) 960 tx_ring->next_to_use = 0; in pch_gbe_clean_tx_ring() 993 rx_ring->next_to_use = 0; in pch_gbe_clean_rx_ring() 1163 ring_num = tx_ring->next_to_use; in pch_gbe_tx_queue() 1165 tx_ring->next_to_use = 0; in pch_gbe_tx_queue() 1167 tx_ring->next_to_use = ring_num + 1; in pch_gbe_tx_queue() 1189 tx_ring->next_to_use = ring_num; in pch_gbe_tx_queue() 1380 i = rx_ring->next_to_use; in pch_gbe_alloc_rx_buffers() 1418 if (likely(rx_ring->next_to_use != i)) { in pch_gbe_alloc_rx_buffers() [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 114 u16 i = rx_ring->next_to_use; in fm10k_alloc_rx_buffers() 150 if (rx_ring->next_to_use != i) { in fm10k_alloc_rx_buffers() 152 rx_ring->next_to_use = i; in fm10k_alloc_rx_buffers() 784 tx_desc = FM10K_TX_DESC(tx_ring, tx_ring->next_to_use); in fm10k_tso() 878 tx_desc = FM10K_TX_DESC(tx_ring, tx_ring->next_to_use); in fm10k_tx_csum() 952 u16 i = tx_ring->next_to_use; in fm10k_tx_map() 1032 tx_ring->next_to_use = i; in fm10k_tx_map() 1062 tx_ring->next_to_use = i; in fm10k_tx_map() 1088 first = &tx_ring->tx_buffer[tx_ring->next_to_use]; in fm10k_xmit_frame_ring() 1131 tail = ring->next_to_use; in fm10k_get_tx_pending() [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/igbvf/ |
D | netdev.c | 70 if (ring->next_to_clean > ring->next_to_use) in igbvf_desc_unused() 71 return ring->next_to_clean - ring->next_to_use - 1; in igbvf_desc_unused() 73 return ring->count + ring->next_to_clean - ring->next_to_use - 1; in igbvf_desc_unused() 145 i = rx_ring->next_to_use; in igbvf_alloc_rx_buffers() 218 if (rx_ring->next_to_use != i) { in igbvf_alloc_rx_buffers() 219 rx_ring->next_to_use = i; in igbvf_alloc_rx_buffers() 435 tx_ring->next_to_use = 0; in igbvf_setup_tx_resources() 475 rx_ring->next_to_use = 0; in igbvf_setup_rx_resources() 515 tx_ring->next_to_use = 0; in igbvf_clean_tx_ring() 599 rx_ring->next_to_use = 0; in igbvf_clean_rx_ring() [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/igb/ |
D | igb.h | 274 u16 next_to_use; member 377 if (ring->next_to_clean > ring->next_to_use) in igb_desc_unused() 378 return ring->next_to_clean - ring->next_to_use - 1; in igb_desc_unused() 380 return ring->count + ring->next_to_clean - ring->next_to_use - 1; in igb_desc_unused()
|