Lines Matching refs:txr

377 		struct tx_ring *txr = &tx_que->txr;  in igc_get_regs()  local
389 unsigned int *ptr = (unsigned int *)&txr->tx_base[j]; in igc_get_regs()
393 buf->eop != -1 ? txr->tx_base[buf->eop].upper.fields.status & IGC_TXD_STAT_DD : 0); in igc_get_regs()
799 struct tx_ring *txr = &tx_que->txr; in igc_if_init() local
801 txr->tx_rs_cidx = txr->tx_rs_pidx; in igc_if_init()
808 txr->tx_cidx_processed = scctx->isc_ntxd[0] - 1; in igc_if_init()
857 struct tx_ring *txr, struct rx_ring *rxr) in igc_neweitr() argument
867 if ((txr->tx_bytes == 0) && (rxr->rx_bytes == 0)) in igc_neweitr()
888 if (txr->tx_bytes && txr->tx_packets) { in igc_neweitr()
889 bytes = txr->tx_bytes; in igc_neweitr()
890 bytes_packets = txr->tx_bytes/txr->tx_packets; in igc_neweitr()
891 packets = txr->tx_packets; in igc_neweitr()
991 struct tx_ring *txr = &sc->tx_queues[0].txr; in igc_intr() local
1024 igc_neweitr(sc, que, txr, rxr); in igc_intr()
1027 txr->tx_bytes = 0; in igc_intr()
1028 txr->tx_packets = 0; in igc_intr()
1065 struct tx_ring *txr = &sc->tx_queues[que->msix].txr; in igc_msix_que() local
1070 igc_neweitr(sc, que, txr, rxr); in igc_msix_que()
1073 txr->tx_bytes = 0; in igc_msix_que()
1074 txr->tx_packets = 0; in igc_msix_que()
1960 struct tx_ring *txr = &que->txr; in igc_if_tx_queues_alloc() local
1961 txr->sc = que->sc = sc; in igc_if_tx_queues_alloc()
1962 que->me = txr->me = i; in igc_if_tx_queues_alloc()
1965 …if (!(txr->tx_rsq = (qidx_t *) malloc(sizeof(qidx_t) * scctx->isc_ntxd[0], M_DEVBUF, M_NOWAIT | M_… in igc_if_tx_queues_alloc()
1971 txr->tx_rsq[j] = QIDX_INVALID; in igc_if_tx_queues_alloc()
1973 txr->tx_base = (struct igc_tx_desc *)vaddrs[i*ntxqs]; in igc_if_tx_queues_alloc()
1974 txr->tx_paddr = paddrs[i*ntxqs]; in igc_if_tx_queues_alloc()
2037 struct tx_ring *txr = &tx_que->txr; in igc_if_queues_free() local
2038 if (txr->tx_rsq == NULL) in igc_if_queues_free()
2041 free(txr->tx_rsq, M_DEVBUF); in igc_if_queues_free()
2042 txr->tx_rsq = NULL; in igc_if_queues_free()
2071 struct tx_ring *txr; in igc_initialize_transmit_unit() local
2077 for (int i = 0; i < sc->tx_num_queues; i++, txr++) { in igc_initialize_transmit_unit()
2082 txr = &que->txr; in igc_initialize_transmit_unit()
2083 bus_addr = txr->tx_paddr; in igc_initialize_transmit_unit()
2086 offp = (caddr_t)&txr->csum_flags; in igc_initialize_transmit_unit()
2087 endp = (caddr_t)(txr + 1); in igc_initialize_transmit_unit()
2658 struct tx_ring *txr = &tx_que->txr; in igc_add_hw_stats() local
2670 IGC_TDH(txr->me), igc_sysctl_reg_handler, "IU", in igc_add_hw_stats()
2674 IGC_TDT(txr->me), igc_sysctl_reg_handler, "IU", in igc_add_hw_stats()
2677 CTLFLAG_RD, &txr->tx_irq, in igc_add_hw_stats()
3183 struct tx_ring *txr = &sc->tx_queues->txr; in igc_print_debug_info() local
3196 for (int i = 0; i < sc->tx_num_queues; i++, txr++) { in igc_print_debug_info()