Lines Matching defs:n_desc
584 u32 phys, tab_phys, n_desc;
593 n_desc = (phys - tab_phys) / sizeof(struct desc);
594 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS));
595 debug_desc(phys, &tab[n_desc]);
596 BUG_ON(tab[n_desc].next);
597 return n_desc;
788 int n_desc;
793 while ((n_desc = queue_get_desc(queue_ids[port->id].txdone,
798 desc = tx_desc_ptr(port, n_desc);
806 dev->name, port->tx_buff_tab[n_desc]);
808 free_buffer_irq(port->tx_buff_tab[n_desc]);
809 port->tx_buff_tab[n_desc] = NULL;
813 tx_desc_phys(port, n_desc), desc);