Searched refs:curr_des (Results 1 – 2 of 2) sorted by relevance
145 struct ftmac100_rxdes *curr_des; in _ftmac100_free_pkt() local146 curr_des = &priv->rxdes[priv->rx_index]; in _ftmac100_free_pkt()148 curr_des->rxdes0 |= FTMAC100_RXDES0_RXDMA_OWN; in _ftmac100_free_pkt()158 struct ftmac100_rxdes *curr_des; in __ftmac100_recv() local161 curr_des = &priv->rxdes[priv->rx_index]; in __ftmac100_recv()162 if (curr_des->rxdes0 & FTMAC100_RXDES0_RXDMA_OWN) in __ftmac100_recv()165 if (curr_des->rxdes0 & (FTMAC100_RXDES0_RX_ERR | in __ftmac100_recv()173 rxlen = FTMAC100_RXDES0_RFL (curr_des->rxdes0); in __ftmac100_recv()174 invalidate_dcache_range(curr_des->rxdes2,curr_des->rxdes2+rxlen); in __ftmac100_recv()187 struct ftmac100_txdes *curr_des = priv->txdes; in _ftmac100_send() local[all …]
470 struct ftgmac100_rxdes *curr_des; in ftgmac100_recv() local473 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() local514 if (curr_des->txdes0 & FTGMAC100_TXDES0_TXDMA_OWN) { in ftgmac100_send()[all …]