Lines Matching refs:tx_desc
4147 int tx_desc = txq->next_desc_to_proc; in mvpp2_txq_next_desc_get() local
4149 txq->next_desc_to_proc = MVPP2_QUEUE_NEXT_DESC(txq, tx_desc); in mvpp2_txq_next_desc_get()
4150 return txq->descs + tx_desc; in mvpp2_txq_next_desc_get()
4410 struct mvpp2_tx_desc *tx_desc = txq->descs + in mvpp2_txq_bufs_free() local
4419 dma_unmap_single(port->dev->dev.parent, tx_desc->buf_phys_addr, in mvpp2_txq_bufs_free()
4420 tx_desc->data_size, DMA_TO_DEVICE); in mvpp2_txq_bufs_free()
5121 struct mvpp2_tx_desc *tx_desc; in mvpp2_tx_frag_process() local
5129 tx_desc = mvpp2_txq_next_desc_get(aggr_txq); in mvpp2_tx_frag_process()
5130 tx_desc->phys_txq = txq->id; in mvpp2_tx_frag_process()
5131 tx_desc->data_size = frag->size; in mvpp2_tx_frag_process()
5134 tx_desc->data_size, in mvpp2_tx_frag_process()
5141 tx_desc->packet_offset = buf_phys_addr & MVPP2_TX_DESC_ALIGN; in mvpp2_tx_frag_process()
5142 tx_desc->buf_phys_addr = buf_phys_addr & (~MVPP2_TX_DESC_ALIGN); in mvpp2_tx_frag_process()
5146 tx_desc->command = MVPP2_TXD_L_DESC; in mvpp2_tx_frag_process()
5150 tx_desc->command = 0; in mvpp2_tx_frag_process()
5162 tx_desc = txq->descs + i; in mvpp2_tx_frag_process()
5163 tx_desc_unmap_put(port->dev->dev.parent, txq, tx_desc); in mvpp2_tx_frag_process()
5175 struct mvpp2_tx_desc *tx_desc; in mvpp2_tx() local
5197 tx_desc = mvpp2_txq_next_desc_get(aggr_txq); in mvpp2_tx()
5198 tx_desc->phys_txq = txq->id; in mvpp2_tx()
5199 tx_desc->data_size = skb_headlen(skb); in mvpp2_tx()
5202 tx_desc->data_size, DMA_TO_DEVICE); in mvpp2_tx()
5208 tx_desc->packet_offset = buf_phys_addr & MVPP2_TX_DESC_ALIGN; in mvpp2_tx()
5209 tx_desc->buf_phys_addr = buf_phys_addr & ~MVPP2_TX_DESC_ALIGN; in mvpp2_tx()
5216 tx_desc->command = tx_cmd; in mvpp2_tx()
5221 tx_desc->command = tx_cmd; in mvpp2_tx()
5226 tx_desc_unmap_put(port->dev->dev.parent, txq, tx_desc); in mvpp2_tx()