Lines Matching refs:n_desc
630 u32 phys, tab_phys, n_desc; in queue_get_desc() local
639 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc()
640 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); in queue_get_desc()
641 debug_desc(phys, &tab[n_desc]); in queue_get_desc()
642 BUG_ON(tab[n_desc].next); in queue_get_desc()
643 return n_desc; in queue_get_desc()
800 u32 npe_id, n_desc; in eth_txdone_irq() local
810 n_desc = (phys - tx_desc_phys(port, 0)) / sizeof(struct desc); in eth_txdone_irq()
811 BUG_ON(n_desc >= TX_DESCS); in eth_txdone_irq()
812 desc = tx_desc_ptr(port, n_desc); in eth_txdone_irq()
815 if (port->tx_buff_tab[n_desc]) { /* not the draining packet */ in eth_txdone_irq()
822 port->netdev->name, port->tx_buff_tab[n_desc]); in eth_txdone_irq()
824 free_buffer_irq(port->tx_buff_tab[n_desc]); in eth_txdone_irq()
825 port->tx_buff_tab[n_desc] = NULL; in eth_txdone_irq()