Lines Matching refs:rx_desc
114 struct pch_gbe_rx_desc *rx_desc = &priv->rx_desc[0]; in pch_gbe_rx_descs_init() local
117 memset(rx_desc, 0, sizeof(struct pch_gbe_rx_desc) * PCH_GBE_DESC_NUM); in pch_gbe_rx_descs_init()
119 rx_desc[i].buffer_addr = dm_pci_virt_to_mem(priv->dev, in pch_gbe_rx_descs_init()
122 flush_dcache_range((ulong)rx_desc, (ulong)&rx_desc[PCH_GBE_DESC_NUM]); in pch_gbe_rx_descs_init()
124 writel(dm_pci_virt_to_mem(priv->dev, rx_desc), in pch_gbe_rx_descs_init()
129 writel(dm_pci_virt_to_mem(priv->dev, rx_desc + 1), in pch_gbe_rx_descs_init()
292 struct pch_gbe_rx_desc *rx_desc; in pch_gbe_recv() local
296 rx_desc = &priv->rx_desc[priv->rx_idx]; in pch_gbe_recv()
302 if (virt_to_phys(rx_desc) == hw_desc) in pch_gbe_recv()
306 invalidate_dcache_range((ulong)rx_desc, (ulong)&rx_desc[1]); in pch_gbe_recv()
308 length = rx_desc->rx_words_eob - 3 - ETH_FCS_LEN; in pch_gbe_recv()
309 buffer = dm_pci_mem_to_virt(priv->dev, rx_desc->buffer_addr, length, 0); in pch_gbe_recv()
320 struct pch_gbe_rx_desc *rx_head = &priv->rx_desc[0]; in pch_gbe_free_pkt()