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()
3750 int nbd, txq_index; in bnx2x_start_xmit() local
3925 nbd = 2; /* start_bd + pbd + frags (updated when pages are mapped) */ in bnx2x_start_xmit()
3972 nbd++; in bnx2x_start_xmit()
4051 nbd++; in bnx2x_start_xmit()
4090 first_bd->nbd = cpu_to_le16(nbd); in bnx2x_start_xmit()
4106 nbd++; in bnx2x_start_xmit()
4117 first_bd->nbd = cpu_to_le16(nbd); in bnx2x_start_xmit()
4124 if (TX_BD_POFF(bd_prod) < nbd) in bnx2x_start_xmit()
4125 nbd++; in bnx2x_start_xmit()
4155 DP(NETIF_MSG_TX_QUEUED, "doorbell: nbd %d bd %u\n", nbd, bd_prod); in bnx2x_start_xmit()
4171 txdata->tx_db.data.prod += nbd; in bnx2x_start_xmit()
4177 txdata->tx_bd_prod += nbd; in bnx2x_start_xmit()