Lines Matching refs:txr
600 struct tx_ring *txr = adapter->tx_rings; in ixgbe_detach() local
616 for (int i = 0; i < adapter->num_queues; i++, que++, txr++) { in ixgbe_detach()
619 taskqueue_drain(que->tq, &txr->txq_task); in ixgbe_detach()
1271 struct tx_ring *txr = que->txr; in ixgbe_handle_que() local
1277 IXGBE_TX_LOCK(txr); in ixgbe_handle_que()
1278 ixgbe_txeof(txr); in ixgbe_handle_que()
1280 if (!drbr_empty(ifp, txr->br)) in ixgbe_handle_que()
1281 ixgbe_mq_start_locked(ifp, txr); in ixgbe_handle_que()
1284 ixgbe_start_locked(txr, ifp); in ixgbe_handle_que()
1286 IXGBE_TX_UNLOCK(txr); in ixgbe_handle_que()
1311 struct tx_ring *txr = adapter->tx_rings; in ixgbe_legacy_irq() local
1326 IXGBE_TX_LOCK(txr); in ixgbe_legacy_irq()
1327 ixgbe_txeof(txr); in ixgbe_legacy_irq()
1330 ixgbe_start_locked(txr, ifp); in ixgbe_legacy_irq()
1332 if (!drbr_empty(ifp, txr->br)) in ixgbe_legacy_irq()
1333 ixgbe_mq_start_locked(ifp, txr); in ixgbe_legacy_irq()
1335 IXGBE_TX_UNLOCK(txr); in ixgbe_legacy_irq()
1373 struct tx_ring *txr = que->txr; in ixgbe_msix_que() local
1387 IXGBE_TX_LOCK(txr); in ixgbe_msix_que()
1388 ixgbe_txeof(txr); in ixgbe_msix_que()
1391 ixgbe_start_locked(txr, ifp); in ixgbe_msix_que()
1393 if (!drbr_empty(ifp, txr->br)) in ixgbe_msix_que()
1394 ixgbe_mq_start_locked(ifp, txr); in ixgbe_msix_que()
1396 IXGBE_TX_UNLOCK(txr); in ixgbe_msix_que()
1415 if ((txr->bytes == 0) && (rxr->bytes == 0)) in ixgbe_msix_que()
1418 if ((txr->bytes) && (txr->packets)) in ixgbe_msix_que()
1419 newitr = txr->bytes/txr->packets; in ixgbe_msix_que()
1443 txr->bytes = 0; in ixgbe_msix_que()
1444 txr->packets = 0; in ixgbe_msix_que()
1907 if (que->txr->busy) in ixgbe_local_timer()
1927 que->txr->busy = IXGBE_QUEUE_HUNG; in ixgbe_local_timer()
2135 struct tx_ring *txr = adapter->tx_rings; in ixgbe_allocate_legacy() local
2157 TASK_INIT(&txr->txq_task, 0, ixgbe_deferred_mq_start, txr); in ixgbe_allocate_legacy()
2206 struct tx_ring *txr = adapter->tx_rings; in ixgbe_allocate_msix() local
2210 for (int i = 0; i < adapter->num_queues; i++, vector++, que++, txr++) { in ixgbe_allocate_msix()
2247 TASK_INIT(&txr->txq_task, 0, ixgbe_deferred_mq_start, txr); in ixgbe_allocate_msix()
2663 struct tx_ring *txr = adapter->tx_rings; in ixgbe_initialize_transmit_units() local
2668 for (int i = 0; i < adapter->num_queues; i++, txr++) { in ixgbe_initialize_transmit_units()
2669 u64 tdba = txr->txdma.dma_paddr; in ixgbe_initialize_transmit_units()
2683 txr->tail = IXGBE_TDT(txr->me); in ixgbe_initialize_transmit_units()
2686 txr->process_limit = ixgbe_tx_process_limit; in ixgbe_initialize_transmit_units()
3718 struct tx_ring *txr; in ixgbe_get_counter() local
3742 txr = adapter->tx_rings; in ixgbe_get_counter()
3743 for (int i = 0; i < adapter->num_queues; i++, txr++) in ixgbe_get_counter()
3744 rv += txr->br->br_drops; in ixgbe_get_counter()
3762 struct tx_ring *txr = ((struct tx_ring *)oidp->oid_arg1); in ixgbe_sysctl_tdh_handler() local
3763 if (!txr) return 0; in ixgbe_sysctl_tdh_handler()
3765 unsigned val = IXGBE_READ_REG(&txr->adapter->hw, IXGBE_TDH(txr->me)); in ixgbe_sysctl_tdh_handler()
3780 struct tx_ring *txr = ((struct tx_ring *)oidp->oid_arg1); in ixgbe_sysctl_tdt_handler() local
3781 if (!txr) return 0; in ixgbe_sysctl_tdt_handler()
3783 unsigned val = IXGBE_READ_REG(&txr->adapter->hw, IXGBE_TDT(txr->me)); in ixgbe_sysctl_tdt_handler()
3964 struct tx_ring *txr = adapter->tx_rings; in ixgbe_add_hw_stats() local
3992 for (int i = 0; i < adapter->num_queues; i++, txr++) { in ixgbe_add_hw_stats()
4007 CTLTYPE_UINT | CTLFLAG_RD, txr, sizeof(txr), in ixgbe_add_hw_stats()
4011 CTLTYPE_UINT | CTLFLAG_RD, txr, sizeof(txr), in ixgbe_add_hw_stats()
4015 CTLFLAG_RD, &txr->tso_tx, in ixgbe_add_hw_stats()
4018 CTLFLAG_RD, &txr->no_tx_dma_setup, in ixgbe_add_hw_stats()
4021 CTLFLAG_RD, &txr->no_desc_avail, in ixgbe_add_hw_stats()
4024 CTLFLAG_RD, &txr->total_packets, in ixgbe_add_hw_stats()
4027 CTLFLAG_RD, &txr->br->br_drops, in ixgbe_add_hw_stats()