Lines Matching refs:desc_num
359 u32 desc_num = priv->tx_currdescnum; in _dw_eth_send() local
360 struct dmamacdescr *desc_p = &priv->tx_mac_descrtable[desc_num]; in _dw_eth_send()
408 if (++desc_num >= CONFIG_TX_DESCR_NUM) in _dw_eth_send()
409 desc_num = 0; in _dw_eth_send()
411 priv->tx_currdescnum = desc_num; in _dw_eth_send()
421 u32 status, desc_num = priv->rx_currdescnum; in _dw_eth_recv() local
422 struct dmamacdescr *desc_p = &priv->rx_mac_descrtable[desc_num]; in _dw_eth_recv()
452 u32 desc_num = priv->rx_currdescnum; in _dw_free_pkt() local
453 struct dmamacdescr *desc_p = &priv->rx_mac_descrtable[desc_num]; in _dw_free_pkt()
468 if (++desc_num >= CONFIG_RX_DESCR_NUM) in _dw_free_pkt()
469 desc_num = 0; in _dw_free_pkt()
470 priv->rx_currdescnum = desc_num; in _dw_free_pkt()