Home
last modified time | relevance | path

Searched refs:next_to_use (Results 1 – 25 of 70) sorted by relevance

123

/linux/drivers/net/ethernet/mscc/
H A Docelot_fdma.c60 if (rx_ring->next_to_use >= rx_ring->next_to_clean) in ocelot_fdma_rx_ring_free()
62 (rx_ring->next_to_use - rx_ring->next_to_clean) - 1; in ocelot_fdma_rx_ring_free()
64 return rx_ring->next_to_clean - rx_ring->next_to_use - 1; in ocelot_fdma_rx_ring_free()
71 if (tx_ring->next_to_use >= tx_ring->next_to_clean) in ocelot_fdma_tx_ring_free()
73 (tx_ring->next_to_use - tx_ring->next_to_clean) - 1; in ocelot_fdma_tx_ring_free()
75 return tx_ring->next_to_clean - tx_ring->next_to_use - 1; in ocelot_fdma_tx_ring_free()
82 return tx_ring->next_to_clean == tx_ring->next_to_use; in ocelot_fdma_tx_ring_empty()
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()
[all …]
H A Docelot_fdma.h98 u16 next_to_use; member
130 u16 next_to_use; member
/linux/drivers/net/ethernet/hisilicon/hns3/hns3_common/
H A Dhclge_comm_cmd.c289 int ntu = ring->next_to_use; in hclge_comm_ring_space()
302 desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use]; in hclge_comm_cmd_copy_desc()
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()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_controlq.h18 ((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
H A Dice_txrx.h112 (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)
347 u16 next_to_use; member
387 u16 next_to_use; member
H A Dice_txrx_lib.h92 writel_relaxed(xdp_ring->next_to_use, xdp_ring->tail); in ice_xdp_ring_update_tail()
103 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 Dice_controlq.c364 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()
H A Dice_txrx.c67 i = tx_ring->next_to_use; in ice_prgm_fdir_fltr()
78 tx_ring->next_to_use = (i < tx_ring->count) ? i : 0; in ice_prgm_fdir_fltr()
102 writel(tx_ring->next_to_use, tx_ring->tail); in ice_prgm_fdir_fltr()
177 tx_ring->next_to_use = 0; in ice_clean_tx_ring()
368 tx_ring->next_to_use = 0; in ice_setup_tx_ring()
442 rx_ring->next_to_use = 0; in ice_clean_rx_ring()
509 rx_ring->next_to_use = 0; in ice_setup_rx_ring()
641 tx_buf = &xdp_ring->tx_buf[xdp_ring->next_to_use]; in ice_xdp_xmit()
725 u16 ntu = rx_ring->next_to_use; in ice_alloc_rx_bufs()
768 if (rx_ring->next_to_use != ntu) in ice_alloc_rx_bufs()
[all …]
H A Dice_txrx_lib.c18 u16 prev_ntu = rx_ring->next_to_use & ~0x7; in ice_release_rx_desc()
20 rx_ring->next_to_use = val; in ice_release_rx_desc()
348 u32 ntu = xdp_ring->next_to_use; in __ice_xmit_xdp_ring()
426 xdp_ring->next_to_use = ntu; in __ice_xmit_xdp_ring()
/linux/drivers/net/ethernet/atheros/atlx/
H A Datl1.c1112 atomic_set(&tpd_ring->next_to_use, 0); in atl1_init_ring_ptrs()
1116 atomic_set(&rfd_ring->next_to_use, 0); in atl1_init_ring_ptrs()
1118 rrd_ring->next_to_use = 0; in atl1_init_ring_ptrs()
1156 atomic_set(&rfd_ring->next_to_use, 0); in atl1_clean_rx_ring()
1158 rrd_ring->next_to_use = 0; in atl1_clean_rx_ring()
1198 atomic_set(&tpd_ring->next_to_use, 0); in atl1_clean_tx_ring()
1497 value = ((atomic_read(&adapter->tpd_ring.next_to_use) in atl1_configure()
1501 ((atomic_read(&adapter->rfd_ring.next_to_use) in atl1_configure()
1743 tpd_next_to_use = atomic_read(&adapter->tpd_ring.next_to_use); in atl1_update_mailbox()
1744 rfd_next_to_use = atomic_read(&adapter->rfd_ring.next_to_use); in atl1_update_mailbox()
[all …]
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_cbdr.c24 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/intel/iavf/
H A Diavf_adminq.c321 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 …]
H A Diavf_txrx.c78 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()
703 for (u32 i = rx_ring->next_to_clean; i != rx_ring->next_to_use; ) { in iavf_clean_rx_ring()
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()
881 if (rx_ring->next_to_use != ntu) in iavf_alloc_rx_buffers()
887 if (rx_ring->next_to_use != ntu) in iavf_alloc_rx_buffers()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_mbx.c162 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/igc/
H A Digc_dump.c142 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/idpf/
H A Didpf_controlq.c140 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()
H A Didpf_txrx.h117 ((((txq)->next_to_clean > (txq)->next_to_use) ? 0 : (txq)->desc_count) + \
118 (txq)->next_to_clean - (txq)->next_to_use - 1)
559 u16 next_to_use; member
674 u16 next_to_use; member
743 u32 next_to_use; member
798 u32 next_to_use; member
835 u32 next_to_use; member
H A Didpf_controlq.h18 ((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/atheros/atl1e/
H A Datl1e_main.c751 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()
1570 (tx_ring->count + 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()
1584 if (++tx_ring->next_to_use == tx_ring->count) in atl1e_get_tpd()
1585 tx_ring->next_to_use = 0; in atl1e_get_tpd()
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_fdma.c608 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/amazon/ena/
H A Dena_xdp.c82 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/atheros/atl1c/
H A Datl1c_main.c895 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()
1760 next_next = rfd_next_to_use = rfd_ring->next_to_use; in atl1c_alloc_rx_buffer()
1824 rfd_ring->next_to_use = rfd_next_to_use; in atl1c_alloc_rx_buffer()
1826 rfd_ring->next_to_use & MB_RFDX_PROD_IDX_MASK); in atl1c_alloc_rx_buffer()
1982 u16 next_to_use = 0; in atl1c_tpd_avail() local
[all …]
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_txrx.c31 i = tx_ring->next_to_use; in i40e_fdir()
35 tx_ring->next_to_use = (i < tx_ring->count) ? i : 0; in i40e_fdir()
115 i = tx_ring->next_to_use; in i40e_program_fdir_filter()
120 i = tx_ring->next_to_use; in i40e_program_fdir_filter()
124 tx_ring->next_to_use = ((i + 1) < tx_ring->count) ? i + 1 : 0; in i40e_program_fdir_filter()
149 writel(tx_ring->next_to_use, tx_ring->tail); in i40e_program_fdir_filter()
806 tx_ring->next_to_use = 0; in i40e_clean_tx_ring()
852 tail = ring->next_to_use; in i40e_get_tx_pending()
1447 tx_ring->next_to_use = 0; in i40e_setup_tx_descriptors()
1520 rx_ring->next_to_use = 0; in i40e_clean_rx_ring()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c971 ntu = tx_spare->next_to_use; in hns3_tx_spare_space()
1094 u32 ntu = tx_spare->next_to_use; in hns3_tx_spare_alloc()
1107 tx_spare->next_to_use = ntu + size; in hns3_tx_spare_alloc()
1108 if (tx_spare->next_to_use == tx_spare->len) in hns3_tx_spare_alloc()
1109 tx_spare->next_to_use = 0; in hns3_tx_spare_alloc()
1120 if (len > tx_spare->next_to_use) { in hns3_tx_spare_rollback()
1121 len -= tx_spare->next_to_use; in hns3_tx_spare_rollback()
1122 tx_spare->next_to_use = tx_spare->len - len; in hns3_tx_spare_rollback()
1124 tx_spare->next_to_use -= len; in hns3_tx_spare_rollback()
1685 struct hns3_desc *desc = &ring->desc[ring->next_to_use]; in hns3_fill_desc()
[all …]
/linux/drivers/net/ethernet/intel/e1000/
H A De1000.h153 unsigned int next_to_use; member
174 unsigned int next_to_use; member
191 unsigned int use = READ_ONCE((R)->next_to_use); \

123