Lines Matching refs:rx_head
202 struct cpmac_desc *rx_head; member
254 struct cpmac_desc *dump = priv->rx_head; in cpmac_dump_all_desc()
259 } while (dump != priv->rx_head); in cpmac_dump_all_desc()
424 if (unlikely(!priv->rx_head)) { in cpmac_poll()
433 desc = priv->rx_head; in cpmac_poll()
463 if (desc != priv->rx_head) { in cpmac_poll()
468 priv->rx_head->prev->hw_next = priv->rx_head->mapping; in cpmac_poll()
480 (priv->rx_head->prev->dataflags & (CPMAC_OWN|CPMAC_EOQ)) in cpmac_poll()
482 (priv->rx_head->dataflags & CPMAC_OWN) != 0) { in cpmac_poll()
486 priv->rx_head->prev->dataflags &= ~CPMAC_EOQ; in cpmac_poll()
487 restart = priv->rx_head; in cpmac_poll()
507 priv->rx_head = desc; in cpmac_poll()
659 cpmac_write(priv->regs, CPMAC_RX_PTR(0), priv->rx_head->mapping); in cpmac_hw_start()
695 if (unlikely(!priv->rx_head)) in cpmac_clear_rx()
697 desc = priv->rx_head; in cpmac_clear_rx()
710 priv->rx_head->prev->hw_next = 0; in cpmac_clear_rx()
987 priv->rx_head = &priv->desc_ring[CPMAC_QUEUES]; in cpmac_open()
988 for (i = 0, desc = priv->rx_head; i < priv->ring_size; i++, desc++) { in cpmac_open()
1001 desc->next = &priv->rx_head[(i + 1) % priv->ring_size]; in cpmac_open()
1006 priv->rx_head->prev->hw_next = (u32)0; in cpmac_open()
1029 if (priv->rx_head[i].skb) { in cpmac_open()
1031 priv->rx_head[i].data_mapping, in cpmac_open()
1034 kfree_skb(priv->rx_head[i].skb); in cpmac_open()
1071 priv->rx_head = &priv->desc_ring[CPMAC_QUEUES]; in cpmac_stop()
1073 if (priv->rx_head[i].skb) { in cpmac_stop()
1075 priv->rx_head[i].data_mapping, in cpmac_stop()
1078 kfree_skb(priv->rx_head[i].skb); in cpmac_stop()