Lines Matching refs:curr_des
470 struct ftgmac100_rxdes *curr_des; in ftgmac100_recv() local
473 curr_des = &priv->rxdes[priv->rx_index]; in ftgmac100_recv()
475 if (!(curr_des->rxdes0 & FTGMAC100_RXDES0_RXPKT_RDY)) in ftgmac100_recv()
478 if (curr_des->rxdes0 & (FTGMAC100_RXDES0_RX_ERR | in ftgmac100_recv()
486 rxlen = FTGMAC100_RXDES0_VDBC(curr_des->rxdes0); in ftgmac100_recv()
492 dma_map_single((void *)curr_des->rxdes2, rxlen, DMA_FROM_DEVICE); in ftgmac100_recv()
495 net_process_received_packet((void *)curr_des->rxdes2, rxlen); in ftgmac100_recv()
498 curr_des->rxdes0 &= ~FTGMAC100_RXDES0_RXPKT_RDY; in ftgmac100_recv()
512 struct ftgmac100_txdes *curr_des = &priv->txdes[priv->tx_index]; in ftgmac100_send() local
514 if (curr_des->txdes0 & FTGMAC100_TXDES0_TXDMA_OWN) { in ftgmac100_send()
523 memcpy((void *)curr_des->txdes2, (void *)packet, length); in ftgmac100_send()
524 dma_map_single((void *)curr_des->txdes2, length, DMA_TO_DEVICE); in ftgmac100_send()
527 curr_des->txdes0 &= FTGMAC100_TXDES0_EDOTR; in ftgmac100_send()
528 curr_des->txdes0 |= FTGMAC100_TXDES0_FTS | in ftgmac100_send()