Lines Matching refs:rx

278 	struct ave_desc_info	rx;  member
303 addr = ((id == AVE_DESCID_TX) ? priv->tx.daddr : priv->rx.daddr) in ave_desc_read()
321 addr = ((id == AVE_DESCID_TX) ? priv->tx.daddr : priv->rx.daddr) in ave_desc_write()
586 skb = priv->rx.desc[entry].skbs; in ave_rxdesc_prepare()
610 ret = ave_dma_map(ndev, &priv->rx.desc[entry], in ave_rxdesc_prepare()
619 priv->rx.desc[entry].skbs = skb; in ave_rxdesc_prepare()
752 proc_idx = priv->rx.proc_idx; in ave_rx_receive()
753 done_idx = priv->rx.done_idx; in ave_rx_receive()
754 ndesc = priv->rx.ndesc; in ave_rx_receive()
777 skb = priv->rx.desc[proc_idx].skbs; in ave_rx_receive()
778 priv->rx.desc[proc_idx].skbs = NULL; in ave_rx_receive()
780 ave_dma_unmap(ndev, &priv->rx.desc[proc_idx], DMA_FROM_DEVICE); in ave_rx_receive()
797 priv->rx.proc_idx = proc_idx; in ave_rx_receive()
812 priv->rx.done_idx = done_idx; in ave_rx_receive()
904 ave_rx_receive(ndev, priv->rx.ndesc); in ave_rxfifo_reset()
1285 priv->rx.desc = kcalloc(priv->rx.ndesc, sizeof(*priv->rx.desc), in ave_open()
1287 if (!priv->rx.desc) { in ave_open()
1305 priv->rx.proc_idx = 0; in ave_open()
1306 priv->rx.done_idx = 0; 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()
1383 for (entry = 0; entry < priv->rx.ndesc; entry++) { in ave_stop()
1384 if (!priv->rx.desc[entry].skbs) in ave_stop()
1387 ave_dma_unmap(ndev, &priv->rx.desc[entry], DMA_FROM_DEVICE); in ave_stop()
1388 dev_kfree_skb_any(priv->rx.desc[entry].skbs); in ave_stop()
1389 priv->rx.desc[entry].skbs = NULL; in ave_stop()
1391 priv->rx.proc_idx = 0; in ave_stop()
1392 priv->rx.done_idx = 0; in ave_stop()
1395 kfree(priv->rx.desc); in ave_stop()
1624 priv->rx.daddr = AVE_RXDM_64; in ave_probe()
1629 priv->rx.daddr = AVE_RXDM_32; in ave_probe()
1637 priv->rx.ndesc = AVE_NR_RXDESC; in ave_probe()