/external/u-boot/drivers/net/pfe_eth/ |
D | pfe_driver.c | 29 struct rx_desc_s *rx_desc = g_rx_desc; in pfe_recv() local 35 bd = rx_desc->rx_base + rx_desc->rx_to_read; in pfe_recv() 78 struct rx_desc_s *rx_desc = g_rx_desc; in pfe_eth_free_pkt() local 81 debug("%s:rx_base: %p, rx_to_read: %d\n", __func__, rx_desc->rx_base, in pfe_eth_free_pkt() 82 rx_desc->rx_to_read); in pfe_eth_free_pkt() 84 bd = rx_desc->rx_base + rx_desc->rx_to_read; in pfe_eth_free_pkt() 102 rx_desc->rx_to_read = (rx_desc->rx_to_read + 1) in pfe_eth_free_pkt() 103 & (rx_desc->rx_ring_size - 1); in pfe_eth_free_pkt() 105 debug("Rx next pkt location: %d\n", rx_desc->rx_to_read); in pfe_eth_free_pkt() 230 struct rx_desc_s *rx_desc; in hif_rx_desc_dump() local [all …]
|
/external/u-boot/drivers/net/ |
D | pch_gbe.c | 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() [all …]
|
D | armada100_fec.h | 115 (((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;
|
D | ravb.c | 117 struct ravb_rxdesc rx_desc[RAVB_NUM_RX_DESC]; member 176 struct ravb_rxdesc *desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_recv() 202 struct ravb_rxdesc *desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_free_pkt() 210 desc = ð->rx_desc[eth->rx_desc_idx]; in ravb_free_pkt() 275 memset(eth->rx_desc, 0x0, desc_size); in ravb_rx_desc_init() 279 eth->rx_desc[i].data.ctrl = RAVB_DESC_DT_EEMPTY | in ravb_rx_desc_init() 281 eth->rx_desc[i].data.dptr = (uintptr_t)eth->rx_desc[i].packet; in ravb_rx_desc_init() 283 eth->rx_desc[i].link.ctrl = RAVB_DESC_DT_LINKFIX; in ravb_rx_desc_init() 284 eth->rx_desc[i].link.dptr = (uintptr_t)ð->rx_desc[i + 1]; in ravb_rx_desc_init() 288 eth->rx_desc[RAVB_NUM_RX_DESC - 1].link.ctrl = RAVB_DESC_DT_LINKFIX; in ravb_rx_desc_init() [all …]
|
D | altera_tse.c | 183 struct alt_sgdma_descriptor *rx_desc = priv->rx_desc; in altera_tse_recv_sgdma() local 186 if (rx_desc->descriptor_status & in altera_tse_recv_sgdma() 189 packet_length = rx_desc->actual_bytes_transferred; in altera_tse_recv_sgdma() 203 struct alt_sgdma_descriptor *rx_desc = priv->rx_desc; in altera_tse_free_pkt_sgdma() local 206 rx_desc, in altera_tse_free_pkt_sgdma() 207 rx_desc + 1, in altera_tse_free_pkt_sgdma() 217 alt_sgdma_start_transfer(priv->sgdma_rx, rx_desc); in altera_tse_free_pkt_sgdma() 248 struct alt_sgdma_descriptor *rx_desc = priv->rx_desc; in altera_tse_stop_sgdma() local 252 rx_desc->descriptor_control = 0; in altera_tse_stop_sgdma() 357 struct msgdma_extended_desc *desc = priv->rx_desc; in altera_tse_free_pkt_msgdma() [all …]
|
D | davinci_emac.c | 419 volatile emac_desc *rx_desc; in davinci_eth_open() local 445 rx_desc = emac_rx_desc; in davinci_eth_open() 473 rx_desc->next = BD_TO_HW((u_int32_t)(rx_desc + 1)); in davinci_eth_open() 474 rx_desc->buffer = &emac_rx_buffers[cnt * EMAC_RXBUF_SIZE]; in davinci_eth_open() 475 rx_desc->buff_off_len = EMAC_MAX_ETHERNET_PKT_SIZE; in davinci_eth_open() 476 rx_desc->pkt_flag_len = EMAC_CPPI_OWNERSHIP_BIT; in davinci_eth_open() 477 rx_desc++; in davinci_eth_open() 481 rx_desc--; in davinci_eth_open() 482 rx_desc->next = 0; in davinci_eth_open() 483 emac_rx_active_tail = rx_desc; in davinci_eth_open()
|
D | mvneta.c | 526 int rx_desc = rxq->next_desc_to_proc; in mvneta_rxq_next_desc_get() local 528 rxq->next_desc_to_proc = MVNETA_QUEUE_NEXT_DESC(rxq, rx_desc); in mvneta_rxq_next_desc_get() 529 return rxq->descs + rx_desc; in mvneta_rxq_next_desc_get() 902 static void mvneta_rx_desc_fill(struct mvneta_rx_desc *rx_desc, in mvneta_rx_desc_fill() argument 905 rx_desc->buf_cookie = cookie; in mvneta_rx_desc_fill() 906 rx_desc->buf_phys_addr = phys_addr; in mvneta_rx_desc_fill() 943 struct mvneta_rx_desc *rx_desc) in mvneta_rx_error() argument 945 u32 status = rx_desc->status; in mvneta_rx_error() 950 status, rx_desc->data_size); in mvneta_rx_error() 957 status, rx_desc->data_size); in mvneta_rx_error() [all …]
|
D | dwc_eth_qos.c | 1072 struct eqos_desc *rx_desc = &(eqos->rx_descs[i]); in eqos_start() local 1073 rx_desc->des0 = (u32)(ulong)(eqos->rx_dma_buf + in eqos_start() 1075 rx_desc->des3 |= EQOS_DESC3_OWN | EQOS_DESC3_BUF1V; in eqos_start() 1225 struct eqos_desc *rx_desc; in eqos_recv() local 1230 rx_desc = &(eqos->rx_descs[eqos->rx_desc_idx]); in eqos_recv() 1231 if (rx_desc->des3 & EQOS_DESC3_OWN) { in eqos_recv() 1238 length = rx_desc->des3 & 0x7fff; in eqos_recv() 1250 struct eqos_desc *rx_desc; in eqos_free_pkt() local 1262 rx_desc = &(eqos->rx_descs[eqos->rx_desc_idx]); in eqos_free_pkt() 1263 rx_desc->des0 = (u32)(ulong)packet; in eqos_free_pkt() [all …]
|
D | uli526x.c | 97 struct rx_desc { struct 100 struct rx_desc *next_rx_desc; argument 128 struct rx_desc *first_rx_desc; 129 struct rx_desc *rx_ready_ptr; /* packet come pointer */ 181 static void uli526x_reuse_buf(struct rx_desc *); 541 struct rx_desc *rxptr; in uli526x_rx_packet() 610 static void uli526x_reuse_buf(struct rx_desc *rxptr) in uli526x_reuse_buf() 627 struct rx_desc *tmp_rx; in uli526x_descriptor_init() 676 tmp_rx_dma += sizeof(struct rx_desc); in uli526x_descriptor_init() 706 struct rx_desc *rxptr; in allocate_rx_buffer()
|
D | mvpp2.c | 1362 struct mvpp2_rx_desc *rx_desc) in mvpp2_rxdesc_dma_addr_get() argument 1365 return rx_desc->pp21.buf_dma_addr; in mvpp2_rxdesc_dma_addr_get() 1367 return rx_desc->pp22.buf_dma_addr_key_hash & GENMASK_ULL(40, 0); in mvpp2_rxdesc_dma_addr_get() 1371 struct mvpp2_rx_desc *rx_desc) in mvpp2_rxdesc_cookie_get() argument 1374 return rx_desc->pp21.buf_cookie; in mvpp2_rxdesc_cookie_get() 1376 return rx_desc->pp22.buf_cookie_misc & GENMASK_ULL(40, 0); in mvpp2_rxdesc_cookie_get() 1380 struct mvpp2_rx_desc *rx_desc) in mvpp2_rxdesc_size_get() argument 1383 return rx_desc->pp21.data_size; in mvpp2_rxdesc_size_get() 1385 return rx_desc->pp22.data_size; in mvpp2_rxdesc_size_get() 1389 struct mvpp2_rx_desc *rx_desc) in mvpp2_rxdesc_status_get() argument [all …]
|
D | lpc32xx_eth.c | 194 ATTRS(4) struct lpc32xx_eth_rxdesc rx_desc[RX_BUF_COUNT]; member 501 bufs->rx_desc[index].packet = in lpc32xx_eth_init() 503 bufs->rx_desc[index].control = PKTSIZE_ALIGN - 1; in lpc32xx_eth_init() 507 writel((u32)(&bufs->rx_desc), ®s->rxdescriptor); in lpc32xx_eth_init()
|
D | armada100_fec.c | 401 struct rx_desc *p_rx_desc; in armdfec_init_rx_desc_ring() 414 p_rx_desc->nxtdesc_p = (struct rx_desc *) in armdfec_init_rx_desc_ring() 602 struct rx_desc *p_rxdesc_curr = darmdfec->p_rxdesc_curr; in armdfec_recv()
|
D | altera_tse.h | 219 void *rx_desc; member
|
D | pch_gbe.h | 286 struct pch_gbe_rx_desc rx_desc[PCH_GBE_DESC_NUM]; member
|
/external/u-boot/drivers/usb/eth/ |
D | r8152.c | 1276 struct rx_desc *rx_desc; in r8152_recv() local 1298 rx_desc = (struct rx_desc *)(recv_buf + bytes_process); in r8152_recv() 1299 pkt_ptr = recv_buf + sizeof(struct rx_desc) + bytes_process; in r8152_recv() 1301 packet_len = le32_to_cpu(rx_desc->opts1) & RX_LEN_MASK; in r8152_recv() 1307 (packet_len + sizeof(struct rx_desc) + CRC_SIZE); in r8152_recv() 1510 struct rx_desc *rx_desc; in r8152_eth_recv() local 1526 rx_desc = (struct rx_desc *)ptr; in r8152_eth_recv() 1527 packet_len = le32_to_cpu(rx_desc->opts1) & RX_LEN_MASK; in r8152_eth_recv() 1530 if (packet_len > len - (sizeof(struct rx_desc) + CRC_SIZE)) { in r8152_eth_recv() 1535 *packetp = ptr + sizeof(struct rx_desc); in r8152_eth_recv() [all …]
|
D | r8152.h | 513 struct rx_desc { struct
|
/external/u-boot/doc/device-tree-bindings/net/ |
D | altera_tse.txt | 13 "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";
|
/external/u-boot/arch/nios2/dts/ |
D | 10m50_devboard.dts | 109 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp",
|