Home
last modified time | relevance | path

Searched refs:rx_desc (Results 1 – 19 of 19) sorted by relevance

/u-boot/drivers/net/pfe_eth/
A Dpfe_driver.c38 bd = rx_desc->rx_base + rx_desc->rx_to_read; in pfe_recv()
85 rx_desc->rx_to_read); in pfe_eth_free_pkt()
87 bd = rx_desc->rx_base + rx_desc->rx_to_read; in pfe_eth_free_pkt()
105 rx_desc->rx_to_read = (rx_desc->rx_to_read + 1) in pfe_eth_free_pkt()
240 rx_desc = g_rx_desc; in hif_rx_desc_dump()
241 bd_va = rx_desc->rx_base; in hif_rx_desc_dump()
269 rx_desc = g_rx_desc; in hif_rx_desc_disable()
270 bd_va = rx_desc->rx_base; in hif_rx_desc_disable()
297 if (!rx_desc) { in hif_rx_desc_init()
318 __func__, rx_desc->rx_base, rx_desc->rx_base_pa, in hif_rx_desc_init()
[all …]
/u-boot/drivers/net/
A Darmada100_fec.h115 (((sizeof(struct rx_desc) / PKTALIGN) + 1) * PKTALIGN)
142 struct rx_desc { struct
147 struct rx_desc *nxtdesc_p; /* Next descriptor pointer */ argument
187 struct rx_desc *rxfdp[4]; /* Ethernet First Rx Descriptor
190 struct rx_desc *rxcdp[4]; /* Ethernet Current Rx Descriptor
201 struct rx_desc *p_rxdesc;
202 struct rx_desc *p_rxdesc_curr;
A Dpch_gbe.c118 struct pch_gbe_rx_desc *rx_desc = &priv->rx_desc[0]; in pch_gbe_rx_descs_init() local
123 rx_desc[i].buffer_addr = dm_pci_virt_to_mem(priv->dev, in pch_gbe_rx_descs_init()
126 flush_dcache_range((ulong)rx_desc, (ulong)&rx_desc[PCH_GBE_DESC_NUM]); in pch_gbe_rx_descs_init()
128 writel(dm_pci_virt_to_mem(priv->dev, rx_desc), in pch_gbe_rx_descs_init()
133 writel(dm_pci_virt_to_mem(priv->dev, rx_desc + 1), in pch_gbe_rx_descs_init()
296 struct pch_gbe_rx_desc *rx_desc; in pch_gbe_recv() local
300 rx_desc = &priv->rx_desc[priv->rx_idx]; in pch_gbe_recv()
306 if (virt_to_phys(rx_desc) == hw_desc) in pch_gbe_recv()
310 invalidate_dcache_range((ulong)rx_desc, (ulong)&rx_desc[1]); in pch_gbe_recv()
312 length = rx_desc->rx_words_eob - 3 - ETH_FCS_LEN; in pch_gbe_recv()
[all …]
A Dravb.c125 struct ravb_rxdesc rx_desc[RAVB_NUM_RX_DESC]; member
184 struct ravb_rxdesc *desc = &eth->rx_desc[eth->rx_desc_idx]; in ravb_recv()
210 struct ravb_rxdesc *desc = &eth->rx_desc[eth->rx_desc_idx]; in ravb_free_pkt()
218 desc = &eth->rx_desc[eth->rx_desc_idx]; in ravb_free_pkt()
283 memset(eth->rx_desc, 0x0, desc_size); in ravb_rx_desc_init()
287 eth->rx_desc[i].data.ctrl = RAVB_DESC_DT_EEMPTY | in ravb_rx_desc_init()
289 eth->rx_desc[i].data.dptr = (uintptr_t)eth->rx_desc[i].packet; in ravb_rx_desc_init()
291 eth->rx_desc[i].link.ctrl = RAVB_DESC_DT_LINKFIX; in ravb_rx_desc_init()
292 eth->rx_desc[i].link.dptr = (uintptr_t)&eth->rx_desc[i + 1]; in ravb_rx_desc_init()
297 eth->rx_desc[RAVB_NUM_RX_DESC - 1].link.dptr = (uintptr_t)eth->rx_desc; in ravb_rx_desc_init()
[all …]
A Daltera_tse.c186 struct alt_sgdma_descriptor *rx_desc = priv->rx_desc; in altera_tse_recv_sgdma() local
189 if (rx_desc->descriptor_status & in altera_tse_recv_sgdma()
192 packet_length = rx_desc->actual_bytes_transferred; in altera_tse_recv_sgdma()
206 struct alt_sgdma_descriptor *rx_desc = priv->rx_desc; in altera_tse_free_pkt_sgdma() local
209 rx_desc, in altera_tse_free_pkt_sgdma()
210 rx_desc + 1, in altera_tse_free_pkt_sgdma()
220 alt_sgdma_start_transfer(priv->sgdma_rx, rx_desc); in altera_tse_free_pkt_sgdma()
251 struct alt_sgdma_descriptor *rx_desc = priv->rx_desc; in altera_tse_stop_sgdma() local
255 rx_desc->descriptor_control = 0; in altera_tse_stop_sgdma()
621 priv->rx_desc = base; in altera_tse_probe()
[all …]
A Dmvneta.c534 return rxq->descs + rx_desc; in mvneta_rxq_next_desc_get()
910 rx_desc->buf_cookie = cookie; in mvneta_rx_desc_fill()
950 u32 status = rx_desc->status; in mvneta_rx_error()
955 status, rx_desc->data_size); in mvneta_rx_error()
963 rx_desc->data_size); in mvneta_rx_error()
968 rx_desc->data_size); in mvneta_rx_error()
973 status, rx_desc->data_size); in mvneta_rx_error()
978 status, rx_desc->data_size); in mvneta_rx_error()
1653 struct mvneta_rx_desc *rx_desc; in mvneta_recv() local
1663 rx_status = rx_desc->status; in mvneta_recv()
[all …]
A Duli526x.c98 struct rx_desc { struct
101 struct rx_desc *next_rx_desc; argument
129 struct rx_desc *first_rx_desc;
130 struct rx_desc *rx_ready_ptr; /* packet come pointer */
182 static void uli526x_reuse_buf(struct rx_desc *);
542 struct rx_desc *rxptr; in uli526x_rx_packet()
611 static void uli526x_reuse_buf(struct rx_desc *rxptr) in uli526x_reuse_buf()
628 struct rx_desc *tmp_rx; in uli526x_descriptor_init()
677 tmp_rx_dma += sizeof(struct rx_desc); in uli526x_descriptor_init()
707 struct rx_desc *rxptr; in allocate_rx_buffer()
A Ddwc_eth_qos.c1569 struct eqos_desc *rx_desc; in eqos_recv() local
1575 eqos->config->ops->eqos_inval_desc(rx_desc); in eqos_recv()
1576 if (rx_desc->des3 & EQOS_DESC3_OWN) { in eqos_recv()
1583 length = rx_desc->des3 & 0x7fff; in eqos_recv()
1595 struct eqos_desc *rx_desc; in eqos_free_pkt() local
1611 rx_desc->des0 = 0; in eqos_free_pkt()
1613 eqos->config->ops->eqos_flush_desc(rx_desc); in eqos_free_pkt()
1615 rx_desc->des0 = (u32)(ulong)packet; in eqos_free_pkt()
1616 rx_desc->des1 = 0; in eqos_free_pkt()
1617 rx_desc->des2 = 0; in eqos_free_pkt()
[all …]
A Dlpc32xx_eth.c196 ATTRS(4) struct lpc32xx_eth_rxdesc rx_desc[RX_BUF_COUNT]; member
504 bufs->rx_desc[index].packet = in lpc32xx_eth_init()
506 bufs->rx_desc[index].control = PKTSIZE_ALIGN - 1; in lpc32xx_eth_init()
510 writel((u32)(&bufs->rx_desc), &regs->rxdescriptor); in lpc32xx_eth_init()
A Dmvpp2.c1345 return rx_desc->pp21.buf_dma_addr; in mvpp2_rxdesc_dma_addr_get()
1354 return rx_desc->pp21.buf_cookie; in mvpp2_rxdesc_cookie_get()
1363 return rx_desc->pp21.data_size; in mvpp2_rxdesc_size_get()
1365 return rx_desc->pp22.data_size; in mvpp2_rxdesc_size_get()
1369 struct mvpp2_rx_desc *rx_desc) in mvpp2_rxdesc_status_get() argument
1372 return rx_desc->pp21.status; in mvpp2_rxdesc_status_get()
1374 return rx_desc->pp22.status; in mvpp2_rxdesc_status_get()
3864 return rxq->descs + rx_desc; in mvpp2_rxq_next_desc_get()
3888 struct mvpp2_rx_desc *rx_desc) in mvpp2_bm_cookie_build() argument
5059 struct mvpp2_rx_desc *rx_desc; in mvpp2_recv() local
[all …]
A Daltera_tse.h220 void *rx_desc; member
A Darmada100_fec.c403 struct rx_desc *p_rx_desc; in armdfec_init_rx_desc_ring()
416 p_rx_desc->nxtdesc_p = (struct rx_desc *) in armdfec_init_rx_desc_ring()
604 struct rx_desc *p_rxdesc_curr = darmdfec->p_rxdesc_curr; in armdfec_recv()
A Dpch_gbe.h286 struct pch_gbe_rx_desc rx_desc[PCH_GBE_DESC_NUM]; member
/u-boot/drivers/net/ti/
A Ddavinci_emac.c423 volatile emac_desc *rx_desc; in davinci_emac_start() local
449 rx_desc = emac_rx_desc; in davinci_emac_start()
477 rx_desc->next = BD_TO_HW((u_int32_t)(rx_desc + 1)); in davinci_emac_start()
478 rx_desc->buffer = &emac_rx_buffers[cnt * EMAC_RXBUF_SIZE]; in davinci_emac_start()
479 rx_desc->buff_off_len = EMAC_MAX_ETHERNET_PKT_SIZE; in davinci_emac_start()
480 rx_desc->pkt_flag_len = EMAC_CPPI_OWNERSHIP_BIT; in davinci_emac_start()
481 rx_desc++; in davinci_emac_start()
485 rx_desc--; in davinci_emac_start()
486 rx_desc->next = 0; in davinci_emac_start()
487 emac_rx_active_tail = rx_desc; in davinci_emac_start()
/u-boot/drivers/mtd/nand/raw/
A Dcortina_nand.c49 struct rx_descriptor_t *rx_desc; member
192 if (!info->rx_desc && info->tx_desc) { in init_nand_dma()
196 } else if (info->rx_desc && !info->tx_desc) { in init_nand_dma()
204 GENMASK(31, 4), (uintptr_t)info->rx_desc); in init_nand_dma()
216 memset((unsigned char *)info->rx_desc, 0, in init_nand_dma()
734 struct rx_descriptor_t *rx_desc; in nand_rw_page() local
800 rx_desc = info->rx_desc; in nand_rw_page()
805 rx_desc[dma_index].own = OWN_DMA; in nand_rw_page()
806 rx_desc[dma_index].buf_len = mtd->writesize; in nand_rw_page()
822 rx_desc[dma_index].own = OWN_DMA; in nand_rw_page()
[all …]
/u-boot/doc/device-tree-bindings/net/
A Daltera_tse.txt13 "rx_desc": MSGDMA Rx 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";
/u-boot/drivers/usb/eth/
A Dr8152.c522 sizeof(struct rx_desc)); in r8153_set_rx_early_size()
1508 struct rx_desc *rx_desc; in r8152_recv() local
1530 rx_desc = (struct rx_desc *)(recv_buf + bytes_process); in r8152_recv()
1531 pkt_ptr = recv_buf + sizeof(struct rx_desc) + bytes_process; in r8152_recv()
1533 packet_len = le32_to_cpu(rx_desc->opts1) & RX_LEN_MASK; in r8152_recv()
1539 (packet_len + sizeof(struct rx_desc) + CRC_SIZE); in r8152_recv()
1749 struct rx_desc *rx_desc; in r8152_eth_recv() local
1765 rx_desc = (struct rx_desc *)ptr; in r8152_eth_recv()
1766 packet_len = le32_to_cpu(rx_desc->opts1) & RX_LEN_MASK; in r8152_eth_recv()
1774 *packetp = ptr + sizeof(struct rx_desc); in r8152_eth_recv()
[all …]
A Dr8152.h559 struct rx_desc { struct
/u-boot/arch/nios2/dts/
A D10m50_devboard.dts109 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp",

Completed in 61 milliseconds