Lines Matching refs:tx_queue

163 int efx_mcdi_tx_init(struct efx_tx_queue *tx_queue)  in efx_mcdi_tx_init()  argument
167 bool csum_offload = tx_queue->type & EFX_TXQ_TYPE_OUTER_CSUM; in efx_mcdi_tx_init()
168 bool inner_csum = tx_queue->type & EFX_TXQ_TYPE_INNER_CSUM; in efx_mcdi_tx_init()
169 size_t entries = tx_queue->txd.len / EFX_BUF_SIZE; in efx_mcdi_tx_init()
170 struct efx_channel *channel = tx_queue->channel; in efx_mcdi_tx_init()
171 struct efx_nic *efx = tx_queue->efx; in efx_mcdi_tx_init()
178 MCDI_SET_DWORD(inbuf, INIT_TXQ_IN_SIZE, tx_queue->ptr_mask + 1); in efx_mcdi_tx_init()
180 MCDI_SET_DWORD(inbuf, INIT_TXQ_IN_LABEL, tx_queue->label); in efx_mcdi_tx_init()
181 MCDI_SET_DWORD(inbuf, INIT_TXQ_IN_INSTANCE, tx_queue->queue); in efx_mcdi_tx_init()
185 dma_addr = tx_queue->txd.dma_addr; in efx_mcdi_tx_init()
188 tx_queue->queue, entries, (u64)dma_addr); in efx_mcdi_tx_init()
198 bool tso_v2 = tx_queue->tso_version == 2; in efx_mcdi_tx_init()
214 INIT_TXQ_EXT_IN_FLAG_TIMESTAMP, tx_queue->timestamping, in efx_mcdi_tx_init()
222 tx_queue->tso_version = 0; in efx_mcdi_tx_init()
241 void efx_mcdi_tx_remove(struct efx_tx_queue *tx_queue) in efx_mcdi_tx_remove() argument
243 efx_nic_free_buffer(tx_queue->efx, &tx_queue->txd); in efx_mcdi_tx_remove()
246 void efx_mcdi_tx_fini(struct efx_tx_queue *tx_queue) in efx_mcdi_tx_fini() argument
250 struct efx_nic *efx = tx_queue->efx; in efx_mcdi_tx_fini()
255 tx_queue->queue); in efx_mcdi_tx_fini()
357 struct efx_tx_queue *tx_queue; in efx_fini_dmaq() local
375 efx_for_each_channel_tx_queue(tx_queue, channel) in efx_fini_dmaq()
376 efx_mcdi_tx_fini(tx_queue); in efx_fini_dmaq()