Lines Matching refs:tx_desc
138 struct pch_gbe_tx_desc *tx_desc = &priv->tx_desc[0]; in pch_gbe_tx_descs_init() local
140 memset(tx_desc, 0, sizeof(struct pch_gbe_tx_desc) * PCH_GBE_DESC_NUM); in pch_gbe_tx_descs_init()
142 flush_dcache_range((ulong)tx_desc, (ulong)&tx_desc[PCH_GBE_DESC_NUM]); in pch_gbe_tx_descs_init()
144 writel(dm_pci_virt_to_mem(priv->dev, tx_desc), in pch_gbe_tx_descs_init()
148 writel(dm_pci_virt_to_mem(priv->dev, tx_desc + 1), in pch_gbe_tx_descs_init()
247 struct pch_gbe_tx_desc *tx_head, *tx_desc; in pch_gbe_send() local
254 tx_head = &priv->tx_desc[0]; in pch_gbe_send()
255 tx_desc = &priv->tx_desc[priv->tx_idx]; in pch_gbe_send()
260 tx_desc->buffer_addr = dm_pci_virt_to_mem(priv->dev, packet); in pch_gbe_send()
261 tx_desc->length = length; in pch_gbe_send()
262 tx_desc->tx_words_eob = length + 3; in pch_gbe_send()
263 tx_desc->tx_frame_ctrl = frame_ctrl; in pch_gbe_send()
264 tx_desc->dma_status = 0; in pch_gbe_send()
265 tx_desc->gbec_status = 0; in pch_gbe_send()
267 flush_dcache_range((ulong)tx_desc, (ulong)&tx_desc[1]); in pch_gbe_send()