Lines Matching refs:rx_head

200 	struct cpmac_desc *rx_head;  member
252 struct cpmac_desc *dump = priv->rx_head; in cpmac_dump_all_desc()
257 } while (dump != priv->rx_head); in cpmac_dump_all_desc()
422 if (unlikely(!priv->rx_head)) { in cpmac_poll()
431 desc = priv->rx_head; in cpmac_poll()
461 if (desc != priv->rx_head) { in cpmac_poll()
466 priv->rx_head->prev->hw_next = priv->rx_head->mapping; in cpmac_poll()
478 (priv->rx_head->prev->dataflags & (CPMAC_OWN|CPMAC_EOQ)) in cpmac_poll()
480 (priv->rx_head->dataflags & CPMAC_OWN) != 0) { in cpmac_poll()
484 priv->rx_head->prev->dataflags &= ~CPMAC_EOQ; in cpmac_poll()
485 restart = priv->rx_head; in cpmac_poll()
505 priv->rx_head = desc; in cpmac_poll()
657 cpmac_write(priv->regs, CPMAC_RX_PTR(0), priv->rx_head->mapping); in cpmac_hw_start()
693 if (unlikely(!priv->rx_head)) in cpmac_clear_rx()
695 desc = priv->rx_head; in cpmac_clear_rx()
708 priv->rx_head->prev->hw_next = 0; in cpmac_clear_rx()
986 priv->rx_head = &priv->desc_ring[CPMAC_QUEUES]; in cpmac_open()
987 for (i = 0, desc = priv->rx_head; i < priv->ring_size; i++, desc++) { in cpmac_open()
1000 desc->next = &priv->rx_head[(i + 1) % priv->ring_size]; in cpmac_open()
1005 priv->rx_head->prev->hw_next = (u32)0; in cpmac_open()
1028 if (priv->rx_head[i].skb) { in cpmac_open()
1030 priv->rx_head[i].data_mapping, in cpmac_open()
1033 kfree_skb(priv->rx_head[i].skb); in cpmac_open()
1070 priv->rx_head = &priv->desc_ring[CPMAC_QUEUES]; in cpmac_stop()
1072 if (priv->rx_head[i].skb) { in cpmac_stop()
1074 priv->rx_head[i].data_mapping, in cpmac_stop()
1077 kfree_skb(priv->rx_head[i].skb); in cpmac_stop()