Lines Matching refs:bd_count

219 			i = tx_ring->bd_count;  in enetc_unwind_tx_frame()
322 if (unlikely(i == tx_ring->bd_count)) { in enetc_map_tx_buffs()
419 if (unlikely(i == tx_ring->bd_count)) { in enetc_map_tx_buffs()
831 i = tx_ring->bd_count; in enetc_lso_hw_offload()
900 i = tx_ring->bd_count; in enetc_map_tx_tso_buffs()
1086 return pi >= ci ? pi - ci : tx_ring->bd_count - ci + pi; in enetc_bd_ready_count()
1239 if (unlikely(i == tx_ring->bd_count)) { in enetc_clean_tx_ring()
2132 size_t bd_base_size = res->bd_count * res->bd_size; in enetc_dma_alloc_bdr()
2151 size_t bd_base_size = res->bd_count * res->bd_size; in enetc_dma_free_bdr()
2158 struct device *dev, size_t bd_count) in enetc_alloc_tx_resource() argument
2163 res->bd_count = bd_count; in enetc_alloc_tx_resource()
2166 res->tx_swbd = vcalloc(bd_count, sizeof(*res->tx_swbd)); in enetc_alloc_tx_resource()
2174 res->tso_headers = dma_alloc_coherent(dev, bd_count * TSO_HEADER_SIZE, in enetc_alloc_tx_resource()
2195 dma_free_coherent(res->dev, res->bd_count * TSO_HEADER_SIZE, in enetc_free_tx_resource()
2215 tx_ring->bd_count); in enetc_alloc_tx_resources()
2243 struct device *dev, size_t bd_count, in enetc_alloc_rx_resource() argument
2249 res->bd_count = bd_count; in enetc_alloc_rx_resource()
2254 res->rx_swbd = vcalloc(bd_count, sizeof(struct enetc_rx_swbd)); in enetc_alloc_rx_resource()
2287 rx_ring->bd_count, extended); in enetc_alloc_rx_resources()
2368 for (i = 0; i < tx_ring->bd_count; i++) { in enetc_free_tx_ring()
2379 for (i = 0; i < rx_ring->bd_count; i++) { in enetc_free_rx_ring()
2524 WARN_ON(!IS_ALIGNED(tx_ring->bd_count, 64)); /* multiple of 64 */ in enetc_setup_txbdr()
2526 ENETC_RTBLENR_LEN(tx_ring->bd_count)); in enetc_setup_txbdr()
2559 WARN_ON(!IS_ALIGNED(rx_ring->bd_count, 64)); /* multiple of 64 */ in enetc_setup_rxbdr()
2561 ENETC_RTBLENR_LEN(rx_ring->bd_count)); in enetc_setup_rxbdr()
3398 bdr->bd_count = priv->rx_bd_count; in enetc_int_vector_init()
3434 bdr->bd_count = priv->tx_bd_count; in enetc_int_vector_init()