Lines Matching refs:ndesc

233 	u32	ndesc;		/* number of descriptor */  member
683 u32 proc_idx, done_idx, ndesc, cmdsts; in ave_tx_complete() local
690 ndesc = priv->tx.ndesc; in ave_tx_complete()
723 done_idx = (done_idx + 1) % ndesc; in ave_tx_complete()
750 u32 ndesc, cmdsts; in ave_rx_receive() local
754 ndesc = priv->rx.ndesc; in ave_rx_receive()
755 restpkt = ((proc_idx + ndesc - 1) - done_idx) % ndesc; in ave_rx_receive()
770 proc_idx = (proc_idx + 1) % ndesc; in ave_rx_receive()
794 proc_idx = (proc_idx + 1) % ndesc; in ave_rx_receive()
809 done_idx = (done_idx + 1) % ndesc; in ave_rx_receive()
904 ave_rx_receive(ndev, priv->rx.ndesc); in ave_rxfifo_reset()
1278 priv->tx.desc = kcalloc(priv->tx.ndesc, sizeof(*priv->tx.desc), in ave_open()
1285 priv->rx.desc = kcalloc(priv->rx.ndesc, sizeof(*priv->rx.desc), in ave_open()
1296 for (entry = 0; entry < priv->tx.ndesc; entry++) { in ave_open()
1301 (((priv->tx.ndesc * priv->desc_size) << 16) & AVE_TXDC_SIZE), in ave_open()
1307 for (entry = 0; entry < priv->rx.ndesc; entry++) { in ave_open()
1312 (((priv->rx.ndesc * priv->desc_size) << 16) & AVE_RXDC0_SIZE), in ave_open()
1371 for (entry = 0; entry < priv->tx.ndesc; entry++) { in ave_stop()
1383 for (entry = 0; entry < priv->rx.ndesc; entry++) { in ave_stop()
1403 u32 proc_idx, done_idx, ndesc, cmdsts; in ave_start_xmit() local
1409 ndesc = priv->tx.ndesc; in ave_start_xmit()
1410 freepkt = ((done_idx + ndesc - 1) - proc_idx) % ndesc; in ave_start_xmit()
1453 priv->tx.proc_idx = (proc_idx + 1) % ndesc; in ave_start_xmit()
1636 priv->tx.ndesc = AVE_NR_TXDESC; in ave_probe()
1637 priv->rx.ndesc = AVE_NR_RXDESC; in ave_probe()