Lines Matching refs:n_desc
646 u32 phys, tab_phys, n_desc; in queue_get_desc() local
655 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc()
656 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); in queue_get_desc()
657 debug_desc(phys, &tab[n_desc]); in queue_get_desc()
658 BUG_ON(tab[n_desc].next); in queue_get_desc()
659 return n_desc; in queue_get_desc()
812 u32 npe_id, n_desc; in eth_txdone_irq() local
822 n_desc = (phys - tx_desc_phys(port, 0)) / sizeof(struct desc); in eth_txdone_irq()
823 BUG_ON(n_desc >= TX_DESCS); in eth_txdone_irq()
824 desc = tx_desc_ptr(port, n_desc); in eth_txdone_irq()
827 if (port->tx_buff_tab[n_desc]) { /* not the draining packet */ in eth_txdone_irq()
834 port->netdev->name, port->tx_buff_tab[n_desc]); in eth_txdone_irq()
836 free_buffer_irq(port->tx_buff_tab[n_desc]); in eth_txdone_irq()
837 port->tx_buff_tab[n_desc] = NULL; in eth_txdone_irq()