Lines Matching refs:txr

428 		struct tx_ring *txr = &que->txr;  in ixgbe_if_tx_queues_alloc()  local
431 txr->me = ixgbe_vf_que_index(sc->iov_mode, sc->pool, in ixgbe_if_tx_queues_alloc()
434 txr->sc = que->sc = sc; in ixgbe_if_tx_queues_alloc()
437 txr->tx_rsq = (qidx_t *)malloc(sizeof(qidx_t) * scctx->isc_ntxd[0], M_IXGBE, M_NOWAIT | M_ZERO); in ixgbe_if_tx_queues_alloc()
438 if (txr->tx_rsq == NULL) { in ixgbe_if_tx_queues_alloc()
443 txr->tx_rsq[j] = QIDX_INVALID; in ixgbe_if_tx_queues_alloc()
445 txr->tail = IXGBE_TDT(txr->me); in ixgbe_if_tx_queues_alloc()
446 txr->tx_base = (union ixgbe_adv_tx_desc *)vaddrs[i]; in ixgbe_if_tx_queues_alloc()
447 txr->tx_paddr = paddrs[i]; in ixgbe_if_tx_queues_alloc()
449 txr->bytes = 0; in ixgbe_if_tx_queues_alloc()
450 txr->total_packets = 0; in ixgbe_if_tx_queues_alloc()
454 txr->atr_sample = atr_sample_rate; in ixgbe_if_tx_queues_alloc()
530 struct tx_ring *txr = &tx_que->txr; in ixgbe_if_queues_free() local
531 if (txr->tx_rsq == NULL) in ixgbe_if_queues_free()
534 free(txr->tx_rsq, M_IXGBE); in ixgbe_if_queues_free()
535 txr->tx_rsq = NULL; in ixgbe_if_queues_free()
789 struct tx_ring *txr = &que->txr; in ixgbe_initialize_transmit_units() local
790 u64 tdba = txr->tx_paddr; in ixgbe_initialize_transmit_units()
792 int j = txr->me; in ixgbe_initialize_transmit_units()
805 txr->tail = IXGBE_TDT(txr->me); in ixgbe_initialize_transmit_units()
807 txr->tx_rs_cidx = txr->tx_rs_pidx; in ixgbe_initialize_transmit_units()
808 txr->tx_cidx_processed = scctx->isc_ntxd[0] - 1; in ixgbe_initialize_transmit_units()
810 txr->tx_rsq[k] = QIDX_INVALID; in ixgbe_initialize_transmit_units()
1647 struct tx_ring *txr = &tx_que->txr; in ixgbe_add_hw_stats() local
1654 CTLTYPE_UINT | CTLFLAG_RD, txr, 0, in ixgbe_add_hw_stats()
1657 CTLTYPE_UINT | CTLFLAG_RD, txr, 0, in ixgbe_add_hw_stats()
1660 CTLFLAG_RD, &txr->tso_tx, "TSO"); in ixgbe_add_hw_stats()
1662 CTLFLAG_RD, &txr->total_packets, in ixgbe_add_hw_stats()
1807 struct tx_ring *txr = ((struct tx_ring *)oidp->oid_arg1); in ixgbe_sysctl_tdh_handler() local
1811 if (!txr) in ixgbe_sysctl_tdh_handler()
1815 if (atomic_load_acq_int(&txr->sc->recovery_mode)) in ixgbe_sysctl_tdh_handler()
1818 val = IXGBE_READ_REG(&txr->sc->hw, IXGBE_TDH(txr->me)); in ixgbe_sysctl_tdh_handler()
1834 struct tx_ring *txr = ((struct tx_ring *)oidp->oid_arg1); in ixgbe_sysctl_tdt_handler() local
1838 if (!txr) in ixgbe_sysctl_tdt_handler()
1841 if (atomic_load_acq_int(&txr->sc->recovery_mode)) in ixgbe_sysctl_tdt_handler()
1844 val = IXGBE_READ_REG(&txr->sc->hw, IXGBE_TDT(txr->me)); in ixgbe_sysctl_tdt_handler()
2158 IFLIB_INTR_TX, tx_que, tx_que->txr.me, buf); in ixgbe_if_msix_intr_assign()
3141 struct tx_ring *txr = &tx_que->txr; in ixgbe_if_init() local
3143 txdctl = IXGBE_READ_REG(hw, IXGBE_TXDCTL(txr->me)); in ixgbe_if_init()
3155 IXGBE_WRITE_REG(hw, IXGBE_TXDCTL(txr->me), txdctl); in ixgbe_if_init()
3337 struct tx_ring *txr = &tx_que->txr; in ixgbe_configure_ivars() local
3340 ixgbe_set_ivar(sc, txr->me, tx_que->msix, 1); in ixgbe_configure_ivars()