Home
last modified time | relevance | path

Searched refs:rxdes (Results 1 – 2 of 2) sorted by relevance

/external/u-boot/drivers/net/
Dftgmac100.c35 struct ftgmac100_rxdes *rxdes; member
370 struct ftgmac100_rxdes *rxdes; in ftgmac100_init() local
387 if (!priv->rxdes) { in ftgmac100_init()
388 rxdes = dma_alloc_coherent( in ftgmac100_init()
389 sizeof(*rxdes) * PKTBUFSRX, &priv->rxdes_dma); in ftgmac100_init()
390 if (!rxdes) in ftgmac100_init()
392 memset(rxdes, 0, sizeof(*rxdes) * PKTBUFSRX); in ftgmac100_init()
393 priv->rxdes = rxdes; in ftgmac100_init()
395 rxdes = priv->rxdes; in ftgmac100_init()
408 rxdes[PKTBUFSRX - 1].rxdes0 = FTGMAC100_RXDES0_EDORR; in ftgmac100_init()
[all …]
Dftmac100.c24 struct ftmac100_rxdes rxdes[PKTBUFSRX]; member
83 struct ftmac100_rxdes *rxdes = priv->rxdes; in _ftmac100_init() local
103 rxdes[PKTBUFSRX - 1].rxdes1 = FTMAC100_RXDES1_EDORR; in _ftmac100_init()
107 rxdes[i].rxdes2 = (unsigned int)(unsigned long)net_rx_packets[i]; in _ftmac100_init()
108 rxdes[i].rxdes1 |= FTMAC100_RXDES1_RXBUF_SIZE (PKTSIZE_ALIGN); in _ftmac100_init()
109 rxdes[i].rxdes0 = FTMAC100_RXDES0_RXDMA_OWN; in _ftmac100_init()
118 writel ((unsigned long)rxdes, &ftmac100->rxr_badr); in _ftmac100_init()
146 curr_des = &priv->rxdes[priv->rx_index]; in _ftmac100_free_pkt()
161 curr_des = &priv->rxdes[priv->rx_index]; in __ftmac100_recv()
250 curr_des = &priv->rxdes[priv->rx_index]; in _ftmac100_recv()
[all …]