Lines Matching refs:bd_count

214 		if (unlikely(i == tx_ring->bd_count)) {  in enetc_map_tx_buffs()
284 if (unlikely(i == tx_ring->bd_count)) { in enetc_map_tx_buffs()
325 i = tx_ring->bd_count; in enetc_map_tx_buffs()
574 i = tx_ring->bd_count; in enetc_map_tx_tso_buffs()
721 return pi >= ci ? pi - ci : tx_ring->bd_count - ci + pi; in enetc_bd_ready_count()
874 if (unlikely(i == tx_ring->bd_count)) { in enetc_clean_tx_ring()
1738 size_t bd_base_size = res->bd_count * res->bd_size; in enetc_dma_alloc_bdr()
1757 size_t bd_base_size = res->bd_count * res->bd_size; in enetc_dma_free_bdr()
1764 struct device *dev, size_t bd_count) in enetc_alloc_tx_resource() argument
1769 res->bd_count = bd_count; in enetc_alloc_tx_resource()
1772 res->tx_swbd = vzalloc(bd_count * sizeof(*res->tx_swbd)); in enetc_alloc_tx_resource()
1780 res->tso_headers = dma_alloc_coherent(dev, bd_count * TSO_HEADER_SIZE, in enetc_alloc_tx_resource()
1801 dma_free_coherent(res->dev, res->bd_count * TSO_HEADER_SIZE, in enetc_free_tx_resource()
1821 tx_ring->bd_count); in enetc_alloc_tx_resources()
1849 struct device *dev, size_t bd_count, in enetc_alloc_rx_resource() argument
1855 res->bd_count = bd_count; in enetc_alloc_rx_resource()
1860 res->rx_swbd = vzalloc(bd_count * sizeof(struct enetc_rx_swbd)); in enetc_alloc_rx_resource()
1893 rx_ring->bd_count, extended); in enetc_alloc_rx_resources()
1974 for (i = 0; i < tx_ring->bd_count; i++) { in enetc_free_tx_ring()
1985 for (i = 0; i < rx_ring->bd_count; i++) { in enetc_free_rx_ring()
2102 WARN_ON(!IS_ALIGNED(tx_ring->bd_count, 64)); /* multiple of 64 */ in enetc_setup_txbdr()
2104 ENETC_RTBLENR_LEN(tx_ring->bd_count)); in enetc_setup_txbdr()
2137 WARN_ON(!IS_ALIGNED(rx_ring->bd_count, 64)); /* multiple of 64 */ in enetc_setup_rxbdr()
2139 ENETC_RTBLENR_LEN(rx_ring->bd_count)); in enetc_setup_rxbdr()
2985 bdr->bd_count = priv->rx_bd_count; in enetc_alloc_msix()
3022 bdr->bd_count = priv->tx_bd_count; in enetc_alloc_msix()