Lines Matching refs:curr_des
471 struct ftgmac100_rxdes *curr_des; in ftgmac100_recv() local
474 curr_des = &priv->rxdes[priv->rx_index]; in ftgmac100_recv()
476 if (!(curr_des->rxdes0 & FTGMAC100_RXDES0_RXPKT_RDY)) in ftgmac100_recv()
479 if (curr_des->rxdes0 & (FTGMAC100_RXDES0_RX_ERR | in ftgmac100_recv()
487 rxlen = FTGMAC100_RXDES0_VDBC(curr_des->rxdes0); in ftgmac100_recv()
493 dma_map_single((void *)curr_des->rxdes2, rxlen, DMA_FROM_DEVICE); in ftgmac100_recv()
496 net_process_received_packet((void *)curr_des->rxdes2, rxlen); in ftgmac100_recv()
499 curr_des->rxdes0 &= ~FTGMAC100_RXDES0_RXPKT_RDY; in ftgmac100_recv()
513 struct ftgmac100_txdes *curr_des = &priv->txdes[priv->tx_index]; in ftgmac100_send() local
515 if (curr_des->txdes0 & FTGMAC100_TXDES0_TXDMA_OWN) { in ftgmac100_send()
524 memcpy((void *)curr_des->txdes2, (void *)packet, length); in ftgmac100_send()
525 dma_map_single((void *)curr_des->txdes2, length, DMA_TO_DEVICE); in ftgmac100_send()
528 curr_des->txdes0 &= FTGMAC100_TXDES0_EDOTR; in ftgmac100_send()
529 curr_des->txdes0 |= FTGMAC100_TXDES0_FTS | in ftgmac100_send()