Lines Matching refs:n_desc
638 u32 phys, tab_phys, n_desc; in queue_get_desc() local
647 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc()
648 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); in queue_get_desc()
649 debug_desc(phys, &tab[n_desc]); in queue_get_desc()
650 BUG_ON(tab[n_desc].next); in queue_get_desc()
651 return n_desc; in queue_get_desc()
804 u32 npe_id, n_desc; in eth_txdone_irq() local
814 n_desc = (phys - tx_desc_phys(port, 0)) / sizeof(struct desc); in eth_txdone_irq()
815 BUG_ON(n_desc >= TX_DESCS); in eth_txdone_irq()
816 desc = tx_desc_ptr(port, n_desc); in eth_txdone_irq()
819 if (port->tx_buff_tab[n_desc]) { /* not the draining packet */ in eth_txdone_irq()
826 port->netdev->name, port->tx_buff_tab[n_desc]); in eth_txdone_irq()
828 free_buffer_irq(port->tx_buff_tab[n_desc]); in eth_txdone_irq()
829 port->tx_buff_tab[n_desc] = NULL; in eth_txdone_irq()