Lines Matching refs:tx_queue
533 struct efx_tx_queue *tx_queue; in efx_alloc_channel() local
546 tx_queue = &channel->tx_queue[j]; in efx_alloc_channel()
547 tx_queue->efx = efx; in efx_alloc_channel()
548 tx_queue->queue = -1; in efx_alloc_channel()
549 tx_queue->label = j; in efx_alloc_channel()
550 tx_queue->channel = channel; in efx_alloc_channel()
603 struct efx_tx_queue *tx_queue; in efx_copy_channel() local
620 tx_queue = &channel->tx_queue[j]; in efx_copy_channel()
621 if (tx_queue->channel) in efx_copy_channel()
622 tx_queue->channel = channel; in efx_copy_channel()
623 tx_queue->buffer = NULL; in efx_copy_channel()
624 tx_queue->cb_page = NULL; in efx_copy_channel()
625 memset(&tx_queue->txd, 0, sizeof(tx_queue->txd)); in efx_copy_channel()
641 struct efx_tx_queue *tx_queue; in efx_probe_channel() local
656 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_probe_channel()
657 rc = efx_probe_tx_queue(tx_queue); in efx_probe_channel()
741 struct efx_tx_queue *tx_queue; in efx_remove_channel() local
749 efx_for_each_channel_tx_queue(tx_queue, channel) in efx_remove_channel()
750 efx_remove_tx_queue(tx_queue); in efx_remove_channel()
766 struct efx_tx_queue *tx_queue) in efx_set_xdp_tx_queue() argument
773 tx_queue->channel->channel, tx_queue->label, in efx_set_xdp_tx_queue()
774 xdp_queue_number, tx_queue->queue); in efx_set_xdp_tx_queue()
775 efx->xdp_tx_queues[xdp_queue_number] = tx_queue; in efx_set_xdp_tx_queue()
781 struct efx_tx_queue *tx_queue; in efx_set_xdp_channels() local
796 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_set_xdp_channels()
797 tx_queue->queue = next_queue++; in efx_set_xdp_channels()
799 tx_queue); in efx_set_xdp_channels()
804 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_set_xdp_channels()
805 tx_queue->queue = next_queue++; in efx_set_xdp_channels()
808 channel->channel, tx_queue->label, in efx_set_xdp_channels()
809 tx_queue->queue); in efx_set_xdp_channels()
819 tx_queue = &channel->tx_queue[0]; in efx_set_xdp_channels()
821 tx_queue); in efx_set_xdp_channels()
837 tx_queue = efx->xdp_tx_queues[next_queue++]; in efx_set_xdp_channels()
838 rc = efx_set_xdp_tx_queue(efx, xdp_queue_number, tx_queue); in efx_set_xdp_channels()
1091 struct efx_tx_queue *tx_queue; in efx_start_channels() local
1098 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_start_channels()
1099 efx_init_tx_queue(tx_queue); in efx_start_channels()
1117 struct efx_tx_queue *tx_queue; in efx_stop_channels() local
1159 efx_for_each_channel_tx_queue(tx_queue, channel) in efx_stop_channels()
1160 efx_fini_tx_queue(tx_queue); in efx_stop_channels()
1179 struct efx_tx_queue *tx_queue; in efx_process_channel() local
1191 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_process_channel()
1192 tx_queue->pkts_compl = 0; in efx_process_channel()
1193 tx_queue->bytes_compl = 0; in efx_process_channel()
1206 efx_for_each_channel_tx_queue(tx_queue, channel) { in efx_process_channel()
1207 if (tx_queue->bytes_compl) { in efx_process_channel()
1208 netdev_tx_completed_queue(tx_queue->core_txq, in efx_process_channel()
1209 tx_queue->pkts_compl, in efx_process_channel()
1210 tx_queue->bytes_compl); in efx_process_channel()