Lines Matching refs:n_desc
583 u32 phys, tab_phys, n_desc; in queue_get_desc() local
592 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc()
593 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); in queue_get_desc()
594 debug_desc(phys, &tab[n_desc]); in queue_get_desc()
595 BUG_ON(tab[n_desc].next); in queue_get_desc()
596 return n_desc; in queue_get_desc()
792 int n_desc; in hss_hdlc_txdone_irq() local
797 while ((n_desc = queue_get_desc(queue_ids[port->id].txdone, in hss_hdlc_txdone_irq()
802 desc = tx_desc_ptr(port, n_desc); in hss_hdlc_txdone_irq()
810 dev->name, port->tx_buff_tab[n_desc]); in hss_hdlc_txdone_irq()
812 free_buffer_irq(port->tx_buff_tab[n_desc]); in hss_hdlc_txdone_irq()
813 port->tx_buff_tab[n_desc] = NULL; in hss_hdlc_txdone_irq()
817 tx_desc_phys(port, n_desc), desc); in hss_hdlc_txdone_irq()