/linux-master/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 in struct:ice_ctl_q_ring
|
H A D | ice_txrx_lib.h | 135 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 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 in struct:ice_rx_ring 387 u16 next_to_use; member in struct:ice_tx_ring
|
H A D | ice_xsk.c | 465 * for case where space from next_to_use up to the end of ring is less 474 u16 ntu = rx_ring->next_to_use; 503 if (rx_ring->next_to_use != ntu) 611 last_rs = xdp_ring->next_to_use ? xdp_ring->next_to_use - 1 : cnt - 1; 673 u32 ntu = xdp_ring->next_to_use; 726 xdp_ring->next_to_use = ntu; 833 u32 ntu = rx_ring->next_to_use; 952 if (failure || ntc == rx_ring->next_to_use) 978 tx_desc = ICE_TX_DESC(xdp_ring, xdp_ring->next_to_use [all...] |
H A D | ice_controlq.c | 377 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 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))
|
H A D | idpf_controlq.c | 140 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 D | igc_dump.c | 142 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 D | enetc_cbdr.c | 24 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/hisilicon/hns3/hns3_common/ |
H A D | hclge_comm_cmd.c | 287 int ntu = ring->next_to_use; 300 desc_to_use = &hw->cmq.csq.desc[hw->cmq.csq.next_to_use]; 302 (hw->cmq.csq.next_to_use)++; 303 if (hw->cmq.csq.next_to_use >= hw->cmq.csq.desc_num) 304 hw->cmq.csq.next_to_use = 0; 313 int ntu = ring->next_to_use; 332 head, csq->next_to_use, csq->next_to_clean); 349 return head == hw->cmq.csq.next_to_use; 503 ntc = hw->cmq.csq.next_to_use; 509 hw->cmq.csq.next_to_use); [all...] |
/linux-master/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_xsk.c | 242 u16 ntu = rx_ring->next_to_use; 272 /* clear the status bits for the next_to_use descriptor */ 521 if (failure || next_to_clean == rx_ring->next_to_use) 541 tx_desc = I40E_TX_DESC(xdp_ring, xdp_ring->next_to_use++); 551 u16 ntu = xdp_ring->next_to_use; 569 xdp_ring->next_to_use = ntu; 587 u16 ntu = xdp_ring->next_to_use ? xdp_ring->next_to_use - 1 : xdp_ring->count - 1; 611 if (xdp_ring->next_to_use + nb_pkts >= xdp_ring->count) { 612 nb_processed = xdp_ring->count - xdp_ring->next_to_use; [all...] |
H A D | i40e_adminq.c | 315 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 D | i40e_adminq.h | 30 u16 next_to_use; member in struct:i40e_adminq_ring
|
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_mbx.c | 162 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 D | ocelot_fdma.h | 89 * @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 D | ocelot_fdma.c | 60 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 D | lan966x_fdma.c | 665 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 D | ixgbe_xsk.c | 155 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; 365 if (failure || rx_ring->next_to_clean == rx_ring->next_to_use) 416 tx_bi = &xdp_ring->tx_buffer_info[xdp_ring->next_to_use]; 421 tx_desc = IXGBE_TX_DESC(xdp_ring, xdp_ring->next_to_use); 433 xdp_ring->next_to_use++; 434 if (xdp_ring->next_to_use == xdp_ring->count) 435 xdp_ring->next_to_use [all...] |
/linux-master/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hclge_mbx.h | 248 (crq->next_to_use = (crq->next_to_use + 1) % crq->desc_num)
|
H A D | hns3_trace.h | 82 __entry->ntu = ring->next_to_use; 114 __entry->ntu = ring->next_to_use;
|
/linux-master/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_adminq.h | 30 u16 next_to_use; member in struct:iavf_adminq_ring
|
H A D | iavf_adminq.c | 321 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 D | ena_xdp.c | 82 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 D | hns_enet.c | 39 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 D | atl1.c | 1112 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...] |