Lines Matching refs:num_tx
206 unsigned int num_tx; member
311 ethoc_write(dev, TX_BD_NUM, dev->num_tx); in ethoc_init_ring()
318 for (i = 0; i < dev->num_tx; i++) { in ethoc_init_ring()
319 if (i == dev->num_tx - 1) in ethoc_init_ring()
335 ethoc_write_bd(dev, dev->num_tx + i, &bd); in ethoc_init_ring()
338 dev->vma[dev->num_tx + i] = vma; in ethoc_init_ring()
428 entry = priv->num_tx + priv->cur_rx; in ethoc_rx()
520 entry = priv->dty_tx & (priv->num_tx-1); in ethoc_tx()
543 if ((priv->cur_tx - priv->dty_tx) <= (priv->num_tx / 2)) in ethoc_tx()
871 entry = priv->cur_tx % priv->num_tx; in ethoc_start_xmit()
891 if (priv->cur_tx == (priv->dty_tx + priv->num_tx)) { in ethoc_start_xmit()
934 ring->tx_pending = priv->num_tx; in ethoc_get_ringparam()
955 priv->num_tx = rounddown_pow_of_two(ring->tx_pending); in ethoc_set_ringparam()
1109 priv->num_tx = rounddown_pow_of_two(num_bd >> 1); in ethoc_probe()
1110 priv->num_rx = num_bd - priv->num_tx; in ethoc_probe()
1113 priv->num_tx, priv->num_rx); in ethoc_probe()