Lines Matching refs:bd_count
224 if (unlikely(i == tx_ring->bd_count)) { in enetc_map_tx_buffs()
294 if (unlikely(i == tx_ring->bd_count)) { in enetc_map_tx_buffs()
335 i = tx_ring->bd_count; in enetc_map_tx_buffs()
584 i = tx_ring->bd_count; in enetc_map_tx_tso_buffs()
731 return pi >= ci ? pi - ci : tx_ring->bd_count - ci + pi; in enetc_bd_ready_count()
884 if (unlikely(i == tx_ring->bd_count)) { in enetc_clean_tx_ring()
1771 size_t bd_base_size = res->bd_count * res->bd_size; in enetc_dma_alloc_bdr()
1790 size_t bd_base_size = res->bd_count * res->bd_size; in enetc_dma_free_bdr()
1797 struct device *dev, size_t bd_count) in enetc_alloc_tx_resource() argument
1802 res->bd_count = bd_count; in enetc_alloc_tx_resource()
1805 res->tx_swbd = vcalloc(bd_count, sizeof(*res->tx_swbd)); in enetc_alloc_tx_resource()
1813 res->tso_headers = dma_alloc_coherent(dev, bd_count * TSO_HEADER_SIZE, in enetc_alloc_tx_resource()
1834 dma_free_coherent(res->dev, res->bd_count * TSO_HEADER_SIZE, in enetc_free_tx_resource()
1854 tx_ring->bd_count); in enetc_alloc_tx_resources()
1882 struct device *dev, size_t bd_count, in enetc_alloc_rx_resource() argument
1888 res->bd_count = bd_count; in enetc_alloc_rx_resource()
1893 res->rx_swbd = vcalloc(bd_count, sizeof(struct enetc_rx_swbd)); in enetc_alloc_rx_resource()
1926 rx_ring->bd_count, extended); in enetc_alloc_rx_resources()
2007 for (i = 0; i < tx_ring->bd_count; i++) { in enetc_free_tx_ring()
2018 for (i = 0; i < rx_ring->bd_count; i++) { in enetc_free_rx_ring()
2135 WARN_ON(!IS_ALIGNED(tx_ring->bd_count, 64)); /* multiple of 64 */ in enetc_setup_txbdr()
2137 ENETC_RTBLENR_LEN(tx_ring->bd_count)); in enetc_setup_txbdr()
2170 WARN_ON(!IS_ALIGNED(rx_ring->bd_count, 64)); /* multiple of 64 */ in enetc_setup_rxbdr()
2172 ENETC_RTBLENR_LEN(rx_ring->bd_count)); in enetc_setup_rxbdr()
3043 bdr->bd_count = priv->rx_bd_count; in enetc_alloc_msix()
3080 bdr->bd_count = priv->tx_bd_count; in enetc_alloc_msix()