Lines Matching refs:rxdes
35 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()
424 if (!rxdes[i].rxdes2) { in ftgmac100_init()
426 rxdes[i].rxdes3 = virt_to_phys(buf); in ftgmac100_init()
427 rxdes[i].rxdes2 = (uint)buf; in ftgmac100_init()
429 rxdes[i].rxdes0 &= ~FTGMAC100_RXDES0_RXPKT_RDY; in ftgmac100_init()
473 curr_des = &priv->rxdes[priv->rx_index]; in ftgmac100_recv()