Lines Matching refs:bd_count
221 if (unlikely(i == tx_ring->bd_count)) { in enetc_map_tx_buffs()
291 if (unlikely(i == tx_ring->bd_count)) { in enetc_map_tx_buffs()
332 i = tx_ring->bd_count; in enetc_map_tx_buffs()
581 i = tx_ring->bd_count; in enetc_map_tx_tso_buffs()
728 return pi >= ci ? pi - ci : tx_ring->bd_count - ci + pi; in enetc_bd_ready_count()
881 if (unlikely(i == tx_ring->bd_count)) { in enetc_clean_tx_ring()
1765 size_t bd_base_size = res->bd_count * res->bd_size; in enetc_dma_alloc_bdr()
1784 size_t bd_base_size = res->bd_count * res->bd_size; in enetc_dma_free_bdr()
1791 struct device *dev, size_t bd_count) in enetc_alloc_tx_resource() argument
1796 res->bd_count = bd_count; in enetc_alloc_tx_resource()
1799 res->tx_swbd = vcalloc(bd_count, sizeof(*res->tx_swbd)); in enetc_alloc_tx_resource()
1807 res->tso_headers = dma_alloc_coherent(dev, bd_count * TSO_HEADER_SIZE, in enetc_alloc_tx_resource()
1828 dma_free_coherent(res->dev, res->bd_count * TSO_HEADER_SIZE, in enetc_free_tx_resource()
1848 tx_ring->bd_count); in enetc_alloc_tx_resources()
1876 struct device *dev, size_t bd_count, in enetc_alloc_rx_resource() argument
1882 res->bd_count = bd_count; in enetc_alloc_rx_resource()
1887 res->rx_swbd = vcalloc(bd_count, sizeof(struct enetc_rx_swbd)); in enetc_alloc_rx_resource()
1920 rx_ring->bd_count, extended); in enetc_alloc_rx_resources()
2001 for (i = 0; i < tx_ring->bd_count; i++) { in enetc_free_tx_ring()
2012 for (i = 0; i < rx_ring->bd_count; i++) { in enetc_free_rx_ring()
2129 WARN_ON(!IS_ALIGNED(tx_ring->bd_count, 64)); /* multiple of 64 */ in enetc_setup_txbdr()
2131 ENETC_RTBLENR_LEN(tx_ring->bd_count)); in enetc_setup_txbdr()
2164 WARN_ON(!IS_ALIGNED(rx_ring->bd_count, 64)); /* multiple of 64 */ in enetc_setup_rxbdr()
2166 ENETC_RTBLENR_LEN(rx_ring->bd_count)); in enetc_setup_rxbdr()
3036 bdr->bd_count = priv->rx_bd_count; in enetc_alloc_msix()
3073 bdr->bd_count = priv->tx_bd_count; in enetc_alloc_msix()