Lines Matching refs:curr_des
145 struct ftmac100_rxdes *curr_des; in _ftmac100_free_pkt() local
146 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() local
161 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
190 if (curr_des->txdes0 & FTMAC100_TXDES0_TXDMA_OWN) { in _ftmac100_send()
202 curr_des->txdes2 = (unsigned int)(unsigned long)packet; /* TXBUF_BADR */ in _ftmac100_send()
204 curr_des->txdes1 &= FTMAC100_TXDES1_EDOTR; in _ftmac100_send()
205 curr_des->txdes1 |= FTMAC100_TXDES1_FTS | in _ftmac100_send()
209 curr_des->txdes0 = FTMAC100_TXDES0_TXDMA_OWN; in _ftmac100_send()
218 while (curr_des->txdes0 & FTMAC100_TXDES0_TXDMA_OWN) { in _ftmac100_send()
248 struct ftmac100_rxdes *curr_des; in _ftmac100_recv() local
250 curr_des = &priv->rxdes[priv->rx_index]; in _ftmac100_recv()
254 net_process_received_packet((void *)curr_des->rxdes2, len); in _ftmac100_recv()
341 struct ftmac100_rxdes *curr_des; in ftmac100_recv() local
342 curr_des = &priv->rxdes[priv->rx_index]; in ftmac100_recv()
346 *packetp = (uchar *)(unsigned long)curr_des->rxdes2; in ftmac100_recv()