/openbmc/linux/drivers/net/ethernet/mscc/ |
H 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() 710 while (idx != rx_ring->next_to_use) { in ocelot_fdma_free_rx_ring() [all …]
|
H A D | ocelot_fdma.h | 98 u16 next_to_use; member 130 u16 next_to_use; member
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H 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() 370 if (failure || rx_ring->next_to_clean == rx_ring->next_to_use) in ixgbe_clean_rx_irq_zc() 421 tx_bi = &xdp_ring->tx_buffer_info[xdp_ring->next_to_use]; in ixgbe_xmit_zc() 426 tx_desc = IXGBE_TX_DESC(xdp_ring, xdp_ring->next_to_use); in ixgbe_xmit_zc() 438 xdp_ring->next_to_use++; in ixgbe_xmit_zc() 439 if (xdp_ring->next_to_use == xdp_ring->count) in ixgbe_xmit_zc() 440 xdp_ring->next_to_use = 0; in ixgbe_xmit_zc() 464 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in ixgbe_clean_xdp_tx_irq() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H 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)) 54 u16 next_to_use; member
|
H A D | ice_xsk.c | 489 u16 ntu = rx_ring->next_to_use; in __ice_alloc_rx_bufs_zc() 518 if (rx_ring->next_to_use != ntu) in __ice_alloc_rx_bufs_zc() 627 last_rs = xdp_ring->next_to_use ? xdp_ring->next_to_use - 1 : cnt - 1; in ice_clean_xdp_irq_zc() 689 u32 ntu = xdp_ring->next_to_use; in ice_xmit_xdp_tx_zc() 742 xdp_ring->next_to_use = ntu; in ice_xmit_xdp_tx_zc() 849 u32 ntu = rx_ring->next_to_use; in ice_clean_rx_irq_zc() 972 if (failure || ntc == rx_ring->next_to_use) in ice_clean_rx_irq_zc() 1015 u16 ntu = xdp_ring->next_to_use; in ice_xmit_pkt_batch() 1033 xdp_ring->next_to_use = ntu; in ice_xmit_pkt_batch() 1081 xdp_ring->next_to_use = 0; in ice_xmit_zc() [all …]
|
H 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) 324 u16 next_to_use; member 362 u16 next_to_use; member
|
H 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()
|
H A D | ice_controlq.c | 377 cq->sq.next_to_use = 0; in ice_init_sq() 437 cq->rq.next_to_use = 0; in ice_init_rq() 942 return rd32(hw, cq->sq.head) == cq->sq.next_to_use; in ice_sq_done() 1010 details = ICE_CTL_Q_DETAILS(cq->sq, cq->sq.next_to_use); in ice_sq_send_cmd() 1028 desc_on_ring = ICE_CTL_Q_DESC(cq->sq, cq->sq.next_to_use); in ice_sq_send_cmd() 1035 dma_buf = &cq->sq.r.sq_bi[cq->sq.next_to_use]; in ice_sq_send_cmd() 1054 (cq->sq.next_to_use)++; in ice_sq_send_cmd() 1055 if (cq->sq.next_to_use == cq->sq.count) in ice_sq_send_cmd() 1056 cq->sq.next_to_use = 0; in ice_sq_send_cmd() 1057 wr32(hw, cq->sq.tail, cq->sq.next_to_use); in ice_sq_send_cmd() [all …]
|
H A D | ice_txrx_lib.c | 17 u16 prev_ntu = rx_ring->next_to_use & ~0x7; in ice_release_rx_desc() 19 rx_ring->next_to_use = val; in ice_release_rx_desc() 334 u32 ntu = xdp_ring->next_to_use; in __ice_xmit_xdp_ring() 412 xdp_ring->next_to_use = ntu; in __ice_xmit_xdp_ring()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
H A D | hclge_comm_cmd.c | 285 int ntu = ring->next_to_use; in hclge_comm_ring_space() 300 (hw->cmq.csq.next_to_use)++; in hclge_comm_cmd_copy_desc() 301 if (hw->cmq.csq.next_to_use >= hw->cmq.csq.desc_num) in hclge_comm_cmd_copy_desc() 302 hw->cmq.csq.next_to_use = 0; in hclge_comm_cmd_copy_desc() 311 int ntu = ring->next_to_use; in hclge_comm_is_valid_csq_clean_head() 330 head, csq->next_to_use, csq->next_to_clean); in hclge_comm_cmd_csq_clean() 347 return head == hw->cmq.csq.next_to_use; in hclge_comm_cmd_csq_done() 497 ntc = hw->cmq.csq.next_to_use; in hclge_comm_cmd_send() 503 hw->cmq.csq.next_to_use); in hclge_comm_cmd_send() 597 cmdq->csq.next_to_use = 0; in hclge_comm_cmd_init() [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_fdma.c | 665 int next_to_use, int len, in lan966x_fdma_tx_setup_dcb() argument 671 next_dcb = &tx->dcbs[next_to_use]; in lan966x_fdma_tx_setup_dcb() 691 dcb->nextptr = tx->dma + (next_to_use * in lan966x_fdma_tx_start() 702 tx->last_in_use = next_to_use; in lan966x_fdma_tx_start() 713 int next_to_use; in lan966x_fdma_xmit_xdpf() local 721 if (next_to_use < 0) { in lan966x_fdma_xmit_xdpf() 728 next_dcb_buf = &tx->dcbs_buf[next_to_use]; in lan966x_fdma_xmit_xdpf() 792 lan966x_fdma_tx_start(tx, next_to_use); in lan966x_fdma_xmit_xdpf() 809 int next_to_use; in lan966x_fdma_xmit() local 814 if (next_to_use < 0) { in lan966x_fdma_xmit() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_xsk.c | 242 u16 ntu = rx_ring->next_to_use; in i40e_alloc_rx_buffers_zc() 523 if (failure || next_to_clean == rx_ring->next_to_use) in i40e_clean_rx_irq_zc() 543 tx_desc = I40E_TX_DESC(xdp_ring, xdp_ring->next_to_use++); in i40e_xmit_pkt() 553 u16 ntu = xdp_ring->next_to_use; in i40e_xmit_pkt_batch() 571 xdp_ring->next_to_use = ntu; in i40e_xmit_pkt_batch() 589 u16 ntu = xdp_ring->next_to_use ? xdp_ring->next_to_use - 1 : xdp_ring->count - 1; in i40e_set_rs_bit() 613 if (xdp_ring->next_to_use + nb_pkts >= xdp_ring->count) { in i40e_xmit_zc() 614 nb_processed = xdp_ring->count - xdp_ring->next_to_use; in i40e_xmit_zc() 616 xdp_ring->next_to_use = 0; in i40e_xmit_zc() 754 u16 ntu = rx_ring->next_to_use; in i40e_xsk_clean_rx_ring() [all …]
|
H A D | i40e_adminq.c | 349 hw->aq.asq.next_to_use = 0; in i40e_init_asq() 408 hw->aq.arq.next_to_use = 0; in i40e_init_arq() 762 return rd32(hw, hw->aq.asq.head) == hw->aq.asq.next_to_use; in i40e_asq_done() 873 dma_buff = &(hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use]); in i40e_asq_send_command_atomic_exec() 891 (hw->aq.asq.next_to_use)++; in i40e_asq_send_command_atomic_exec() 892 if (hw->aq.asq.next_to_use == hw->aq.asq.count) in i40e_asq_send_command_atomic_exec() 893 hw->aq.asq.next_to_use = 0; in i40e_asq_send_command_atomic_exec() 895 wr32(hw, hw->aq.asq.tail, hw->aq.asq.next_to_use); in i40e_asq_send_command_atomic_exec() 1163 hw->aq.arq.next_to_use = ntu; in i40e_clean_arq_element() 1179 hw->aq.asq.next_to_use = 0; in i40e_resume_aq() [all …]
|
H 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() 811 tx_ring->next_to_use = 0; in i40e_clean_tx_ring() 857 tail = ring->next_to_use; in i40e_get_tx_pending() 1451 tx_ring->next_to_use = 0; in i40e_setup_tx_descriptors() 1524 rx_ring->next_to_use = 0; in i40e_clean_rx_ring() 1576 rx_ring->next_to_use = 0; in i40e_setup_rx_descriptors() 2993 i = tx_ring->next_to_use; in i40e_atr() 3717 tx_ring->next_to_use = i; in i40e_tx_map() [all …]
|
/openbmc/linux/drivers/net/ethernet/freescale/enetc/ |
H 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()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H 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()
|
/openbmc/linux/drivers/net/ethernet/intel/igc/ |
H 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()
|
/openbmc/linux/drivers/net/ethernet/atheros/atlx/ |
H 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 …]
|
/openbmc/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_adminq.c | 342 hw->aq.asq.next_to_use = 0; in iavf_init_asq() 407 hw->aq.arq.next_to_use = 0; in iavf_init_arq() 627 return rd32(hw, hw->aq.asq.head) == hw->aq.asq.next_to_use; in iavf_asq_done() 674 details = IAVF_ADMINQ_DETAILS(hw->aq.asq, hw->aq.asq.next_to_use); in iavf_asq_send_command() 729 desc_on_ring = IAVF_ADMINQ_DESC(hw->aq.asq, hw->aq.asq.next_to_use); in iavf_asq_send_command() 736 dma_buff = &hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use]; in iavf_asq_send_command() 754 (hw->aq.asq.next_to_use)++; in iavf_asq_send_command() 755 if (hw->aq.asq.next_to_use == hw->aq.asq.count) in iavf_asq_send_command() 756 hw->aq.asq.next_to_use = 0; in iavf_asq_send_command() 758 wr32(hw, hw->aq.asq.tail, hw->aq.asq.next_to_use); in iavf_asq_send_command() [all …]
|
H A D | iavf_txrx.c | 77 tx_ring->next_to_use = 0; in iavf_clean_tx_ring() 122 tail = ring->next_to_use; in iavf_get_tx_pending() 675 tx_ring->next_to_use = 0; in iavf_setup_tx_descriptors() 740 rx_ring->next_to_use = 0; in iavf_clean_rx_ring() 796 rx_ring->next_to_use = 0; in iavf_setup_rx_descriptors() 812 rx_ring->next_to_use = val; in iavf_release_rx_desc() 919 u16 ntu = rx_ring->next_to_use; in iavf_alloc_rx_buffers() 2143 int i = tx_ring->next_to_use; in iavf_create_tx_ctx() 2288 u16 i = tx_ring->next_to_use; in iavf_tx_map() 2368 tx_ring->next_to_use = i; in iavf_tx_map() [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/ |
H 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 …]
|
/openbmc/linux/drivers/net/ethernet/atheros/atl1e/ |
H 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 …]
|
/openbmc/linux/drivers/net/ethernet/amazon/ena/ |
H 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()
|
/openbmc/linux/drivers/net/ethernet/intel/e1000/ |
H A D | e1000.h | 153 unsigned int next_to_use; member 174 unsigned int next_to_use; member 191 unsigned int use = READ_ONCE((R)->next_to_use); \
|
/openbmc/linux/drivers/net/ethernet/atheros/atl1c/ |
H A D | atl1c_main.c | 894 tpd_ring->next_to_use = 0; in atl1c_clean_tx_ring() 917 rfd_ring->next_to_use = 0; in atl1c_clean_rx_ring() 918 rrd_ring->next_to_use = 0; in atl1c_clean_rx_ring() 934 tpd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs() 942 rfd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs() 944 rrd_ring[i].next_to_use = 0; in atl1c_init_ring_ptrs() 1981 u16 next_to_use = 0; in atl1c_tpd_avail() local 1985 next_to_use = tpd_ring->next_to_use; in atl1c_tpd_avail() 2002 u16 next_to_use = 0; in atl1c_get_tpd() local 2004 next_to_use = tpd_ring->next_to_use; in atl1c_get_tpd() [all …]
|