Lines Matching refs:bd_count
219 i = tx_ring->bd_count;
322 if (unlikely(i == tx_ring->bd_count)) {
419 if (unlikely(i == tx_ring->bd_count)) {
831 i = tx_ring->bd_count;
900 i = tx_ring->bd_count;
1086 return pi >= ci ? pi - ci : tx_ring->bd_count - ci + pi;
1239 if (unlikely(i == tx_ring->bd_count)) {
2132 size_t bd_base_size = res->bd_count * res->bd_size;
2151 size_t bd_base_size = res->bd_count * res->bd_size;
2158 struct device *dev, size_t bd_count)
2163 res->bd_count = bd_count;
2166 res->tx_swbd = vcalloc(bd_count, sizeof(*res->tx_swbd));
2174 res->tso_headers = dma_alloc_coherent(dev, bd_count * TSO_HEADER_SIZE,
2195 dma_free_coherent(res->dev, res->bd_count * TSO_HEADER_SIZE,
2215 tx_ring->bd_count);
2243 struct device *dev, size_t bd_count,
2249 res->bd_count = bd_count;
2254 res->rx_swbd = vcalloc(bd_count, sizeof(struct enetc_rx_swbd));
2287 rx_ring->bd_count, extended);
2368 for (i = 0; i < tx_ring->bd_count; i++) {
2379 for (i = 0; i < rx_ring->bd_count; i++) {
2524 WARN_ON(!IS_ALIGNED(tx_ring->bd_count, 64)); /* multiple of 64 */
2526 ENETC_RTBLENR_LEN(tx_ring->bd_count));
2559 WARN_ON(!IS_ALIGNED(rx_ring->bd_count, 64)); /* multiple of 64 */
2561 ENETC_RTBLENR_LEN(rx_ring->bd_count));
3398 bdr->bd_count = priv->rx_bd_count;
3434 bdr->bd_count = priv->tx_bd_count;