Lines Matching refs:num_tx
200 unsigned int num_tx; member
308 ethoc_write(dev, TX_BD_NUM, dev->num_tx); in ethoc_init_ring()
315 for (i = 0; i < dev->num_tx; i++) { in ethoc_init_ring()
316 if (i == dev->num_tx - 1) in ethoc_init_ring()
332 ethoc_write_bd(dev, dev->num_tx + i, &bd); in ethoc_init_ring()
335 dev->vma[dev->num_tx + i] = vma; in ethoc_init_ring()
425 entry = priv->num_tx + priv->cur_rx; in ethoc_rx()
517 entry = priv->dty_tx & (priv->num_tx-1); in ethoc_tx()
540 if ((priv->cur_tx - priv->dty_tx) <= (priv->num_tx / 2)) in ethoc_tx()
897 entry = priv->cur_tx % priv->num_tx; in ethoc_start_xmit()
917 if (priv->cur_tx == (priv->dty_tx + priv->num_tx)) { in ethoc_start_xmit()
960 ring->tx_pending = priv->num_tx; in ethoc_get_ringparam()
981 priv->num_tx = rounddown_pow_of_two(ring->tx_pending); in ethoc_set_ringparam()
1132 priv->num_tx = rounddown_pow_of_two(num_bd >> 1); in ethoc_probe()
1133 priv->num_rx = num_bd - priv->num_tx; in ethoc_probe()
1136 priv->num_tx, priv->num_rx); in ethoc_probe()