Lines Matching refs:ndesc
232 u32 ndesc; /* number of descriptor */ member
682 u32 proc_idx, done_idx, ndesc, cmdsts; in ave_tx_complete() local
689 ndesc = priv->tx.ndesc; in ave_tx_complete()
722 done_idx = (done_idx + 1) % ndesc; in ave_tx_complete()
749 u32 ndesc, cmdsts; in ave_rx_receive() local
753 ndesc = priv->rx.ndesc; in ave_rx_receive()
754 restpkt = ((proc_idx + ndesc - 1) - done_idx) % ndesc; in ave_rx_receive()
769 proc_idx = (proc_idx + 1) % ndesc; in ave_rx_receive()
793 proc_idx = (proc_idx + 1) % ndesc; in ave_rx_receive()
808 done_idx = (done_idx + 1) % ndesc; in ave_rx_receive()
903 ave_rx_receive(ndev, priv->rx.ndesc); in ave_rxfifo_reset()
1277 priv->tx.desc = kcalloc(priv->tx.ndesc, sizeof(*priv->tx.desc), in ave_open()
1284 priv->rx.desc = kcalloc(priv->rx.ndesc, sizeof(*priv->rx.desc), in ave_open()
1295 for (entry = 0; entry < priv->tx.ndesc; entry++) { in ave_open()
1300 (((priv->tx.ndesc * priv->desc_size) << 16) & AVE_TXDC_SIZE), in ave_open()
1306 for (entry = 0; entry < priv->rx.ndesc; entry++) { in ave_open()
1311 (((priv->rx.ndesc * priv->desc_size) << 16) & AVE_RXDC0_SIZE), in ave_open()
1370 for (entry = 0; entry < priv->tx.ndesc; entry++) { in ave_stop()
1382 for (entry = 0; entry < priv->rx.ndesc; entry++) { in ave_stop()
1402 u32 proc_idx, done_idx, ndesc, cmdsts; in ave_start_xmit() local
1408 ndesc = priv->tx.ndesc; in ave_start_xmit()
1409 freepkt = ((done_idx + ndesc - 1) - proc_idx) % ndesc; in ave_start_xmit()
1452 priv->tx.proc_idx = (proc_idx + 1) % ndesc; in ave_start_xmit()
1635 priv->tx.ndesc = AVE_NR_TXDESC; in ave_probe()
1636 priv->rx.ndesc = AVE_NR_RXDESC; in ave_probe()