Lines Matching refs:n_desc
438 u32 phys, tab_phys, n_desc;
447 n_desc = (phys - tab_phys) / sizeof(struct desc);
448 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS));
449 debug_desc(phys, &tab[n_desc]);
450 BUG_ON(tab[n_desc].next);
451 return n_desc;
607 u32 npe_id, n_desc;
617 n_desc = (phys - tx_desc_phys(port, 0)) / sizeof(struct desc);
618 BUG_ON(n_desc >= TX_DESCS);
619 desc = tx_desc_ptr(port, n_desc);
622 if (port->tx_buff_tab[n_desc]) { /* not the draining packet */
629 port->netdev->name, port->tx_buff_tab[n_desc]);
631 free_buffer_irq(port->tx_buff_tab[n_desc]);
632 port->tx_buff_tab[n_desc] = NULL;