Lines Matching refs:rx_head

190 	struct cpmac_desc *rx_head;  member
241 struct cpmac_desc *dump = priv->rx_head; in cpmac_dump_all_desc()
246 } while (dump != priv->rx_head); in cpmac_dump_all_desc()
409 if (unlikely(!priv->rx_head)) { in cpmac_poll()
418 desc = priv->rx_head; in cpmac_poll()
448 if (desc != priv->rx_head) { in cpmac_poll()
453 priv->rx_head->prev->hw_next = priv->rx_head->mapping; in cpmac_poll()
465 (priv->rx_head->prev->dataflags & (CPMAC_OWN|CPMAC_EOQ)) in cpmac_poll()
467 (priv->rx_head->dataflags & CPMAC_OWN) != 0) { in cpmac_poll()
471 priv->rx_head->prev->dataflags &= ~CPMAC_EOQ; in cpmac_poll()
472 restart = priv->rx_head; in cpmac_poll()
492 priv->rx_head = desc; in cpmac_poll()
645 cpmac_write(priv->regs, CPMAC_RX_PTR(0), priv->rx_head->mapping); in cpmac_hw_start()
681 if (unlikely(!priv->rx_head)) in cpmac_clear_rx()
683 desc = priv->rx_head; in cpmac_clear_rx()
696 priv->rx_head->prev->hw_next = 0; in cpmac_clear_rx()
942 priv->rx_head = &priv->desc_ring[CPMAC_QUEUES]; in cpmac_open()
943 for (i = 0, desc = priv->rx_head; i < priv->ring_size; i++, desc++) { in cpmac_open()
956 desc->next = &priv->rx_head[(i + 1) % priv->ring_size]; in cpmac_open()
961 priv->rx_head->prev->hw_next = (u32)0; in cpmac_open()
983 if (priv->rx_head[i].skb) { in cpmac_open()
985 priv->rx_head[i].data_mapping, in cpmac_open()
988 kfree_skb(priv->rx_head[i].skb); in cpmac_open()
1027 priv->rx_head = &priv->desc_ring[CPMAC_QUEUES]; in cpmac_stop()
1029 if (priv->rx_head[i].skb) { in cpmac_stop()
1031 priv->rx_head[i].data_mapping, in cpmac_stop()
1034 kfree_skb(priv->rx_head[i].skb); in cpmac_stop()