txr 170 drivers/net/ethernet/amazon/ena/ena_netdev.c struct ena_ring *txr, *rxr; txr 176 drivers/net/ethernet/amazon/ena/ena_netdev.c txr = &adapter->tx_ring[i]; txr 180 drivers/net/ethernet/amazon/ena/ena_netdev.c ena_init_io_rings_common(adapter, txr, i); txr 184 drivers/net/ethernet/amazon/ena/ena_netdev.c txr->ring_size = adapter->requested_tx_ring_size; txr 185 drivers/net/ethernet/amazon/ena/ena_netdev.c txr->tx_max_header_size = ena_dev->tx_max_header_size; txr 186 drivers/net/ethernet/amazon/ena/ena_netdev.c txr->tx_mem_queue_type = ena_dev->tx_mem_queue_type; txr 187 drivers/net/ethernet/amazon/ena/ena_netdev.c txr->sgl_size = adapter->max_tx_sgl_size; txr 188 drivers/net/ethernet/amazon/ena/ena_netdev.c txr->smoothed_interval = txr 1107 drivers/net/ethernet/broadcom/bcmsysport.c struct bcm_sysport_tx_ring *txr; txr 1142 drivers/net/ethernet/broadcom/bcmsysport.c txr = &priv->tx_rings[ring]; txr 1144 drivers/net/ethernet/broadcom/bcmsysport.c if (likely(napi_schedule_prep(&txr->napi))) { txr 1146 drivers/net/ethernet/broadcom/bcmsysport.c __napi_schedule(&txr->napi); txr 1158 drivers/net/ethernet/broadcom/bcmsysport.c struct bcm_sysport_tx_ring *txr; txr 1174 drivers/net/ethernet/broadcom/bcmsysport.c txr = &priv->tx_rings[ring]; txr 1176 drivers/net/ethernet/broadcom/bcmsysport.c if (likely(napi_schedule_prep(&txr->napi))) { txr 1178 drivers/net/ethernet/broadcom/bcmsysport.c __napi_schedule_irqoff(&txr->napi); txr 253 drivers/net/ethernet/broadcom/bnx2.c static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr) txr 260 drivers/net/ethernet/broadcom/bnx2.c diff = READ_ONCE(txr->tx_prod) - READ_ONCE(txr->tx_cons); txr 703 drivers/net/ethernet/broadcom/bnx2.c struct bnx2_tx_ring_info *txr = &bnapi->tx_ring; txr 705 drivers/net/ethernet/broadcom/bnx2.c if (txr->tx_desc_ring) { txr 707 drivers/net/ethernet/broadcom/bnx2.c txr->tx_desc_ring, txr 708 drivers/net/ethernet/broadcom/bnx2.c txr->tx_desc_mapping); txr 709 drivers/net/ethernet/broadcom/bnx2.c txr->tx_desc_ring = NULL; txr 711 drivers/net/ethernet/broadcom/bnx2.c kfree(txr->tx_buf_ring); txr 712 drivers/net/ethernet/broadcom/bnx2.c txr->tx_buf_ring = NULL; txr 755 drivers/net/ethernet/broadcom/bnx2.c struct bnx2_tx_ring_info *txr = &bnapi->tx_ring; txr 757 drivers/net/ethernet/broadcom/bnx2.c txr->tx_buf_ring = kzalloc(SW_TXBD_RING_SIZE, GFP_KERNEL); txr 758 drivers/net/ethernet/broadcom/bnx2.c if (!txr->tx_buf_ring) txr 761 drivers/net/ethernet/broadcom/bnx2.c txr->tx_desc_ring = txr 763 drivers/net/ethernet/broadcom/bnx2.c &txr->tx_desc_mapping, GFP_KERNEL); txr 764 drivers/net/ethernet/broadcom/bnx2.c if (!txr->tx_desc_ring) txr 2850 drivers/net/ethernet/broadcom/bnx2.c struct bnx2_tx_ring_info *txr = &bnapi->tx_ring; txr 2860 drivers/net/ethernet/broadcom/bnx2.c sw_cons = txr->tx_cons; txr 2869 drivers/net/ethernet/broadcom/bnx2.c tx_buf = &txr->tx_buf_ring[sw_ring_cons]; txr 2900 drivers/net/ethernet/broadcom/bnx2.c tx_buf = &txr->tx_buf_ring[BNX2_TX_RING_IDX(sw_cons)]; txr 2920 drivers/net/ethernet/broadcom/bnx2.c txr->hw_tx_cons = hw_cons; txr 2921 drivers/net/ethernet/broadcom/bnx2.c txr->tx_cons = sw_cons; txr 2931 drivers/net/ethernet/broadcom/bnx2.c (bnx2_tx_avail(bp, txr) > bp->tx_wake_thresh)) { txr 2934 drivers/net/ethernet/broadcom/bnx2.c (bnx2_tx_avail(bp, txr) > bp->tx_wake_thresh)) txr 3394 drivers/net/ethernet/broadcom/bnx2.c struct bnx2_tx_ring_info *txr = &bnapi->tx_ring; txr 3398 drivers/net/ethernet/broadcom/bnx2.c (bnx2_get_hw_tx_cons(bnapi) != txr->hw_tx_cons)) txr 3488 drivers/net/ethernet/broadcom/bnx2.c struct bnx2_tx_ring_info *txr = &bnapi->tx_ring; txr 3491 drivers/net/ethernet/broadcom/bnx2.c if (bnx2_get_hw_tx_cons(bnapi) != txr->hw_tx_cons) txr 5134 drivers/net/ethernet/broadcom/bnx2.c struct bnx2_tx_ring_info *txr; txr 5140 drivers/net/ethernet/broadcom/bnx2.c txr = &bnapi->tx_ring; txr 5143 drivers/net/ethernet/broadcom/bnx2.c txr->tx_cons = 0; txr 5144 drivers/net/ethernet/broadcom/bnx2.c txr->hw_tx_cons = 0; txr 5154 drivers/net/ethernet/broadcom/bnx2.c bnx2_init_tx_context(struct bnx2 *bp, u32 cid, struct bnx2_tx_ring_info *txr) txr 5176 drivers/net/ethernet/broadcom/bnx2.c val = (u64) txr->tx_desc_mapping >> 32; txr 5179 drivers/net/ethernet/broadcom/bnx2.c val = (u64) txr->tx_desc_mapping & 0xffffffff; txr 5189 drivers/net/ethernet/broadcom/bnx2.c struct bnx2_tx_ring_info *txr; txr 5192 drivers/net/ethernet/broadcom/bnx2.c txr = &bnapi->tx_ring; txr 5201 drivers/net/ethernet/broadcom/bnx2.c txbd = &txr->tx_desc_ring[BNX2_MAX_TX_DESC_CNT]; txr 5203 drivers/net/ethernet/broadcom/bnx2.c txbd->tx_bd_haddr_hi = (u64) txr->tx_desc_mapping >> 32; txr 5204 drivers/net/ethernet/broadcom/bnx2.c txbd->tx_bd_haddr_lo = (u64) txr->tx_desc_mapping & 0xffffffff; txr 5206 drivers/net/ethernet/broadcom/bnx2.c txr->tx_prod = 0; txr 5207 drivers/net/ethernet/broadcom/bnx2.c txr->tx_prod_bseq = 0; txr 5209 drivers/net/ethernet/broadcom/bnx2.c txr->tx_bidx_addr = MB_GET_CID_ADDR(cid) + BNX2_L2CTX_TX_HOST_BIDX; txr 5210 drivers/net/ethernet/broadcom/bnx2.c txr->tx_bseq_addr = MB_GET_CID_ADDR(cid) + BNX2_L2CTX_TX_HOST_BSEQ; txr 5212 drivers/net/ethernet/broadcom/bnx2.c bnx2_init_tx_context(bp, cid, txr); txr 5439 drivers/net/ethernet/broadcom/bnx2.c struct bnx2_tx_ring_info *txr = &bnapi->tx_ring; txr 5442 drivers/net/ethernet/broadcom/bnx2.c if (!txr->tx_buf_ring) txr 5446 drivers/net/ethernet/broadcom/bnx2.c struct bnx2_sw_tx_bd *tx_buf = &txr->tx_buf_ring[j]; txr 5465 drivers/net/ethernet/broadcom/bnx2.c tx_buf = &txr->tx_buf_ring[BNX2_TX_RING_IDX(j)]; txr 5820 drivers/net/ethernet/broadcom/bnx2.c struct bnx2_tx_ring_info *txr; txr 5825 drivers/net/ethernet/broadcom/bnx2.c txr = &tx_napi->tx_ring; txr 5868 drivers/net/ethernet/broadcom/bnx2.c txbd = &txr->tx_desc_ring[BNX2_TX_RING_IDX(txr->tx_prod)]; txr 5876 drivers/net/ethernet/broadcom/bnx2.c txr->tx_prod = BNX2_NEXT_TX_BD(txr->tx_prod); txr 5877 drivers/net/ethernet/broadcom/bnx2.c txr->tx_prod_bseq += pkt_size; txr 5879 drivers/net/ethernet/broadcom/bnx2.c BNX2_WR16(bp, txr->tx_bidx_addr, txr->tx_prod); txr 5880 drivers/net/ethernet/broadcom/bnx2.c BNX2_WR(bp, txr->tx_bseq_addr, txr->tx_prod_bseq); txr 5894 drivers/net/ethernet/broadcom/bnx2.c if (bnx2_get_hw_tx_cons(tx_napi) != txr->tx_prod) txr 6605 drivers/net/ethernet/broadcom/bnx2.c struct bnx2_tx_ring_info *txr; txr 6611 drivers/net/ethernet/broadcom/bnx2.c txr = &bnapi->tx_ring; txr 6614 drivers/net/ethernet/broadcom/bnx2.c if (unlikely(bnx2_tx_avail(bp, txr) < txr 6622 drivers/net/ethernet/broadcom/bnx2.c prod = txr->tx_prod; txr 6675 drivers/net/ethernet/broadcom/bnx2.c tx_buf = &txr->tx_buf_ring[ring_prod]; txr 6679 drivers/net/ethernet/broadcom/bnx2.c txbd = &txr->tx_desc_ring[ring_prod]; txr 6695 drivers/net/ethernet/broadcom/bnx2.c txbd = &txr->tx_desc_ring[ring_prod]; txr 6702 drivers/net/ethernet/broadcom/bnx2.c dma_unmap_addr_set(&txr->tx_buf_ring[ring_prod], mapping, txr 6719 drivers/net/ethernet/broadcom/bnx2.c txr->tx_prod_bseq += skb->len; txr 6721 drivers/net/ethernet/broadcom/bnx2.c BNX2_WR16(bp, txr->tx_bidx_addr, prod); txr 6722 drivers/net/ethernet/broadcom/bnx2.c BNX2_WR(bp, txr->tx_bseq_addr, txr->tx_prod_bseq); txr 6724 drivers/net/ethernet/broadcom/bnx2.c txr->tx_prod = prod; txr 6726 drivers/net/ethernet/broadcom/bnx2.c if (unlikely(bnx2_tx_avail(bp, txr) <= MAX_SKB_FRAGS)) { txr 6735 drivers/net/ethernet/broadcom/bnx2.c if (bnx2_tx_avail(bp, txr) > bp->tx_wake_thresh) txr 6745 drivers/net/ethernet/broadcom/bnx2.c prod = txr->tx_prod; txr 6747 drivers/net/ethernet/broadcom/bnx2.c tx_buf = &txr->tx_buf_ring[ring_prod]; txr 6756 drivers/net/ethernet/broadcom/bnx2.c tx_buf = &txr->tx_buf_ring[ring_prod]; txr 357 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr; txr 367 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr = &bp->tx_ring[bp->tx_ring_map[i]]; txr 368 drivers/net/ethernet/broadcom/bnxt/bnxt.c prod = txr->tx_prod; txr 370 drivers/net/ethernet/broadcom/bnxt/bnxt.c free_size = bnxt_tx_avail(bp, txr); txr 380 drivers/net/ethernet/broadcom/bnxt/bnxt.c txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; txr 384 drivers/net/ethernet/broadcom/bnxt/bnxt.c tx_buf = &txr->tx_buf_ring[prod]; txr 401 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct tx_push_buffer *tx_push_buf = txr->tx_push; txr 404 drivers/net/ethernet/broadcom/bnxt/bnxt.c void __iomem *db = txr->tx_db.doorbell; txr 447 drivers/net/ethernet/broadcom/bnxt/bnxt.c txbd->tx_bd_haddr = txr->data_mapping; txr 449 drivers/net/ethernet/broadcom/bnxt/bnxt.c txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; txr 454 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->tx_prod = prod; txr 499 drivers/net/ethernet/broadcom/bnxt/bnxt.c &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; txr 542 drivers/net/ethernet/broadcom/bnxt/bnxt.c txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; txr 551 drivers/net/ethernet/broadcom/bnxt/bnxt.c tx_buf = &txr->tx_buf_ring[prod]; txr 571 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->tx_prod = prod; txr 574 drivers/net/ethernet/broadcom/bnxt/bnxt.c bnxt_db_write(bp, &txr->tx_db, prod); txr 578 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (unlikely(bnxt_tx_avail(bp, txr) <= MAX_SKB_FRAGS + 1)) { txr 580 drivers/net/ethernet/broadcom/bnxt/bnxt.c bnxt_db_write(bp, &txr->tx_db, prod); txr 590 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (bnxt_tx_avail(bp, txr) > bp->tx_wake_thresh) txr 599 drivers/net/ethernet/broadcom/bnxt/bnxt.c prod = txr->tx_prod; txr 600 drivers/net/ethernet/broadcom/bnxt/bnxt.c tx_buf = &txr->tx_buf_ring[prod]; txr 609 drivers/net/ethernet/broadcom/bnxt/bnxt.c tx_buf = &txr->tx_buf_ring[prod]; txr 621 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr = bnapi->tx_ring; txr 622 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct netdev_queue *txq = netdev_get_tx_queue(bp->dev, txr->txq_index); txr 623 drivers/net/ethernet/broadcom/bnxt/bnxt.c u16 cons = txr->tx_cons; txr 633 drivers/net/ethernet/broadcom/bnxt/bnxt.c tx_buf = &txr->tx_buf_ring[cons]; txr 649 drivers/net/ethernet/broadcom/bnxt/bnxt.c tx_buf = &txr->tx_buf_ring[cons]; txr 665 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->tx_cons = cons; txr 675 drivers/net/ethernet/broadcom/bnxt/bnxt.c (bnxt_tx_avail(bp, txr) > bp->tx_wake_thresh)) { txr 678 drivers/net/ethernet/broadcom/bnxt/bnxt.c bnxt_tx_avail(bp, txr) > bp->tx_wake_thresh && txr 679 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->dev_state != BNXT_DEV_STATE_CLOSING) txr 2224 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr = bnapi->tx_ring; txr 2225 drivers/net/ethernet/broadcom/bnxt/bnxt.c u16 prod = txr->tx_prod; txr 2230 drivers/net/ethernet/broadcom/bnxt/bnxt.c bnxt_db_write_relaxed(bp, &txr->tx_db, prod); txr 2483 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr = &bp->tx_ring[i]; txr 2487 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_sw_tx_bd *tx_buf = &txr->tx_buf_ring[j]; txr 2529 drivers/net/ethernet/broadcom/bnxt/bnxt.c tx_buf = &txr->tx_buf_ring[ring_idx]; txr 2889 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr = &bp->tx_ring[i]; txr 2892 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (txr->tx_push) { txr 2894 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->tx_push, txr->tx_push_mapping); txr 2895 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->tx_push = NULL; txr 2898 drivers/net/ethernet/broadcom/bnxt/bnxt.c ring = &txr->tx_ring_struct; txr 2925 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr = &bp->tx_ring[i]; txr 2929 drivers/net/ethernet/broadcom/bnxt/bnxt.c ring = &txr->tx_ring_struct; txr 2935 drivers/net/ethernet/broadcom/bnxt/bnxt.c ring->grp_idx = txr->bnapi->index; txr 2942 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->tx_push = dma_alloc_coherent(&pdev->dev, txr 2944 drivers/net/ethernet/broadcom/bnxt/bnxt.c &txr->tx_push_mapping, txr 2947 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (!txr->tx_push) txr 2950 drivers/net/ethernet/broadcom/bnxt/bnxt.c mapping = txr->tx_push_mapping + txr 2952 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->data_mapping = cpu_to_le64(mapping); txr 3088 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr; txr 3126 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr = bnapi->tx_ring; txr 3127 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (!txr) txr 3130 drivers/net/ethernet/broadcom/bnxt/bnxt.c ring = &txr->tx_ring_struct; txr 3134 drivers/net/ethernet/broadcom/bnxt/bnxt.c rmem->pg_arr = (void **)txr->tx_desc_ring; txr 3135 drivers/net/ethernet/broadcom/bnxt/bnxt.c rmem->dma_arr = txr->tx_desc_mapping; txr 3137 drivers/net/ethernet/broadcom/bnxt/bnxt.c rmem->vmem = (void **)&txr->tx_buf_ring; txr 3302 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr = &bp->tx_ring[i]; txr 3303 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_ring_struct *ring = &txr->tx_ring_struct; txr 3860 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr; txr 3868 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr = bnapi->tx_ring; txr 3869 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (txr) { txr 3870 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->tx_prod = 0; txr 3871 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->tx_cons = 0; txr 4028 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr = &bp->tx_ring[i]; txr 4031 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->tx_ring_struct.ring_mem.flags = txr 4033 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->bnapi = bp->bnapi[j]; txr 4034 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->bnapi[j]->tx_ring = txr; txr 4037 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->txq_index = i - bp->tx_nr_rings_xdp; txr 4818 drivers/net/ethernet/broadcom/bnxt/bnxt.c static u16 bnxt_cp_ring_for_tx(struct bnxt *bp, struct bnxt_tx_ring_info *txr) txr 4821 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_napi *bnapi = txr->bnapi; txr 4827 drivers/net/ethernet/broadcom/bnxt/bnxt.c return bnxt_cp_ring_from_grp(bp, &txr->tx_ring_struct); txr 5245 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr; txr 5247 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr = container_of(ring, struct bnxt_tx_ring_info, txr 5252 drivers/net/ethernet/broadcom/bnxt/bnxt.c req.cmpl_ring_id = cpu_to_le16(bnxt_cp_ring_for_tx(bp, txr)); txr 5435 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr = &bp->tx_ring[i]; txr 5440 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_napi *bnapi = txr->bnapi; txr 5456 drivers/net/ethernet/broadcom/bnxt/bnxt.c ring = &txr->tx_ring_struct; txr 5461 drivers/net/ethernet/broadcom/bnxt/bnxt.c bnxt_set_db(bp, &txr->tx_db, type, map_idx, ring->fw_ring_id); txr 5558 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr = &bp->tx_ring[i]; txr 5559 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_ring_struct *ring = &txr->tx_ring_struct; txr 5562 drivers/net/ethernet/broadcom/bnxt/bnxt.c u32 cmpl_ring_id = bnxt_cp_ring_for_tx(bp, txr); txr 8338 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr; txr 8342 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr = &bp->tx_ring[i]; txr 8343 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->dev_state = BNXT_DEV_STATE_CLOSING; txr 8354 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr; txr 8357 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr = &bp->tx_ring[i]; txr 8358 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->dev_state = 0; txr 9885 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_tx_ring_info *txr = bnapi->tx_ring; txr 9888 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (!txr) txr 9892 drivers/net/ethernet/broadcom/bnxt/bnxt.c i, txr->tx_ring_struct.fw_ring_id, txr->tx_prod, txr 9893 drivers/net/ethernet/broadcom/bnxt/bnxt.c txr->tx_cons); txr 1849 drivers/net/ethernet/broadcom/bnxt/bnxt.h static inline u32 bnxt_tx_avail(struct bnxt *bp, struct bnxt_tx_ring_info *txr) txr 1855 drivers/net/ethernet/broadcom/bnxt/bnxt.h ((txr->tx_prod - txr->tx_cons) & bp->tx_ring_mask); txr 2814 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c struct bnxt_tx_ring_info *txr = &bp->tx_ring[0]; txr 2844 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c bnxt_xmit_bd(bp, txr, map, pkt_size); txr 2849 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c bnxt_db_write(bp, &txr->tx_db, txr->tx_prod); txr 24 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c struct bnxt_tx_ring_info *txr, txr 32 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c prod = txr->tx_prod; txr 33 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c tx_buf = &txr->tx_buf_ring[prod]; txr 35 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; txr 43 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c txr->tx_prod = prod; txr 47 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c static void __bnxt_xmit_xdp(struct bnxt *bp, struct bnxt_tx_ring_info *txr, txr 52 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c tx_buf = bnxt_xmit_bd(bp, txr, mapping, len); txr 58 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c struct bnxt_tx_ring_info *txr, txr 64 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c tx_buf = bnxt_xmit_bd(bp, txr, mapping, len); txr 73 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c struct bnxt_tx_ring_info *txr = bnapi->tx_ring; txr 77 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c u16 tx_cons = txr->tx_cons; txr 82 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c tx_buf = &txr->tx_buf_ring[tx_cons]; txr 100 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c txr->tx_cons = tx_cons; txr 102 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c tx_buf = &txr->tx_buf_ring[last_tx_cons]; txr 115 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c struct bnxt_tx_ring_info *txr; txr 135 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c txr = rxr->bnapi->tx_ring; txr 147 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c tx_avail = bnxt_tx_avail(bp, txr); txr 173 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c __bnxt_xmit_xdp(bp, txr, mapping + offset, *len, txr 220 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c struct bnxt_tx_ring_info *txr; txr 232 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c txr = &bp->tx_ring[ring]; txr 237 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c if (!txr || !bnxt_tx_avail(bp, txr) || txr 252 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c __bnxt_xmit_xdp_redirect(bp, txr, mapping, xdp->len, xdp); txr 258 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c bnxt_db_write(bp, &txr->tx_db, txr->tx_prod); txr 14 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h struct bnxt_tx_ring_info *txr, txr 767 drivers/net/ethernet/freescale/enetc/enetc.c static int enetc_alloc_txbdr(struct enetc_bdr *txr) txr 771 drivers/net/ethernet/freescale/enetc/enetc.c txr->tx_swbd = vzalloc(txr->bd_count * sizeof(struct enetc_tx_swbd)); txr 772 drivers/net/ethernet/freescale/enetc/enetc.c if (!txr->tx_swbd) txr 775 drivers/net/ethernet/freescale/enetc/enetc.c err = enetc_dma_alloc_bdr(txr, sizeof(union enetc_tx_bd)); txr 777 drivers/net/ethernet/freescale/enetc/enetc.c vfree(txr->tx_swbd); txr 781 drivers/net/ethernet/freescale/enetc/enetc.c txr->next_to_clean = 0; txr 782 drivers/net/ethernet/freescale/enetc/enetc.c txr->next_to_use = 0; txr 787 drivers/net/ethernet/freescale/enetc/enetc.c static void enetc_free_txbdr(struct enetc_bdr *txr) txr 791 drivers/net/ethernet/freescale/enetc/enetc.c for (i = 0; i < txr->bd_count; i++) txr 792 drivers/net/ethernet/freescale/enetc/enetc.c enetc_free_tx_skb(txr, &txr->tx_swbd[i]); txr 794 drivers/net/ethernet/freescale/enetc/enetc.c size = txr->bd_count * sizeof(union enetc_tx_bd); txr 796 drivers/net/ethernet/freescale/enetc/enetc.c dma_free_coherent(txr->dev, size, txr->bd_base, txr->bd_dma_base); txr 797 drivers/net/ethernet/freescale/enetc/enetc.c txr->bd_base = NULL; txr 799 drivers/net/ethernet/freescale/enetc/enetc.c vfree(txr->tx_swbd); txr 800 drivers/net/ethernet/freescale/enetc/enetc.c txr->tx_swbd = NULL; txr 79 drivers/net/ethernet/qualcomm/qca_debug.c if (qca->txr.skb[qca->txr.head] == NULL) txr 81 drivers/net/ethernet/qualcomm/qca_debug.c else if (qca->txr.skb[qca->txr.tail]) txr 89 drivers/net/ethernet/qualcomm/qca_debug.c qca->txr.size); txr 255 drivers/net/ethernet/qualcomm/qca_debug.c ring->tx_pending = qca->txr.count; txr 272 drivers/net/ethernet/qualcomm/qca_debug.c qca->txr.count = max_t(u32, ring->tx_pending, TX_RING_MIN_LEN); txr 273 drivers/net/ethernet/qualcomm/qca_debug.c qca->txr.count = min_t(u16, qca->txr.count, TX_RING_MAX_LEN); txr 287 drivers/net/ethernet/qualcomm/qca_spi.c if (qca->txr.skb[qca->txr.head] == NULL) txr 300 drivers/net/ethernet/qualcomm/qca_spi.c while (qca->txr.skb[qca->txr.head]) { txr 301 drivers/net/ethernet/qualcomm/qca_spi.c pkt_len = qca->txr.skb[qca->txr.head]->len + QCASPI_HW_PKT_LEN; txr 309 drivers/net/ethernet/qualcomm/qca_spi.c if (qcaspi_tx_frame(qca, qca->txr.skb[qca->txr.head]) == -1) { txr 316 drivers/net/ethernet/qualcomm/qca_spi.c n_stats->tx_bytes += qca->txr.skb[qca->txr.head]->len; txr 324 drivers/net/ethernet/qualcomm/qca_spi.c dev_kfree_skb(qca->txr.skb[qca->txr.head]); txr 325 drivers/net/ethernet/qualcomm/qca_spi.c qca->txr.skb[qca->txr.head] = NULL; txr 326 drivers/net/ethernet/qualcomm/qca_spi.c qca->txr.size -= pkt_len; txr 327 drivers/net/ethernet/qualcomm/qca_spi.c new_head = qca->txr.head + 1; txr 328 drivers/net/ethernet/qualcomm/qca_spi.c if (new_head >= qca->txr.count) txr 330 drivers/net/ethernet/qualcomm/qca_spi.c qca->txr.head = new_head; txr 459 drivers/net/ethernet/qualcomm/qca_spi.c qcaspi_tx_ring_has_space(struct tx_ring *txr) txr 461 drivers/net/ethernet/qualcomm/qca_spi.c if (txr->skb[txr->tail]) txr 464 drivers/net/ethernet/qualcomm/qca_spi.c return (txr->size + QCAFRM_MAX_LEN < QCASPI_HW_BUF_LEN) ? 1 : 0; txr 481 drivers/net/ethernet/qualcomm/qca_spi.c if (qca->txr.skb[i]) { txr 482 drivers/net/ethernet/qualcomm/qca_spi.c dev_kfree_skb(qca->txr.skb[i]); txr 483 drivers/net/ethernet/qualcomm/qca_spi.c qca->txr.skb[i] = NULL; txr 487 drivers/net/ethernet/qualcomm/qca_spi.c qca->txr.tail = 0; txr 488 drivers/net/ethernet/qualcomm/qca_spi.c qca->txr.head = 0; txr 489 drivers/net/ethernet/qualcomm/qca_spi.c qca->txr.size = 0; txr 577 drivers/net/ethernet/qualcomm/qca_spi.c (qca->txr.skb[qca->txr.head] == NULL) && txr 585 drivers/net/ethernet/qualcomm/qca_spi.c qca->txr.skb[qca->txr.head]); txr 730 drivers/net/ethernet/qualcomm/qca_spi.c if (qca->txr.skb[qca->txr.tail]) { txr 764 drivers/net/ethernet/qualcomm/qca_spi.c qca->txr.size += skb->len + QCASPI_HW_PKT_LEN; txr 766 drivers/net/ethernet/qualcomm/qca_spi.c new_tail = qca->txr.tail + 1; txr 767 drivers/net/ethernet/qualcomm/qca_spi.c if (new_tail >= qca->txr.count) txr 770 drivers/net/ethernet/qualcomm/qca_spi.c qca->txr.skb[qca->txr.tail] = skb; txr 771 drivers/net/ethernet/qualcomm/qca_spi.c qca->txr.tail = new_tail; txr 773 drivers/net/ethernet/qualcomm/qca_spi.c if (!qcaspi_tx_ring_has_space(&qca->txr)) { txr 871 drivers/net/ethernet/qualcomm/qca_spi.c memset(&qca->txr, 0, sizeof(qca->txr)); txr 872 drivers/net/ethernet/qualcomm/qca_spi.c qca->txr.count = TX_RING_MAX_LEN; txr 85 drivers/net/ethernet/qualcomm/qca_spi.h struct tx_ring txr; txr 92 drivers/net/ethernet/sgi/ioc3-eth.c struct ioc3_etxd *txr; txr 807 drivers/net/ethernet/sgi/ioc3-eth.c desc = &ip->txr[entry]; txr 834 drivers/net/ethernet/sgi/ioc3-eth.c ip->txr[i].cmd = 0; txr 1254 drivers/net/ethernet/sgi/ioc3-eth.c ip->txr = dma_direct_alloc_pages(ip->dma_dev, TX_RING_SIZE, txr 1257 drivers/net/ethernet/sgi/ioc3-eth.c if (!ip->txr) { txr 1318 drivers/net/ethernet/sgi/ioc3-eth.c if (ip->txr) txr 1319 drivers/net/ethernet/sgi/ioc3-eth.c dma_direct_free_pages(ip->dma_dev, TX_RING_SIZE, ip->txr, txr 1340 drivers/net/ethernet/sgi/ioc3-eth.c dma_direct_free_pages(ip->dma_dev, TX_RING_SIZE, ip->txr, txr 1427 drivers/net/ethernet/sgi/ioc3-eth.c desc = &ip->txr[produce];