Lines Matching refs:aggr_txq
1638 struct mvpp2_tx_queue *aggr_txq, int num) in mvpp2_aggr_desc_num_check() argument
1640 if ((aggr_txq->count + num) > MVPP2_AGGR_TXQ_SIZE) { in mvpp2_aggr_desc_num_check()
1646 aggr_txq->count = val & MVPP2_AGGR_TXQ_PENDING_MASK; in mvpp2_aggr_desc_num_check()
1648 if ((aggr_txq->count + num) > MVPP2_AGGR_TXQ_SIZE) in mvpp2_aggr_desc_num_check()
2020 struct mvpp2_tx_queue *aggr_txq, int cpu, in mvpp2_aggr_txq_init() argument
2026 aggr_txq->descs = dma_zalloc_coherent(&pdev->dev, in mvpp2_aggr_txq_init()
2028 &aggr_txq->descs_dma, GFP_KERNEL); in mvpp2_aggr_txq_init()
2029 if (!aggr_txq->descs) in mvpp2_aggr_txq_init()
2032 aggr_txq->last_desc = MVPP2_AGGR_TXQ_SIZE - 1; in mvpp2_aggr_txq_init()
2035 aggr_txq->next_desc_to_proc = mvpp2_read(priv, in mvpp2_aggr_txq_init()
2042 txq_dma = aggr_txq->descs_dma; in mvpp2_aggr_txq_init()
2044 txq_dma = aggr_txq->descs_dma >> in mvpp2_aggr_txq_init()
2746 struct mvpp2_tx_queue *aggr_txq, in mvpp2_tx_frag_process() argument
2758 tx_desc = mvpp2_txq_next_desc_get(aggr_txq); in mvpp2_tx_frag_process()
2799 struct mvpp2_tx_queue *aggr_txq, in mvpp2_tso_put_hdr() argument
2804 struct mvpp2_tx_desc *tx_desc = mvpp2_txq_next_desc_get(aggr_txq); in mvpp2_tso_put_hdr()
2823 struct mvpp2_tx_queue *aggr_txq, in mvpp2_tso_put_data() argument
2828 struct mvpp2_tx_desc *tx_desc = mvpp2_txq_next_desc_get(aggr_txq); in mvpp2_tso_put_data()
2859 struct mvpp2_tx_queue *aggr_txq, in mvpp2_tx_tso() argument
2868 if (mvpp2_aggr_desc_num_check(port->priv, aggr_txq, in mvpp2_tx_tso()
2885 mvpp2_tso_put_hdr(skb, dev, txq, aggr_txq, txq_pcpu, hdr_sz); in mvpp2_tx_tso()
2892 if (mvpp2_tso_put_data(skb, dev, &tso, txq, aggr_txq, in mvpp2_tx_tso()
2913 struct mvpp2_tx_queue *txq, *aggr_txq; in mvpp2_tx() local
2924 aggr_txq = &port->priv->aggr_txqs[smp_processor_id()]; in mvpp2_tx()
2927 frags = mvpp2_tx_tso(skb, dev, txq, aggr_txq, txq_pcpu); in mvpp2_tx()
2933 if (mvpp2_aggr_desc_num_check(port->priv, aggr_txq, frags) || in mvpp2_tx()
2941 tx_desc = mvpp2_txq_next_desc_get(aggr_txq); in mvpp2_tx()
2969 if (mvpp2_tx_frag_process(port, skb, aggr_txq, txq)) { in mvpp2_tx()
2982 aggr_txq->count += frags; in mvpp2_tx()
5342 struct mvpp2_tx_queue *aggr_txq = &priv->aggr_txqs[i]; in mvpp2_remove() local
5346 aggr_txq->descs, in mvpp2_remove()
5347 aggr_txq->descs_dma); in mvpp2_remove()