Lines Matching refs:tx_desc
137 struct pch_gbe_tx_desc *tx_desc = &priv->tx_desc[0]; in pch_gbe_tx_descs_init() local
139 memset(tx_desc, 0, sizeof(struct pch_gbe_tx_desc) * PCH_GBE_DESC_NUM); in pch_gbe_tx_descs_init()
141 flush_dcache_range((ulong)tx_desc, (ulong)&tx_desc[PCH_GBE_DESC_NUM]); in pch_gbe_tx_descs_init()
143 writel(dm_pci_virt_to_mem(priv->dev, tx_desc), in pch_gbe_tx_descs_init()
147 writel(dm_pci_virt_to_mem(priv->dev, tx_desc + 1), in pch_gbe_tx_descs_init()
246 struct pch_gbe_tx_desc *tx_head, *tx_desc; in pch_gbe_send() local
253 tx_head = &priv->tx_desc[0]; in pch_gbe_send()
254 tx_desc = &priv->tx_desc[priv->tx_idx]; in pch_gbe_send()
259 tx_desc->buffer_addr = dm_pci_virt_to_mem(priv->dev, packet); in pch_gbe_send()
260 tx_desc->length = length; in pch_gbe_send()
261 tx_desc->tx_words_eob = length + 3; in pch_gbe_send()
262 tx_desc->tx_frame_ctrl = frame_ctrl; in pch_gbe_send()
263 tx_desc->dma_status = 0; in pch_gbe_send()
264 tx_desc->gbec_status = 0; in pch_gbe_send()
266 flush_dcache_range((ulong)tx_desc, (ulong)&tx_desc[1]); in pch_gbe_send()