Lines Matching defs:total_len
534 total_len)
540 if (total_len <= 1)
543 DPRINTFN(10,("%s: %s: total_len=%d len=%d\n",
545 total_len, le16dec(buf)));
548 if (pktlen > total_len - ETHER_ALIGN)
549 pktlen = total_len - ETHER_ALIGN;
565 unsigned total_len, pkt_len;
568 total_len = roundup2(pkt_len, 64);
570 if ((unsigned)total_len > un->un_tx_bufsz) {
572 device_xname(un->un_dev), __func__, pkt_len, total_len));
584 if (total_len - pkt_len > 0)
585 memset(c->unc_buf + pkt_len, 0, total_len - pkt_len);
588 device_xname(un->un_dev), __func__, pkt_len, total_len));
590 return total_len;