Lines Matching refs:num_tx
204 unsigned int num_tx; member
312 ethoc_write(dev, TX_BD_NUM, dev->num_tx); in ethoc_init_ring()
319 for (i = 0; i < dev->num_tx; i++) { in ethoc_init_ring()
320 if (i == dev->num_tx - 1) in ethoc_init_ring()
336 ethoc_write_bd(dev, dev->num_tx + i, &bd); in ethoc_init_ring()
339 dev->vma[dev->num_tx + i] = vma; in ethoc_init_ring()
429 entry = priv->num_tx + priv->cur_rx; in ethoc_rx()
521 entry = priv->dty_tx & (priv->num_tx-1); in ethoc_tx()
544 if ((priv->cur_tx - priv->dty_tx) <= (priv->num_tx / 2)) in ethoc_tx()
901 entry = priv->cur_tx % priv->num_tx; in ethoc_start_xmit()
921 if (priv->cur_tx == (priv->dty_tx + priv->num_tx)) { in ethoc_start_xmit()
964 ring->tx_pending = priv->num_tx; in ethoc_get_ringparam()
985 priv->num_tx = rounddown_pow_of_two(ring->tx_pending); in ethoc_set_ringparam()
1136 priv->num_tx = rounddown_pow_of_two(num_bd >> 1); in ethoc_probe()
1137 priv->num_rx = num_bd - priv->num_tx; in ethoc_probe()
1140 priv->num_tx, priv->num_rx); in ethoc_probe()