Lines Matching refs:n_desc
583 u32 phys, tab_phys, n_desc; in queue_get_desc() local
593 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc()
594 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); in queue_get_desc()
595 debug_desc(phys, &tab[n_desc]); in queue_get_desc()
596 BUG_ON(tab[n_desc].next); in queue_get_desc()
597 return n_desc; in queue_get_desc()
793 int n_desc; in hss_hdlc_txdone_irq() local
798 while ((n_desc = queue_get_desc(queue_ids[port->id].txdone, in hss_hdlc_txdone_irq()
803 desc = tx_desc_ptr(port, n_desc); in hss_hdlc_txdone_irq()
811 dev->name, port->tx_buff_tab[n_desc]); in hss_hdlc_txdone_irq()
813 free_buffer_irq(port->tx_buff_tab[n_desc]); in hss_hdlc_txdone_irq()
814 port->tx_buff_tab[n_desc] = NULL; in hss_hdlc_txdone_irq()
818 tx_desc_phys(port, n_desc), desc); in hss_hdlc_txdone_irq()