/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_xsk.c | 194 u16 ntu = rx_ring->next_to_use; in i40e_alloc_rx_buffers_zc() 388 if (failure || next_to_clean == rx_ring->next_to_use) in i40e_clean_rx_irq_zc() 407 tx_desc = I40E_TX_DESC(xdp_ring, xdp_ring->next_to_use++); in i40e_xmit_pkt() 418 u16 ntu = xdp_ring->next_to_use; in i40e_xmit_pkt_batch() 436 xdp_ring->next_to_use = ntu; in i40e_xmit_pkt_batch() 454 u16 ntu = xdp_ring->next_to_use ? xdp_ring->next_to_use - 1 : xdp_ring->count - 1; in i40e_set_rs_bit() 478 if (xdp_ring->next_to_use + nb_pkts >= xdp_ring->count) { in i40e_xmit_zc() 479 nb_processed = xdp_ring->count - xdp_ring->next_to_use; in i40e_xmit_zc() 481 xdp_ring->next_to_use = 0; in i40e_xmit_zc() 620 u16 ntu = rx_ring->next_to_use; in i40e_xsk_clean_rx_ring() [all …]
|
A 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() 767 return rd32(hw, hw->aq.asq.head) == hw->aq.asq.next_to_use; in i40e_asq_done() 877 dma_buff = &(hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use]); in i40e_asq_send_command() 895 (hw->aq.asq.next_to_use)++; in i40e_asq_send_command() 896 if (hw->aq.asq.next_to_use == hw->aq.asq.count) in i40e_asq_send_command() 897 hw->aq.asq.next_to_use = 0; in i40e_asq_send_command() 899 wr32(hw, hw->aq.asq.tail, hw->aq.asq.next_to_use); in i40e_asq_send_command() 1077 hw->aq.arq.next_to_use = ntu; in i40e_clean_arq_element() 1093 hw->aq.asq.next_to_use = 0; in i40e_resume_aq() [all …]
|
A D | i40e_txrx.c | 30 i = tx_ring->next_to_use; in i40e_fdir() 119 i = tx_ring->next_to_use; in i40e_program_fdir_filter() 124 i = tx_ring->next_to_use; in i40e_program_fdir_filter() 812 tx_ring->next_to_use = 0; in i40e_clean_tx_ring() 860 tail = ring->next_to_use; in i40e_get_tx_pending() 1460 tx_ring->next_to_use = 0; in i40e_setup_tx_descriptors() 1547 rx_ring->next_to_use = 0; in i40e_clean_rx_ring() 1599 rx_ring->next_to_use = 0; in i40e_setup_rx_descriptors() 2876 i = tx_ring->next_to_use; in i40e_atr() 3574 tx_ring->next_to_use = i; in i40e_tx_map() [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
A D | hclgevf_cmd.c | 19 int ntu = ring->next_to_use; in hclgevf_ring_space() 30 int ntu = ring->next_to_use; in hclgevf_is_valid_csq_clean_head() 51 csq->next_to_use, csq->next_to_clean); in hclgevf_cmd_csq_clean() 69 return head == hw->cmq.csq.next_to_use; in hclgevf_cmd_csq_done() 193 (hw->cmq.csq.next_to_use)++; in hclgevf_cmd_copy_desc() 194 if (hw->cmq.csq.next_to_use == hw->cmq.csq.desc_num) in hclgevf_cmd_copy_desc() 195 hw->cmq.csq.next_to_use = 0; in hclgevf_cmd_copy_desc() 321 ntc = hw->cmq.csq.next_to_use; in hclgevf_cmd_send() 327 hw->cmq.csq.next_to_use); in hclgevf_cmd_send() 470 hdev->hw.cmq.csq.next_to_use = 0; in hclgevf_cmd_init() [all …]
|
A D | hclgevf_mbx.c | 156 return tail == hw->cmq.crq.next_to_use; in hclgevf_cmd_crq_empty() 227 desc = &crq->desc[crq->next_to_use]; in hclgevf_mbx_handler() 230 flag = le16_to_cpu(crq->desc[crq->next_to_use].flag); in hclgevf_mbx_handler() 237 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler() 267 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler() 273 crq->next_to_use); in hclgevf_mbx_handler()
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
A D | ixgbe_xsk.c | 151 u16 i = rx_ring->next_to_use; in ixgbe_alloc_rx_buffers_zc() 194 if (rx_ring->next_to_use != i) { in ixgbe_alloc_rx_buffers_zc() 195 rx_ring->next_to_use = i; in ixgbe_alloc_rx_buffers_zc() 356 if (failure || rx_ring->next_to_clean == rx_ring->next_to_use) in ixgbe_clean_rx_irq_zc() 405 tx_bi = &xdp_ring->tx_buffer_info[xdp_ring->next_to_use]; in ixgbe_xmit_zc() 410 tx_desc = IXGBE_TX_DESC(xdp_ring, xdp_ring->next_to_use); in ixgbe_xmit_zc() 422 xdp_ring->next_to_use++; in ixgbe_xmit_zc() 423 if (xdp_ring->next_to_use == xdp_ring->count) in ixgbe_xmit_zc() 424 xdp_ring->next_to_use = 0; in ixgbe_xmit_zc() 448 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in ixgbe_clean_xdp_tx_irq() [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
A D | hclge_cmd.c | 18 int ntu = ring->next_to_use; in hclge_ring_space() 27 int ntu = ring->next_to_use; in is_valid_csq_clean_head() 147 csq->next_to_use, csq->next_to_clean); in hclge_cmd_csq_clean() 164 return head == hw->cmq.csq.next_to_use; in hclge_cmd_csq_done() 207 desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use]; in hclge_cmd_copy_desc() 209 (hw->cmq.csq.next_to_use)++; in hclge_cmd_copy_desc() 210 if (hw->cmq.csq.next_to_use >= hw->cmq.csq.desc_num) in hclge_cmd_copy_desc() 211 hw->cmq.csq.next_to_use = 0; in hclge_cmd_copy_desc() 339 ntc = hw->cmq.csq.next_to_use; in hclge_cmd_send() 502 hdev->hw.cmq.csq.next_to_use = 0; in hclge_cmd_init() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_controlq.h | 18 ((u16)((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 19 (R)->next_to_clean - (R)->next_to_use - 1)) 55 u16 next_to_use; member
|
A D | ice_xsk.c | 374 u16 ntu = rx_ring->next_to_use; in ice_alloc_rx_bufs_zc() 603 if (failure || rx_ring->next_to_clean == rx_ring->next_to_use) in ice_clean_rx_irq_zc() 637 tx_buf = &xdp_ring->tx_buf[xdp_ring->next_to_use]; in ice_xmit_zc() 648 tx_desc = ICE_TX_DESC(xdp_ring, xdp_ring->next_to_use); in ice_xmit_zc() 653 xdp_ring->next_to_use++; in ice_xmit_zc() 654 if (xdp_ring->next_to_use == xdp_ring->count) in ice_xmit_zc() 655 xdp_ring->next_to_use = 0; in ice_xmit_zc() 815 u16 ntu = rx_ring->next_to_use; in ice_xsk_clean_rx_ring() 830 u16 ntc = xdp_ring->next_to_clean, ntu = xdp_ring->next_to_use; in ice_xsk_clean_xdp_ring()
|
A D | ice_txrx_lib.c | 15 u16 prev_ntu = rx_ring->next_to_use & ~0x7; in ice_release_rx_desc() 17 rx_ring->next_to_use = val; in ice_release_rx_desc() 271 u16 i = xdp_ring->next_to_use; in ice_xmit_xdp_ring() 310 xdp_ring->next_to_use = i; in ice_xmit_xdp_ring()
|
A D | ice_txrx.h | 111 (u16)((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 112 (R)->next_to_clean - (R)->next_to_use - 1) 276 u16 next_to_use; member 315 u16 next_to_use; member
|
A D | ice_controlq.c | 380 cq->sq.next_to_use = 0; in ice_init_sq() 440 cq->rq.next_to_use = 0; in ice_init_rq() 950 return rd32(hw, cq->sq.head) == cq->sq.next_to_use; in ice_sq_done() 1018 details = ICE_CTL_Q_DETAILS(cq->sq, cq->sq.next_to_use); in ice_sq_send_cmd() 1036 desc_on_ring = ICE_CTL_Q_DESC(cq->sq, cq->sq.next_to_use); in ice_sq_send_cmd() 1043 dma_buf = &cq->sq.r.sq_bi[cq->sq.next_to_use]; in ice_sq_send_cmd() 1062 (cq->sq.next_to_use)++; in ice_sq_send_cmd() 1063 if (cq->sq.next_to_use == cq->sq.count) in ice_sq_send_cmd() 1064 cq->sq.next_to_use = 0; in ice_sq_send_cmd() 1065 wr32(hw, cq->sq.tail, cq->sq.next_to_use); in ice_sq_send_cmd() [all …]
|
A D | ice_txrx.c | 65 i = tx_ring->next_to_use; in ice_prgm_fdir_fltr() 173 tx_ring->next_to_use = 0; in ice_clean_tx_ring() 362 tx_ring->next_to_use = 0; in ice_setup_tx_ring() 434 rx_ring->next_to_use = 0; in ice_clean_rx_ring() 501 rx_ring->next_to_use = 0; in ice_setup_rx_ring() 703 u16 ntu = rx_ring->next_to_use; in ice_alloc_rx_bufs() 746 if (rx_ring->next_to_use != ntu) in ice_alloc_rx_bufs() 1571 u16 i = tx_ring->next_to_use; in ice_tx_map() 1685 tx_ring->next_to_use = i; in ice_tx_map() 1707 tx_ring->next_to_use = i; in ice_tx_map() [all …]
|
/linux/drivers/net/ethernet/atheros/atlx/ |
A D | atl1.c | 1118 rrd_ring->next_to_use = 0; in atl1_init_ring_ptrs() 2092 u16 next_to_use = atomic_read(&tpd_ring->next_to_use); in atl1_tpd_avail() local 2194 u16 next_to_use; in atl1_tx_map() local 2200 next_to_use = atomic_read(&tpd_ring->next_to_use); in atl1_tx_map() 2218 next_to_use = 0; in atl1_tx_map() 2243 next_to_use = 0; in atl1_tx_map() 2255 next_to_use = 0; in atl1_tx_map() 2279 next_to_use = 0; in atl1_tx_map() 2295 u16 next_to_use = (u16) atomic_read(&tpd_ring->next_to_use); in atl1_tx_queue() local 2324 next_to_use = 0; in atl1_tx_queue() [all …]
|
/linux/drivers/net/ethernet/intel/igc/ |
A D | igc_dump.c | 142 n, tx_ring->next_to_use, tx_ring->next_to_clean, in igc_rings_dump() 181 if (i == tx_ring->next_to_use && in igc_rings_dump() 184 else if (i == tx_ring->next_to_use) in igc_rings_dump() 215 netdev_info(netdev, "%5d %5X %5X\n", n, rx_ring->next_to_use, in igc_rings_dump() 264 if (i == rx_ring->next_to_use) in igc_rings_dump()
|
/linux/drivers/net/ethernet/intel/ixgb/ |
A D | ixgb.h | 93 unsigned int next_to_use; member 101 ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 102 (R)->next_to_clean - (R)->next_to_use - 1)
|
A D | ixgb_main.c | 688 txdr->next_to_use = 0; in ixgb_setup_tx_resources() 773 rxdr->next_to_use = 0; in ixgb_setup_rx_resources() 940 tx_ring->next_to_use = 0; in ixgb_clean_tx_ring() 1012 rx_ring->next_to_use = 0; in ixgb_clean_rx_ring() 1214 i = adapter->tx_ring.next_to_use; in ixgb_tso() 1300 i = tx_ring->next_to_use; in ixgb_tx_map() 1409 i = tx_ring->next_to_use; in ixgb_tx_queue() 1433 tx_ring->next_to_use = i; in ixgb_tx_queue() 1855 tx_ring->next_to_use, in ixgb_clean_tx_irq() 2066 i = rx_ring->next_to_use; in ixgb_alloc_rx_buffers() [all …]
|
/linux/drivers/net/ethernet/intel/iavf/ |
A 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 …]
|
A 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() 2119 int i = tx_ring->next_to_use; in iavf_create_tx_ctx() 2264 u16 i = tx_ring->next_to_use; in iavf_tx_map() 2344 tx_ring->next_to_use = i; in iavf_tx_map() [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns/ |
A D | hns_enet.c | 127 ring_ptr_move_fw(ring, next_to_use); in fill_v2_desc_hw() 203 ring_ptr_move_fw(ring, next_to_use); in fill_desc() 208 ring_ptr_move_bw(ring, next_to_use); in unfill_desc() 317 int size, next_to_use; in hns_nic_net_xmit_hw() local 334 next_to_use = ring->next_to_use; in hns_nic_net_xmit_hw() 378 while (ring->next_to_use != next_to_use) { in hns_nic_net_xmit_hw() 380 if (ring->next_to_use != next_to_use) in hns_nic_net_xmit_hw() 387 ring->desc_cb[next_to_use].dma, in hns_nic_net_xmit_hw() 685 ring_ptr_move_fw(ring, next_to_use); in hns_nic_alloc_rx_buffers() 706 int ntu = ring->next_to_use; in hns_desc_unused() [all …]
|
/linux/drivers/net/ethernet/freescale/enetc/ |
A D | enetc_cbdr.c | 24 cbdr->next_to_use = 0; in enetc_setup_cbdr() 41 enetc_wr_reg(cbdr->cir, cbdr->next_to_use); in enetc_setup_cbdr() 85 return (r->next_to_clean - r->next_to_use - 1 + r->bd_count) % in enetc_cbd_unused() 102 i = ring->next_to_use; in enetc_send_cmd() 109 ring->next_to_use = i; in enetc_send_cmd()
|
A D | enetc.h | 95 int next_to_use; member 129 if (bdr->next_to_clean > bdr->next_to_use) in enetc_bd_unused() 130 return bdr->next_to_clean - bdr->next_to_use - 1; in enetc_bd_unused() 132 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_use - 1; in enetc_bd_unused() 152 int next_to_use; member
|
/linux/drivers/net/ethernet/atheros/atl1e/ |
A D | atl1e_main.c | 751 tx_ring->next_to_use = 0; in atl1e_init_ring_ptrs() 1559 u16 next_to_use = 0; in atl1e_tpd_avail() local 1563 next_to_use = tx_ring->next_to_use; in atl1e_tpd_avail() 1565 return (u16)(next_to_clean > next_to_use) ? in atl1e_tpd_avail() 1566 (next_to_clean - next_to_use - 1) : in atl1e_tpd_avail() 1578 u16 next_to_use = 0; in atl1e_get_tpd() local 1580 next_to_use = tx_ring->next_to_use; in atl1e_get_tpd() 1582 tx_ring->next_to_use = 0; in atl1e_get_tpd() 1585 return &tx_ring->desc[next_to_use]; in atl1e_get_tpd() 1757 ring_end = adapter->tx_ring.next_to_use; in atl1e_tx_map() [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns3/ |
A D | hns3_enet.c | 971 ntu = tx_spare->next_to_use; in hns3_tx_spare_space() 1089 u32 ntu = tx_spare->next_to_use; in hns3_tx_spare_alloc() 1104 tx_spare->next_to_use = 0; in hns3_tx_spare_alloc() 1116 len -= tx_spare->next_to_use; in hns3_tx_spare_rollback() 1119 tx_spare->next_to_use -= len; in hns3_tx_spare_rollback() 2227 pre_ntu = ring->next_to_use ? (ring->next_to_use - 1) : in hns3_nic_net_xmit() 3481 int ntu = ring->next_to_use; in hns3_desc_unused() 4697 ring->next_to_use = 0; in hns3_ring_get_cfg() 4805 ring->next_to_use = 0; in hns3_fini_ring() 5376 priv->ring[i].next_to_use = 0; in hns3_nic_reset_all_ring() [all …]
|
/linux/drivers/net/ethernet/atheros/atl1c/ |
A D | atl1c_main.c | 909 tpd_ring->next_to_use = 0; in atl1c_clean_tx_ring() 932 rfd_ring->next_to_use = 0; in atl1c_clean_rx_ring() 933 rrd_ring->next_to_use = 0; in atl1c_clean_rx_ring() 949 tpd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs() 957 rfd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs() 959 rrd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs() 2026 u16 next_to_use = 0; in atl1c_tpd_avail() local 2030 next_to_use = tpd_ring->next_to_use; in atl1c_tpd_avail() 2047 u16 next_to_use = 0; in atl1c_get_tpd() local 2049 next_to_use = tpd_ring->next_to_use; in atl1c_get_tpd() [all …]
|