Lines Matching refs:nbd
203 int nbd; in bnx2x_free_tx_pkt() local
214 nbd = le16_to_cpu(tx_start_bd->nbd) - 1; in bnx2x_free_tx_pkt()
216 if ((nbd - 1) > (MAX_SKB_FRAGS + 2)) { in bnx2x_free_tx_pkt()
221 new_cons = nbd + tx_buf->first_bd; in bnx2x_free_tx_pkt()
227 --nbd; in bnx2x_free_tx_pkt()
232 --nbd; in bnx2x_free_tx_pkt()
240 --nbd; in bnx2x_free_tx_pkt()
250 while (nbd > 0) { in bnx2x_free_tx_pkt()
255 if (--nbd) in bnx2x_free_tx_pkt()
3747 int nbd, txq_index; in bnx2x_start_xmit() local
3922 nbd = 2; /* start_bd + pbd + frags (updated when pages are mapped) */ in bnx2x_start_xmit()
3969 nbd++; in bnx2x_start_xmit()
4048 nbd++; in bnx2x_start_xmit()
4087 first_bd->nbd = cpu_to_le16(nbd); in bnx2x_start_xmit()
4103 nbd++; in bnx2x_start_xmit()
4114 first_bd->nbd = cpu_to_le16(nbd); in bnx2x_start_xmit()
4121 if (TX_BD_POFF(bd_prod) < nbd) in bnx2x_start_xmit()
4122 nbd++; in bnx2x_start_xmit()
4152 DP(NETIF_MSG_TX_QUEUED, "doorbell: nbd %d bd %u\n", nbd, bd_prod); in bnx2x_start_xmit()
4168 txdata->tx_db.data.prod += nbd; in bnx2x_start_xmit()
4174 txdata->tx_bd_prod += nbd; in bnx2x_start_xmit()