Lines Matching refs:tx_ring
808 channel->tx_ring = NULL; in axgbe_alloc_channels()
1687 struct xgbe_ring *tx_ring; in axgbe_if_tx_queues_alloc() local
1701 tx_ring = (struct xgbe_ring*)malloc(ntxqs * in axgbe_if_tx_queues_alloc()
1704 if (tx_ring == NULL) { in axgbe_if_tx_queues_alloc()
1709 channel->tx_ring = tx_ring; in axgbe_if_tx_queues_alloc()
1711 for (j = 0; j < ntxqs; j++, tx_ring++) { in axgbe_if_tx_queues_alloc()
1712 tx_ring->rdata = in axgbe_if_tx_queues_alloc()
1717 tx_ring->rdesc = (struct xgbe_ring_desc *)va[i*ntxqs + j]; in axgbe_if_tx_queues_alloc()
1718 tx_ring->rdesc_paddr = pa[i*ntxqs + j]; in axgbe_if_tx_queues_alloc()
1719 tx_ring->rdesc_count = scctx->isc_ntxd[j]; in axgbe_if_tx_queues_alloc()
1720 spin_lock_init(&tx_ring->lock); in axgbe_if_tx_queues_alloc()
1734 tx_ring = channel->tx_ring; in axgbe_if_tx_queues_alloc()
1735 for (k = 0; k < ntxqs ; k++, tx_ring++) { in axgbe_if_tx_queues_alloc()
1736 if (tx_ring && tx_ring->rdata) in axgbe_if_tx_queues_alloc()
1737 free(tx_ring->rdata, M_AXGBE); in axgbe_if_tx_queues_alloc()
1739 free(channel->tx_ring, M_AXGBE); in axgbe_if_tx_queues_alloc()
1741 channel->tx_ring = NULL; in axgbe_if_tx_queues_alloc()
1829 struct xgbe_ring *tx_ring; in axgbe_if_queues_free() local
1837 tx_ring = channel->tx_ring; in axgbe_if_queues_free()
1838 for (j = 0; j < sctx->isc_ntxqs ; j++, tx_ring++) { in axgbe_if_queues_free()
1839 if (tx_ring && tx_ring->rdata) in axgbe_if_queues_free()
1840 free(tx_ring->rdata, M_AXGBE); in axgbe_if_queues_free()
1842 free(channel->tx_ring, M_AXGBE); in axgbe_if_queues_free()
1843 channel->tx_ring = NULL; in axgbe_if_queues_free()
2061 if (channel->tx_ring && channel->rx_ring) in xgbe_enable_rx_tx_int()
2063 else if (channel->tx_ring) in xgbe_enable_rx_tx_int()
2081 if (channel->tx_ring && channel->rx_ring) in xgbe_disable_rx_tx_int()
2083 else if (channel->tx_ring) in xgbe_disable_rx_tx_int()