Home
last modified time | relevance | path

Searched refs:tx_desc (Results 1 – 17 of 17) sorted by relevance

/external/u-boot/drivers/net/pfe_eth/
Dpfe_driver.c126 struct tx_desc_s *tx_desc = g_tx_desc; in pfe_send() local
132 data, length, tx_desc->tx_base, tx_desc->tx_to_send); in pfe_send()
134 bd = tx_desc->tx_base + tx_desc->tx_to_send; in pfe_send()
181 return tx_desc->tx_to_send; in pfe_send()
195 struct tx_desc_s *tx_desc = g_tx_desc; in pfe_tx_done() local
198 debug("%s:tx_base: %p, tx_to_send: %d\n", __func__, tx_desc->tx_base, in pfe_tx_done()
199 tx_desc->tx_to_send); in pfe_tx_done()
201 bd = tx_desc->tx_base + tx_desc->tx_to_send; in pfe_tx_done()
215 tx_desc->tx_to_send = (tx_desc->tx_to_send + 1) in pfe_tx_done()
216 & (tx_desc->tx_ring_size - 1); in pfe_tx_done()
[all …]
/external/u-boot/drivers/net/
Dpch_gbe.c137 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()
[all …]
Daltera_tse.c158 struct alt_sgdma_descriptor *tx_desc = priv->tx_desc; in altera_tse_send_sgdma() local
161 tx_desc, in altera_tse_send_sgdma()
162 tx_desc + 1, in altera_tse_send_sgdma()
172 alt_sgdma_start_transfer(priv->sgdma_tx, tx_desc); in altera_tse_send_sgdma()
174 debug("sent %d bytes\n", tx_desc->actual_bytes_transferred); in altera_tse_send_sgdma()
176 return tx_desc->actual_bytes_transferred; in altera_tse_send_sgdma()
314 struct msgdma_extended_desc *desc = priv->tx_desc; in altera_tse_send_msgdma()
624 priv->tx_desc = base; in altera_tse_probe()
650 priv->tx_desc = desc_mem; in altera_tse_probe()
651 priv->rx_desc = priv->tx_desc + in altera_tse_probe()
Darmada100_fec.h134 struct tx_desc { struct
139 struct tx_desc *nextdesc_p; /* Pointer to next descriptor */ argument
193 struct tx_desc *txcdp[2]; /* Ethernet Current Tx Descriptor
200 struct tx_desc *p_txdesc;
Duli526x.c91 struct tx_desc { struct
94 struct tx_desc *next_tx_desc; argument
125 struct tx_desc *first_tx_desc;
126 struct tx_desc *tx_insert_ptr;
127 struct tx_desc *tx_remove_ptr;
159 static struct tx_desc desc_pool_array[DESC_ALL_CNT + 0x20]
286 db->first_tx_desc = (struct tx_desc *) db->desc_pool_ptr; in uli526x_init_one()
443 struct tx_desc *txptr; in uli526x_start_xmit()
497 struct tx_desc *txptr; in uli526x_free_tx_pkt()
626 struct tx_desc *tmp_tx; in uli526x_descriptor_init()
[all …]
Dravb.c116 struct ravb_desc tx_desc[RAVB_NUM_TX_DESC]; member
143 struct ravb_desc *desc = &eth->tx_desc[eth->tx_desc_idx]; in ravb_send()
251 memset(eth->tx_desc, 0x0, desc_size); in ravb_tx_desc_init()
255 eth->tx_desc[i].ctrl = RAVB_DESC_DT_EEMPTY; in ravb_tx_desc_init()
258 eth->tx_desc[RAVB_NUM_TX_DESC - 1].ctrl = RAVB_DESC_DT_LINKFIX; in ravb_tx_desc_init()
259 eth->tx_desc[RAVB_NUM_TX_DESC - 1].dptr = (uintptr_t)eth->tx_desc; in ravb_tx_desc_init()
260 ravb_flush_dcache((uintptr_t)eth->tx_desc, desc_size); in ravb_tx_desc_init()
264 eth->base_desc[RAVB_TX_QUEUE_OFFSET].dptr = (uintptr_t)eth->tx_desc; in ravb_tx_desc_init()
Dlpc32xx_eth.c191 ATTRS(4) struct lpc32xx_eth_txdesc tx_desc[TX_BUF_COUNT]; member
376 writel((u32)dataptr, &bufs->tx_desc[tx_index].packet); in lpc32xx_eth_send()
378 &bufs->tx_desc[tx_index].control); in lpc32xx_eth_send()
492 bufs->tx_desc[index].control = 0; in lpc32xx_eth_init()
495 writel((u32)(&bufs->tx_desc), (u32 *)&regs->txdescriptor); in lpc32xx_eth_init()
Ddwc_eth_qos.c1184 struct eqos_desc *tx_desc; in eqos_send() local
1193 tx_desc = &(eqos->tx_descs[eqos->tx_desc_idx]); in eqos_send()
1197 tx_desc->des0 = (ulong)eqos->tx_dma_buf; in eqos_send()
1198 tx_desc->des1 = 0; in eqos_send()
1199 tx_desc->des2 = length; in eqos_send()
1205 tx_desc->des3 = EQOS_DESC3_OWN | EQOS_DESC3_FD | EQOS_DESC3_LD | length; in eqos_send()
1206 eqos_flush_desc(tx_desc); in eqos_send()
1208 writel((ulong)(tx_desc + 1), &eqos->dma_regs->ch0_txdesc_tail_pointer); in eqos_send()
1211 eqos_inval_desc(tx_desc); in eqos_send()
1212 if (!(readl(&tx_desc->des3) & EQOS_DESC3_OWN)) in eqos_send()
Dmvpp2.c1308 struct mvpp2_tx_desc *tx_desc, in mvpp2_txdesc_dma_addr_set() argument
1312 tx_desc->pp21.buf_dma_addr = dma_addr; in mvpp2_txdesc_dma_addr_set()
1316 tx_desc->pp22.buf_dma_addr_ptp &= ~GENMASK_ULL(40, 0); in mvpp2_txdesc_dma_addr_set()
1317 tx_desc->pp22.buf_dma_addr_ptp |= val; in mvpp2_txdesc_dma_addr_set()
1322 struct mvpp2_tx_desc *tx_desc, in mvpp2_txdesc_size_set() argument
1326 tx_desc->pp21.data_size = size; in mvpp2_txdesc_size_set()
1328 tx_desc->pp22.data_size = size; in mvpp2_txdesc_size_set()
1332 struct mvpp2_tx_desc *tx_desc, in mvpp2_txdesc_txq_set() argument
1336 tx_desc->pp21.phys_txq = txq; in mvpp2_txdesc_txq_set()
1338 tx_desc->pp22.phys_txq = txq; in mvpp2_txdesc_txq_set()
[all …]
Dmvneta.c552 int tx_desc = txq->next_desc_to_proc; in mvneta_txq_next_desc_get() local
554 txq->next_desc_to_proc = MVNETA_QUEUE_NEXT_DESC(txq, tx_desc); in mvneta_txq_next_desc_get()
555 return txq->descs + tx_desc; in mvneta_txq_next_desc_get()
1600 struct mvneta_tx_desc *tx_desc; in mvneta_send() local
1605 tx_desc = mvneta_txq_next_desc_get(txq); in mvneta_send()
1607 tx_desc->buf_phys_addr = (u32)(uintptr_t)packet; in mvneta_send()
1608 tx_desc->data_size = length; in mvneta_send()
1613 tx_desc->command = MVNETA_TX_L4_CSUM_NOT | MVNETA_TXD_FLZ_DESC; in mvneta_send()
Daltera_tse.h220 void *tx_desc; member
Dpch_gbe.h287 struct pch_gbe_tx_desc tx_desc[PCH_GBE_DESC_NUM]; member
Darmada100_fec.c549 struct tx_desc *p_txdesc = darmdfec->p_txdesc; in armdfec_send()
695 darmdfec->p_txdesc = memalign(PKTALIGN, sizeof(struct tx_desc) + 1); in armada100_fec_register()
/external/u-boot/doc/device-tree-bindings/net/
Daltera_tse.txt11 "tx_desc": MSGDMA Tx dispatcher descriptor space region
61 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
99 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
/external/u-boot/drivers/usb/eth/
Dr8152.c1228 PKTSIZE + sizeof(struct tx_desc)); in r8152_send_common()
1229 struct tx_desc *tx_desc = (struct tx_desc *)msg; in r8152_send_common() local
1235 tx_desc->opts2 = cpu_to_le32(opts2); in r8152_send_common()
1236 tx_desc->opts1 = cpu_to_le32(opts1); in r8152_send_common()
1238 memcpy(msg + sizeof(struct tx_desc), (void *)packet, length); in r8152_send_common()
1241 (void *)msg, length + sizeof(struct tx_desc), in r8152_send_common()
1244 length + sizeof(struct tx_desc), actual_len, err); in r8152_send_common()
Dr8152.h535 struct tx_desc { struct
/external/u-boot/arch/nios2/dts/
D10m50_devboard.dts110 "tx_csr", "tx_desc";