| /linux/drivers/net/ethernet/mscc/ |
| A D | ocelot_fdma.c | 60 if (rx_ring->next_to_use >= rx_ring->next_to_clean) in ocelot_fdma_rx_ring_free() 71 if (tx_ring->next_to_use >= tx_ring->next_to_clean) in ocelot_fdma_tx_ring_free() 157 idx = rx_ring->next_to_use; in ocelot_fdma_alloc_rx_buffs() 180 rx_ring->next_to_use = idx; in ocelot_fdma_alloc_rx_buffs() 228 idx = ocelot_fdma_idx_prev(rx_ring->next_to_use, in ocelot_fdma_rx_set_llp() 616 dcb = &tx_ring->dcbs[tx_ring->next_to_use]; in ocelot_fdma_send_skb() 617 tx_buf = &tx_ring->bufs[tx_ring->next_to_use]; in ocelot_fdma_send_skb() 630 tx_ring->next_to_use); in ocelot_fdma_send_skb() 637 tx_ring->next_to_use = next_idx; in ocelot_fdma_send_skb() 709 while (idx != rx_ring->next_to_use) { in ocelot_fdma_free_rx_ring() [all …]
|
| A D | ocelot_fdma.h | 98 u16 next_to_use; member 130 u16 next_to_use; member
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| A D | ixgbe_xsk.c | 155 u16 i = rx_ring->next_to_use; in ixgbe_alloc_rx_buffers_zc() 198 if (rx_ring->next_to_use != i) { in ixgbe_alloc_rx_buffers_zc() 199 rx_ring->next_to_use = i; in ixgbe_alloc_rx_buffers_zc() 365 if (failure || rx_ring->next_to_clean == rx_ring->next_to_use) in ixgbe_clean_rx_irq_zc() 416 tx_bi = &xdp_ring->tx_buffer_info[xdp_ring->next_to_use]; in ixgbe_xmit_zc() 421 tx_desc = IXGBE_TX_DESC(xdp_ring, xdp_ring->next_to_use); in ixgbe_xmit_zc() 433 xdp_ring->next_to_use++; in ixgbe_xmit_zc() 434 if (xdp_ring->next_to_use == xdp_ring->count) in ixgbe_xmit_zc() 435 xdp_ring->next_to_use = 0; in ixgbe_xmit_zc() 459 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in ixgbe_clean_xdp_tx_irq() [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)) 62 u16 next_to_use; member
|
| A D | ice_xsk.c | 479 u16 ntu = rx_ring->next_to_use; in __ice_alloc_rx_bufs_zc() 507 if (rx_ring->next_to_use != ntu) in __ice_alloc_rx_bufs_zc() 619 last_rs = xdp_ring->next_to_use ? xdp_ring->next_to_use - 1 : cnt - 1; in ice_clean_xdp_irq_zc() 683 u32 ntu = xdp_ring->next_to_use; in ice_xmit_xdp_tx_zc() 736 xdp_ring->next_to_use = ntu; in ice_xmit_xdp_tx_zc() 847 u32 ntu = rx_ring->next_to_use; in ice_clean_rx_irq_zc() 968 if (failure || ntc == rx_ring->next_to_use) in ice_clean_rx_irq_zc() 1016 u16 ntu = xdp_ring->next_to_use; in ice_xmit_pkt_batch() 1034 xdp_ring->next_to_use = ntu; in ice_xmit_pkt_batch() 1091 xdp_ring->next_to_use = 0; in ice_xmit_zc() [all …]
|
| A D | ice_txrx.h | 112 (u16)((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ 113 (R)->next_to_clean - (R)->next_to_use - 1) 116 ((((R)->first_desc > (R)->next_to_use) ? 0 : (R)->count) + \ 117 (R)->first_desc - (R)->next_to_use - 1) 348 u16 next_to_use; member 387 u16 next_to_use; member
|
| A D | ice_txrx_lib.h | 135 writel_relaxed(xdp_ring->next_to_use, xdp_ring->tail); in ice_xdp_ring_update_tail() 146 u32 rs_idx = xdp_ring->next_to_use ? xdp_ring->next_to_use - 1 : xdp_ring->count - 1; in ice_set_rs_bit()
|
| A D | ice_controlq.c | 364 cq->sq.next_to_use = 0; in ice_init_sq() 424 cq->rq.next_to_use = 0; in ice_init_rq() 976 head, head == cq->sq.next_to_use, in ice_sq_done() 1056 desc_on_ring = ICE_CTL_Q_DESC(cq->sq, cq->sq.next_to_use); in ice_sq_send_cmd() 1063 dma_buf = &cq->sq.r.sq_bi[cq->sq.next_to_use]; in ice_sq_send_cmd() 1082 (cq->sq.next_to_use)++; in ice_sq_send_cmd() 1083 if (cq->sq.next_to_use == cq->sq.count) in ice_sq_send_cmd() 1084 cq->sq.next_to_use = 0; in ice_sq_send_cmd() 1085 wr32(hw, cq->sq.tail, cq->sq.next_to_use); in ice_sq_send_cmd() 1247 cq->rq.next_to_use = ntu; in ice_clean_rq_elem()
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| A D | i40e_xsk.c | 242 u16 ntu = rx_ring->next_to_use; in i40e_alloc_rx_buffers_zc() 521 if (failure || next_to_clean == rx_ring->next_to_use) in i40e_clean_rx_irq_zc() 541 tx_desc = I40E_TX_DESC(xdp_ring, xdp_ring->next_to_use++); in i40e_xmit_pkt() 551 u16 ntu = xdp_ring->next_to_use; in i40e_xmit_pkt_batch() 569 xdp_ring->next_to_use = ntu; in i40e_xmit_pkt_batch() 587 u16 ntu = xdp_ring->next_to_use ? xdp_ring->next_to_use - 1 : xdp_ring->count - 1; in i40e_set_rs_bit() 611 if (xdp_ring->next_to_use + nb_pkts >= xdp_ring->count) { in i40e_xmit_zc() 612 nb_processed = xdp_ring->count - xdp_ring->next_to_use; in i40e_xmit_zc() 614 xdp_ring->next_to_use = 0; in i40e_xmit_zc() 752 u16 ntu = rx_ring->next_to_use; in i40e_xsk_clean_rx_ring() [all …]
|
| A D | i40e_adminq.c | 315 hw->aq.asq.next_to_use = 0; in i40e_init_asq() 374 hw->aq.arq.next_to_use = 0; in i40e_init_arq() 735 return rd32(hw, I40E_PF_ATQH) == hw->aq.asq.next_to_use; in i40e_asq_done() 846 dma_buff = &(hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use]); in i40e_asq_send_command_atomic_exec() 864 (hw->aq.asq.next_to_use)++; in i40e_asq_send_command_atomic_exec() 865 if (hw->aq.asq.next_to_use == hw->aq.asq.count) in i40e_asq_send_command_atomic_exec() 866 hw->aq.asq.next_to_use = 0; in i40e_asq_send_command_atomic_exec() 868 wr32(hw, I40E_PF_ATQT, hw->aq.asq.next_to_use); in i40e_asq_send_command_atomic_exec() 1136 hw->aq.arq.next_to_use = ntu; in i40e_clean_arq_element() 1152 hw->aq.asq.next_to_use = 0; in i40e_resume_aq() [all …]
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
| A D | hclge_comm_cmd.c | 289 int ntu = ring->next_to_use; in hclge_comm_ring_space() 304 (hw->cmq.csq.next_to_use)++; in hclge_comm_cmd_copy_desc() 305 if (hw->cmq.csq.next_to_use >= hw->cmq.csq.desc_num) in hclge_comm_cmd_copy_desc() 306 hw->cmq.csq.next_to_use = 0; in hclge_comm_cmd_copy_desc() 315 int ntu = ring->next_to_use; in hclge_comm_is_valid_csq_clean_head() 334 head, csq->next_to_use, csq->next_to_clean); in hclge_comm_cmd_csq_clean() 351 return head == hw->cmq.csq.next_to_use; in hclge_comm_cmd_csq_done() 505 ntc = hw->cmq.csq.next_to_use; in hclge_comm_cmd_send() 511 hw->cmq.csq.next_to_use); in hclge_comm_cmd_send() 623 cmdq->csq.next_to_use = 0; in hclge_comm_cmd_init() [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() 87 return (r->next_to_clean - r->next_to_use - 1 + r->bd_count) % in enetc_cbd_unused() 104 i = ring->next_to_use; in enetc_send_cmd() 111 ring->next_to_use = i; in enetc_send_cmd()
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
| A D | hclgevf_mbx.c | 162 return tail == hw->hw.cmq.crq.next_to_use; in hclgevf_cmd_crq_empty() 241 desc = &crq->desc[crq->next_to_use]; in hclgevf_mbx_handler() 244 flag = le16_to_cpu(crq->desc[crq->next_to_use].flag); in hclgevf_mbx_handler() 252 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler() 282 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler() 288 crq->next_to_use); in hclgevf_mbx_handler()
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| A D | iavf_adminq.c | 321 hw->aq.asq.next_to_use = 0; in iavf_init_asq() 386 hw->aq.arq.next_to_use = 0; in iavf_init_arq() 603 return rd32(hw, IAVF_VF_ATQH1) == hw->aq.asq.next_to_use; in iavf_asq_done() 650 details = IAVF_ADMINQ_DETAILS(hw->aq.asq, hw->aq.asq.next_to_use); in iavf_asq_send_command() 705 desc_on_ring = IAVF_ADMINQ_DESC(hw->aq.asq, hw->aq.asq.next_to_use); in iavf_asq_send_command() 712 dma_buff = &hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use]; in iavf_asq_send_command() 730 (hw->aq.asq.next_to_use)++; in iavf_asq_send_command() 731 if (hw->aq.asq.next_to_use == hw->aq.asq.count) in iavf_asq_send_command() 732 hw->aq.asq.next_to_use = 0; in iavf_asq_send_command() 734 wr32(hw, IAVF_VF_ATQT1, hw->aq.asq.next_to_use); in iavf_asq_send_command() [all …]
|
| A D | iavf_txrx.c | 78 tx_ring->next_to_use = 0; in iavf_clean_tx_ring() 123 tail = ring->next_to_use; in iavf_get_tx_pending() 676 tx_ring->next_to_use = 0; in iavf_setup_tx_descriptors() 713 rx_ring->next_to_use = 0; in iavf_clean_rx_ring() 781 rx_ring->next_to_use = 0; in iavf_setup_rx_descriptors() 800 rx_ring->next_to_use = val; in iavf_release_rx_desc() 847 u16 ntu = rx_ring->next_to_use; in iavf_alloc_rx_buffers() 1780 int i = tx_ring->next_to_use; in iavf_create_tx_ctx() 1925 u16 i = tx_ring->next_to_use; in iavf_tx_map() 2004 tx_ring->next_to_use = i; in iavf_tx_map() [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/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 2197 u16 next_to_use; in atl1_tx_map() local 2203 next_to_use = atomic_read(&tpd_ring->next_to_use); in atl1_tx_map() 2221 next_to_use = 0; in atl1_tx_map() 2246 next_to_use = 0; in atl1_tx_map() 2258 next_to_use = 0; in atl1_tx_map() 2282 next_to_use = 0; in atl1_tx_map() 2298 u16 next_to_use = (u16) atomic_read(&tpd_ring->next_to_use); in atl1_tx_queue() local 2327 next_to_use = 0; in atl1_tx_queue() [all …]
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| A D | idpf_controlq.c | 140 cq->next_to_use = 0; in idpf_ctlq_add() 287 desc = IDPF_CTLQ_DESC(cq, cq->next_to_use); in idpf_ctlq_send() 320 cq->bi.tx_msg[cq->next_to_use] = msg; in idpf_ctlq_send() 322 (cq->next_to_use)++; in idpf_ctlq_send() 323 if (cq->next_to_use == cq->ring_size) in idpf_ctlq_send() 324 cq->next_to_use = 0; in idpf_ctlq_send() 332 wr32(hw, cq->reg.tail, cq->next_to_use); in idpf_ctlq_send()
|
| A D | idpf_txrx.h | 117 ((((txq)->next_to_clean > (txq)->next_to_use) ? 0 : (txq)->desc_count) + \ 118 (txq)->next_to_clean - (txq)->next_to_use - 1) 552 u16 next_to_use; member 667 u16 next_to_use; member 736 u32 next_to_use; member 791 u32 next_to_use; member 828 u32 next_to_use; member
|
| A D | idpf_controlq.h | 18 ((u16)((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->ring_size) + \ 19 (R)->next_to_clean - (R)->next_to_use - 1))
|
| /linux/drivers/net/ethernet/hisilicon/hns/ |
| A D | hns_enet.c | 125 ring_ptr_move_fw(ring, next_to_use); in fill_v2_desc_hw() 202 ring_ptr_move_fw(ring, next_to_use); in fill_desc() 207 ring_ptr_move_bw(ring, next_to_use); in unfill_desc() 338 int size, next_to_use; in hns_nic_net_xmit_hw() local 356 next_to_use = ring->next_to_use; in hns_nic_net_xmit_hw() 401 while (ring->next_to_use != next_to_use) { in hns_nic_net_xmit_hw() 403 if (ring->next_to_use != next_to_use) in hns_nic_net_xmit_hw() 410 ring->desc_cb[next_to_use].dma, in hns_nic_net_xmit_hw() 708 ring_ptr_move_fw(ring, next_to_use); in hns_nic_alloc_rx_buffers() 729 int ntu = ring->next_to_use; in hns_desc_unused() [all …]
|
| /linux/drivers/net/ethernet/atheros/atl1e/ |
| A D | atl1e_main.c | 751 tx_ring->next_to_use = 0; in atl1e_init_ring_ptrs() 1562 u16 next_to_use = 0; in atl1e_tpd_avail() local 1566 next_to_use = tx_ring->next_to_use; in atl1e_tpd_avail() 1568 return (u16)(next_to_clean > next_to_use) ? in atl1e_tpd_avail() 1569 (next_to_clean - next_to_use - 1) : in atl1e_tpd_avail() 1581 u16 next_to_use = 0; in atl1e_get_tpd() local 1583 next_to_use = tx_ring->next_to_use; in atl1e_get_tpd() 1585 tx_ring->next_to_use = 0; in atl1e_get_tpd() 1588 return &tx_ring->desc[next_to_use]; in atl1e_get_tpd() 1763 ring_end = adapter->tx_ring.next_to_use; in atl1e_tx_map() [all …]
|
| /linux/drivers/net/ethernet/amazon/ena/ |
| A D | ena_xdp.c | 82 u16 next_to_use, req_id; in ena_xdp_xmit_frame() local 85 next_to_use = tx_ring->next_to_use; in ena_xdp_xmit_frame() 86 req_id = tx_ring->free_ids[next_to_use]; in ena_xdp_xmit_frame() 100 next_to_use, in ena_xdp_xmit_frame()
|
| /linux/drivers/net/ethernet/microchip/lan966x/ |
| A D | lan966x_fdma.c | 608 int next_to_use; in lan966x_fdma_xmit_xdpf() local 615 next_to_use = lan966x_fdma_get_next_dcb(tx); in lan966x_fdma_xmit_xdpf() 616 if (next_to_use < 0) { in lan966x_fdma_xmit_xdpf() 623 next_dcb_buf = &tx->dcbs_buf[next_to_use]; in lan966x_fdma_xmit_xdpf() 677 next_to_use, in lan966x_fdma_xmit_xdpf() 705 int next_to_use; in lan966x_fdma_xmit() local 709 next_to_use = lan966x_fdma_get_next_dcb(tx); in lan966x_fdma_xmit() 710 if (next_to_use < 0) { in lan966x_fdma_xmit() 747 next_dcb_buf = &tx->dcbs_buf[next_to_use]; in lan966x_fdma_xmit() 758 next_to_use, in lan966x_fdma_xmit()
|
| /linux/drivers/net/ethernet/atheros/atl1c/ |
| A D | atl1c_main.c | 895 tpd_ring->next_to_use = 0; in atl1c_clean_tx_ring() 918 rfd_ring->next_to_use = 0; in atl1c_clean_rx_ring() 919 rrd_ring->next_to_use = 0; in atl1c_clean_rx_ring() 935 tpd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs() 943 rfd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs() 945 rrd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs() 1982 u16 next_to_use = 0; in atl1c_tpd_avail() local 1986 next_to_use = tpd_ring->next_to_use; in atl1c_tpd_avail() 2003 u16 next_to_use = 0; in atl1c_get_tpd() local 2005 next_to_use = tpd_ring->next_to_use; in atl1c_get_tpd() [all …]
|