Searched refs:next_to_use (Results 1 - 25 of 92) sorted by relevance

1234

/linux-master/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))
54 u16 next_to_use; member in struct:ice_ctl_q_ring
H A Dice_txrx_lib.h135 writel_relaxed(xdp_ring->next_to_use, xdp_ring->tail);
146 u32 rs_idx = xdp_ring->next_to_use ? xdp_ring->next_to_use - 1 : xdp_ring->count - 1;
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)
348 u16 next_to_use; member in struct:ice_rx_ring
386 u16 next_to_use; member in struct:ice_tx_ring
H A Dice_xsk.c466 * for case where space from next_to_use up to the end of ring is less
475 u16 ntu = rx_ring->next_to_use;
504 if (rx_ring->next_to_use != ntu)
613 last_rs = xdp_ring->next_to_use ? xdp_ring->next_to_use - 1 : cnt - 1;
675 u32 ntu = xdp_ring->next_to_use;
728 xdp_ring->next_to_use = ntu;
835 u32 ntu = rx_ring->next_to_use;
954 if (failure || ntc == rx_ring->next_to_use)
980 tx_desc = ICE_TX_DESC(xdp_ring, xdp_ring->next_to_use
[all...]
H A Dice_controlq.c377 cq->sq.next_to_use = 0;
437 cq->rq.next_to_use = 0;
942 return rd32(hw, cq->sq.head) == cq->sq.next_to_use;
1010 details = ICE_CTL_Q_DETAILS(cq->sq, cq->sq.next_to_use);
1028 desc_on_ring = ICE_CTL_Q_DESC(cq->sq, cq->sq.next_to_use);
1035 dma_buf = &cq->sq.r.sq_bi[cq->sq.next_to_use];
1054 (cq->sq.next_to_use)++;
1055 if (cq->sq.next_to_use == cq->sq.count)
1056 cq->sq.next_to_use = 0;
1057 wr32(hw, cq->sq.tail, cq->sq.next_to_use);
[all...]
/linux-master/drivers/net/ethernet/intel/idpf/
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))
H A Didpf_controlq.c140 cq->next_to_use = 0;
287 desc = IDPF_CTLQ_DESC(cq, cq->next_to_use);
320 cq->bi.tx_msg[cq->next_to_use] = msg;
322 (cq->next_to_use)++;
323 if (cq->next_to_use == cq->ring_size)
324 cq->next_to_use = 0;
332 wr32(hw, cq->reg.tail, cq->next_to_use);
/linux-master/drivers/net/ethernet/intel/igc/
H A Digc_dump.c142 n, tx_ring->next_to_use, tx_ring->next_to_clean,
181 if (i == tx_ring->next_to_use &&
184 else if (i == tx_ring->next_to_use)
215 netdev_info(netdev, "%5d %5X %5X\n", n, rx_ring->next_to_use,
264 if (i == rx_ring->next_to_use)
/linux-master/drivers/net/ethernet/freescale/enetc/
H A Denetc_cbdr.c24 cbdr->next_to_use = 0;
41 enetc_wr_reg(cbdr->cir, cbdr->next_to_use);
87 return (r->next_to_clean - r->next_to_use - 1 + r->bd_count) %
104 i = ring->next_to_use;
111 ring->next_to_use = i;
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_xsk.c242 u16 ntu = rx_ring->next_to_use;
272 /* clear the status bits for the next_to_use descriptor */
522 if (failure || next_to_clean == rx_ring->next_to_use)
542 tx_desc = I40E_TX_DESC(xdp_ring, xdp_ring->next_to_use++);
552 u16 ntu = xdp_ring->next_to_use;
570 xdp_ring->next_to_use = ntu;
588 u16 ntu = xdp_ring->next_to_use ? xdp_ring->next_to_use - 1 : xdp_ring->count - 1;
612 if (xdp_ring->next_to_use + nb_pkts >= xdp_ring->count) {
613 nb_processed = xdp_ring->count - xdp_ring->next_to_use;
[all...]
H A Di40e_adminq.c315 hw->aq.asq.next_to_use = 0;
374 hw->aq.arq.next_to_use = 0;
735 return rd32(hw, I40E_PF_ATQH) == hw->aq.asq.next_to_use;
784 details = I40E_ADMINQ_DETAILS(hw->aq.asq, hw->aq.asq.next_to_use);
839 desc_on_ring = I40E_ADMINQ_DESC(hw->aq.asq, hw->aq.asq.next_to_use);
846 dma_buff = &(hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use]);
864 (hw->aq.asq.next_to_use)++;
865 if (hw->aq.asq.next_to_use == hw->aq.asq.count)
866 hw->aq.asq.next_to_use = 0;
868 wr32(hw, I40E_PF_ATQT, hw->aq.asq.next_to_use);
[all...]
H A Di40e_adminq.h30 u16 next_to_use; member in struct:i40e_adminq_ring
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3_common/
H A Dhclge_comm_cmd.c286 int ntu = ring->next_to_use;
299 desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use];
301 (hw->cmq.csq.next_to_use)++;
302 if (hw->cmq.csq.next_to_use >= hw->cmq.csq.desc_num)
303 hw->cmq.csq.next_to_use = 0;
312 int ntu = ring->next_to_use;
331 head, csq->next_to_use, csq->next_to_clean);
348 return head == hw->cmq.csq.next_to_use;
498 ntc = hw->cmq.csq.next_to_use;
504 hw->cmq.csq.next_to_use);
[all...]
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_mbx.c162 return tail == hw->hw.cmq.crq.next_to_use;
241 desc = &crq->desc[crq->next_to_use];
244 flag = le16_to_cpu(crq->desc[crq->next_to_use].flag);
252 crq->desc[crq->next_to_use].flag = 0;
282 crq->desc[crq->next_to_use].flag = 0;
288 crq->next_to_use);
/linux-master/drivers/net/ethernet/mscc/
H A Docelot_fdma.h89 * @next_to_use: Next available DCB to send SKB
98 u16 next_to_use; member in struct:ocelot_fdma_tx_ring
121 * @next_to_use: Next available DCB to send SKB
130 u16 next_to_use; member in struct:ocelot_fdma_rx_ring
H A Docelot_fdma.c60 if (rx_ring->next_to_use >= rx_ring->next_to_clean)
62 (rx_ring->next_to_use - rx_ring->next_to_clean) - 1;
64 return rx_ring->next_to_clean - rx_ring->next_to_use - 1;
71 if (tx_ring->next_to_use >= tx_ring->next_to_clean)
73 (tx_ring->next_to_use - tx_ring->next_to_clean) - 1;
75 return tx_ring->next_to_clean - tx_ring->next_to_use - 1;
82 return tx_ring->next_to_clean == tx_ring->next_to_use;
157 idx = rx_ring->next_to_use;
180 rx_ring->next_to_use = idx;
228 idx = ocelot_fdma_idx_prev(rx_ring->next_to_use,
[all...]
/linux-master/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_fdma.c665 int next_to_use, int len,
671 next_dcb = &tx->dcbs[next_to_use];
683 static void lan966x_fdma_tx_start(struct lan966x_tx *tx, int next_to_use) argument
691 dcb->nextptr = tx->dma + (next_to_use *
702 tx->last_in_use = next_to_use;
713 int next_to_use; local
720 next_to_use = lan966x_fdma_get_next_dcb(tx);
721 if (next_to_use < 0) {
728 next_dcb_buf = &tx->dcbs_buf[next_to_use];
757 lan966x_fdma_tx_setup_dcb(tx, next_to_use,
664 lan966x_fdma_tx_setup_dcb(struct lan966x_tx *tx, int next_to_use, int len, dma_addr_t dma_addr) argument
809 int next_to_use; local
[all...]
/linux-master/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_xsk.c155 u16 i = rx_ring->next_to_use;
190 /* clear the length for the next_to_use descriptor */
198 if (rx_ring->next_to_use != i) {
199 rx_ring->next_to_use = i;
366 if (failure || rx_ring->next_to_clean == rx_ring->next_to_use)
417 tx_bi = &xdp_ring->tx_buffer_info[xdp_ring->next_to_use];
422 tx_desc = IXGBE_TX_DESC(xdp_ring, xdp_ring->next_to_use);
434 xdp_ring->next_to_use++;
435 if (xdp_ring->next_to_use == xdp_ring->count)
436 xdp_ring->next_to_use
[all...]
/linux-master/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_trace.h82 __entry->ntu = ring->next_to_use;
114 __entry->ntu = ring->next_to_use;
H A Dhclge_mbx.h248 (crq->next_to_use = (crq->next_to_use + 1) % crq->desc_num)
/linux-master/drivers/net/ethernet/intel/iavf/
H A Diavf_adminq.h30 u16 next_to_use; member in struct:iavf_adminq_ring
H A Diavf_adminq.c321 hw->aq.asq.next_to_use = 0;
386 hw->aq.arq.next_to_use = 0;
603 return rd32(hw, IAVF_VF_ATQH1) == hw->aq.asq.next_to_use;
650 details = IAVF_ADMINQ_DETAILS(hw->aq.asq, hw->aq.asq.next_to_use);
705 desc_on_ring = IAVF_ADMINQ_DESC(hw->aq.asq, hw->aq.asq.next_to_use);
712 dma_buff = &hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use];
730 (hw->aq.asq.next_to_use)++;
731 if (hw->aq.asq.next_to_use == hw->aq.asq.count)
732 hw->aq.asq.next_to_use = 0;
734 wr32(hw, IAVF_VF_ATQT1, hw->aq.asq.next_to_use);
[all...]
/linux-master/drivers/net/ethernet/amazon/ena/
H A Dena_xdp.c82 u16 next_to_use, req_id; local
85 next_to_use = tx_ring->next_to_use;
86 req_id = tx_ring->free_ids[next_to_use];
100 next_to_use,
/linux-master/drivers/net/ethernet/hisilicon/hns/
H A Dhns_enet.c39 struct hnae_desc *desc = &ring->desc[ring->next_to_use];
40 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use];
125 ring_ptr_move_fw(ring, next_to_use);
148 struct hnae_desc *desc = &ring->desc[ring->next_to_use];
149 struct hnae_desc_cb *desc_cb = &ring->desc_cb[ring->next_to_use];
202 ring_ptr_move_fw(ring, next_to_use);
207 ring_ptr_move_bw(ring, next_to_use);
338 int size, next_to_use; local
356 next_to_use = ring->next_to_use;
[all...]
/linux-master/drivers/net/ethernet/atheros/atlx/
H A Datl1.c1112 atomic_set(&tpd_ring->next_to_use, 0);
1116 atomic_set(&rfd_ring->next_to_use, 0);
1118 rrd_ring->next_to_use = 0;
1156 atomic_set(&rfd_ring->next_to_use, 0);
1158 rrd_ring->next_to_use = 0;
1198 atomic_set(&tpd_ring->next_to_use, 0);
1497 value = ((atomic_read(&adapter->tpd_ring.next_to_use)
1501 ((atomic_read(&adapter->rfd_ring.next_to_use)
1743 tpd_next_to_use = atomic_read(&adapter->tpd_ring.next_to_use);
1744 rfd_next_to_use = atomic_read(&adapter->rfd_ring.next_to_use);
2092 u16 next_to_use = atomic_read(&tpd_ring->next_to_use); local
2197 u16 next_to_use; local
2298 u16 next_to_use = (u16) atomic_read(&tpd_ring->next_to_use); local
[all...]

Completed in 757 milliseconds

1234