Lines Matching refs:n_desc
591 u32 phys, tab_phys, n_desc; in queue_get_desc() local
601 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc()
602 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); in queue_get_desc()
603 debug_desc(phys, &tab[n_desc]); in queue_get_desc()
604 BUG_ON(tab[n_desc].next); in queue_get_desc()
605 return n_desc; in queue_get_desc()
801 int n_desc; in hss_hdlc_txdone_irq() local
806 while ((n_desc = queue_get_desc(port->txdoneq, in hss_hdlc_txdone_irq()
811 desc = tx_desc_ptr(port, n_desc); in hss_hdlc_txdone_irq()
819 dev->name, port->tx_buff_tab[n_desc]); in hss_hdlc_txdone_irq()
821 free_buffer_irq(port->tx_buff_tab[n_desc]); in hss_hdlc_txdone_irq()
822 port->tx_buff_tab[n_desc] = NULL; in hss_hdlc_txdone_irq()
826 tx_desc_phys(port, n_desc), desc); in hss_hdlc_txdone_irq()