Lines Matching refs:tx_queue
532 struct efx_tx_queue *tx_queue; in efx_alloc_channel() local
545 tx_queue = &channel->tx_queue[j]; in efx_alloc_channel()
546 tx_queue->efx = efx; in efx_alloc_channel()
547 tx_queue->queue = -1; in efx_alloc_channel()
548 tx_queue->label = j; in efx_alloc_channel()
549 tx_queue->channel = channel; in efx_alloc_channel()
602 struct efx_tx_queue *tx_queue; in efx_copy_channel() local
619 tx_queue = &channel->tx_queue[j]; in efx_copy_channel()
620 if (tx_queue->channel) in efx_copy_channel()
621 tx_queue->channel = channel; in efx_copy_channel()
622 tx_queue->buffer = NULL; in efx_copy_channel()
623 tx_queue->cb_page = NULL; in efx_copy_channel()
624 memset(&tx_queue->txd, 0, sizeof(tx_queue->txd)); in efx_copy_channel()
640 struct efx_tx_queue *tx_queue; in efx_probe_channel() local
655 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_probe_channel()
656 rc = efx_probe_tx_queue(tx_queue); in efx_probe_channel()
742 struct efx_tx_queue *tx_queue; in efx_remove_channel() local
750 efx_for_each_channel_tx_queue(tx_queue, channel) in efx_remove_channel()
751 efx_remove_tx_queue(tx_queue); in efx_remove_channel()
782 struct efx_tx_queue *tx_queue; in efx_realloc_channels() local
793 efx_for_each_channel_tx_queue(tx_queue, channel) in efx_realloc_channels()
795 tx_queue->txd.index + in efx_realloc_channels()
796 tx_queue->txd.entries); in efx_realloc_channels()
877 struct efx_tx_queue *tx_queue) in efx_set_xdp_tx_queue() argument
883 tx_queue->channel->channel, tx_queue->label, in efx_set_xdp_tx_queue()
884 xdp_queue_number, tx_queue->queue); in efx_set_xdp_tx_queue()
885 efx->xdp_tx_queues[xdp_queue_number] = tx_queue; in efx_set_xdp_tx_queue()
891 struct efx_tx_queue *tx_queue; in efx_set_channels() local
925 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_set_channels()
926 tx_queue->queue = next_queue++; in efx_set_channels()
927 rc = efx_set_xdp_tx_queue(efx, xdp_queue_number, tx_queue); in efx_set_channels()
932 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_set_channels()
933 tx_queue->queue = next_queue++; in efx_set_channels()
935 channel->channel, tx_queue->label, in efx_set_channels()
936 tx_queue->queue); in efx_set_channels()
944 tx_queue = &channel->tx_queue[0]; in efx_set_channels()
945 rc = efx_set_xdp_tx_queue(efx, xdp_queue_number, tx_queue); in efx_set_channels()
962 tx_queue = efx->xdp_tx_queues[next_queue++]; in efx_set_channels()
963 rc = efx_set_xdp_tx_queue(efx, xdp_queue_number, tx_queue); in efx_set_channels()
1106 struct efx_tx_queue *tx_queue; in efx_start_channels() local
1111 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_start_channels()
1112 efx_init_tx_queue(tx_queue); in efx_start_channels()
1130 struct efx_tx_queue *tx_queue; in efx_stop_channels() local
1167 efx_for_each_channel_tx_queue(tx_queue, channel) in efx_stop_channels()
1168 efx_fini_tx_queue(tx_queue); in efx_stop_channels()
1187 struct efx_tx_queue *tx_queue; in efx_process_channel() local
1199 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_process_channel()
1200 tx_queue->pkts_compl = 0; in efx_process_channel()
1201 tx_queue->bytes_compl = 0; in efx_process_channel()
1214 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_process_channel()
1215 if (tx_queue->bytes_compl) { in efx_process_channel()
1216 netdev_tx_completed_queue(tx_queue->core_txq, in efx_process_channel()
1217 tx_queue->pkts_compl, in efx_process_channel()
1218 tx_queue->bytes_compl); in efx_process_channel()