Lines Matching defs:nsegs
644 write_tx_sgl(void *dst, struct mbuf *start, struct mbuf *stop, int nsegs, int n)
652 KASSERT(nsegs > 0, ("%s: nsegs 0", __func__));
656 V_ULPTX_NSGE(nsegs));
679 nsegs--;
686 KASSERT(nsegs == 0, ("%s: nsegs %d, start %p, stop %p",
687 __func__, nsegs, start, stop));
717 u_int plen, nsegs, credits, max_imm, max_nsegs, max_nsegs_1mbuf;
775 nsegs = 0;
787 nsegs += n;
790 /* This mbuf sent us _over_ the nsegs limit, back out */
791 if (plen > max_imm && nsegs > max_nsegs) {
792 nsegs -= n;
818 if (plen > max_imm && nsegs == max_nsegs) {
877 nsegs = 0;
884 ((3 * (nsegs - 1)) / 2 + ((nsegs - 1) & 1)) * 8;
895 write_tx_sgl(txwr + 1, sndptr, m, nsegs,
976 u_int plen, nsegs, credits, max_imm, max_nsegs, max_nsegs_1mbuf;
1015 nsegs = 0;
1020 nsegs += n;
1024 * This mbuf would send us _over_ the nsegs limit.
1027 if (plen > max_imm && nsegs > max_nsegs) {
1074 nsegs = 0;
1080 ((3 * (nsegs - 1)) / 2 + ((nsegs - 1) & 1)) * 8;
1091 write_tx_sgl(txwr + 1, sndptr, m, nsegs,