Lines Matching refs:n_desc
626 u32 phys, tab_phys, n_desc; in queue_get_desc() local
635 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc()
636 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); in queue_get_desc()
637 debug_desc(phys, &tab[n_desc]); in queue_get_desc()
638 BUG_ON(tab[n_desc].next); in queue_get_desc()
639 return n_desc; in queue_get_desc()
792 u32 npe_id, n_desc; in eth_txdone_irq() local
802 n_desc = (phys - tx_desc_phys(port, 0)) / sizeof(struct desc); in eth_txdone_irq()
803 BUG_ON(n_desc >= TX_DESCS); in eth_txdone_irq()
804 desc = tx_desc_ptr(port, n_desc); in eth_txdone_irq()
807 if (port->tx_buff_tab[n_desc]) { /* not the draining packet */ in eth_txdone_irq()
814 port->netdev->name, port->tx_buff_tab[n_desc]); in eth_txdone_irq()
816 free_buffer_irq(port->tx_buff_tab[n_desc]); in eth_txdone_irq()
817 port->tx_buff_tab[n_desc] = NULL; in eth_txdone_irq()