Lines Matching refs:nbd
73 int nbd; in bnx2x_free_tx_pkt() local
85 nbd = le16_to_cpu(tx_start_bd->nbd) - 1; in bnx2x_free_tx_pkt()
87 if ((nbd - 1) > (MAX_SKB_FRAGS + 2)) { in bnx2x_free_tx_pkt()
92 new_cons = nbd + tx_buf->first_bd; in bnx2x_free_tx_pkt()
98 --nbd; in bnx2x_free_tx_pkt()
105 --nbd; in bnx2x_free_tx_pkt()
115 while (nbd > 0) { in bnx2x_free_tx_pkt()
120 if (--nbd) in bnx2x_free_tx_pkt()
2365 u16 bd_prod, int nbd) in bnx2x_tx_split() argument
2373 h_tx_bd->nbd = cpu_to_le16(nbd); in bnx2x_tx_split()
2377 h_tx_bd->nbytes, h_tx_bd->addr_hi, h_tx_bd->addr_lo, h_tx_bd->nbd); in bnx2x_tx_split()
2688 int nbd, txq_index, fp_index, txdata_index; in bnx2x_start_xmit() local
2871 nbd = 2; /* start_bd + pbd + frags (updated when pages are mapped) */ in bnx2x_start_xmit()
2878 le16_to_cpu(tx_start_bd->nbd), le16_to_cpu(tx_start_bd->nbytes), in bnx2x_start_xmit()
2894 bd_prod, ++nbd); in bnx2x_start_xmit()
2927 first_bd->nbd = cpu_to_le16(nbd); in bnx2x_start_xmit()
2943 nbd++; in bnx2x_start_xmit()
2954 first_bd->nbd = cpu_to_le16(nbd); in bnx2x_start_xmit()
2961 if (TX_BD_POFF(bd_prod) < nbd) in bnx2x_start_xmit()
2962 nbd++; in bnx2x_start_xmit()
2988 DP(NETIF_MSG_TX_QUEUED, "doorbell: nbd %d bd %u\n", nbd, bd_prod); in bnx2x_start_xmit()
3002 txdata->tx_db.data.prod += nbd; in bnx2x_start_xmit()
3009 txdata->tx_bd_prod += nbd; in bnx2x_start_xmit()