/netbsd-src/external/mpl/dhcp/dist/omapip/ |
H A D | trace.c | 519 unsigned paylen; in trace_get_next_packet() local 609 paylen = tpkt -> length; in trace_get_next_packet() 610 if (paylen % 8) in trace_get_next_packet() 611 paylen += 8 - (tpkt -> length % 8); in trace_get_next_packet() 614 if ((*buf == NULL) || (paylen > (*bufmax))) { in trace_get_next_packet() 617 (*bufmax) = ((paylen + 1023) & ~1023U); in trace_get_next_packet() 626 status = fread ((*buf), 1, paylen, traceinfile); in trace_get_next_packet() 627 if (status < paylen) { in trace_get_next_packet() 632 status, paylen); in trace_get_next_packet()
|
/netbsd-src/external/mpl/dhcp/dist/common/ |
H A D | upf.c | 303 unsigned paylen; local 325 from, length, &paylen, 1); 334 if (length < paylen) 338 memcpy (buf, &ibuf[bufix], paylen); 339 return paylen;
|
H A D | nit.c | 354 unsigned paylen; local 375 from, length, &paylen, 1); 384 if (length < paylen) 388 memcpy(buf, &ibuf[bufix], paylen); 389 return paylen;
|
H A D | lpf.c | 390 unsigned paylen; local 476 (unsigned)length, &paylen, csum_ready); 485 if (length < paylen) 489 memcpy(buf, &ibuf[bufix], paylen); 490 return paylen;
|
H A D | bpf.c | 458 unsigned paylen; local 540 from, hdr.bh_caplen, &paylen, 1); 563 memcpy(buf, interface->rbuf + interface->rbuf_offset, paylen); 566 return paylen;
|
H A D | dlpi.c | 647 unsigned paylen; local 708 from, length, &paylen, 1); 725 if (length < paylen) 729 memcpy(buf, &dbuf [bufix], paylen); 730 return paylen;
|
/netbsd-src/sys/net80211/ |
H A D | ieee80211_output.c | 839 paylen; /* payload length w/o overhead */ in ieee80211_compute_duration() local 845 paylen = len - roundup(hdrlen, sizeof(u_int32_t)); in ieee80211_compute_duration() 846 if (paylen < 0) { in ieee80211_compute_duration() 850 paylen = len - hdrlen; in ieee80211_compute_duration() 858 paylen -= cryptolen; in ieee80211_compute_duration() 862 npkt = paylen / fraglen; in ieee80211_compute_duration() 863 lastlen0 = paylen % fraglen; in ieee80211_compute_duration() 866 lastlen = paylen + overlen; in ieee80211_compute_duration() 879 firstlen = paylen + overlen; in ieee80211_compute_duration()
|
/netbsd-src/sys/dev/pci/ |
H A D | if_iwm.c | 4193 int err = 0, i, paylen, off, s; in iwm_send_cmd() local 4204 for (i = 0, paylen = 0; i < __arraycount(hcmd->len); i++) { in iwm_send_cmd() 4205 paylen += hcmd->len[i]; in iwm_send_cmd() 4237 if (paylen > datasz) { in iwm_send_cmd() 4239 size_t totlen = hdrlen + paylen; in iwm_send_cmd() 4240 if (paylen > IWM_MAX_CMD_PAYLOAD_SIZE) { in iwm_send_cmd() 4280 cmd->hdr_wide.length = htole16(paylen); in iwm_send_cmd() 4297 KASSERT(off == paylen); in iwm_send_cmd() 4303 | ((hdrlen + paylen) << 4)); in iwm_send_cmd() 4307 code, hdrlen + paylen, asyn in iwm_send_cmd() [all...] |
/netbsd-src/sys/dev/pci/ixgbe/ |
H A D | ix_txrx.c | 1007 u32 mss_l4len_idx = 0, paylen; in ixgbe_tso_setup() local 1065 paylen = mp->m_pkthdr.len - ehdrlen - ip_hlen - tcp_hlen; in ixgbe_tso_setup() 1096 *olinfo_status |= paylen << IXGBE_ADVTXD_PAYLEN_SHIFT; in ixgbe_tso_setup()
|
/netbsd-src/sys/dev/pci/igc/ |
H A D | if_igc.c | 3356 uint32_t ehlen, iphlen, tcphlen, paylen; in igc_tso_setup() 3415 paylen = mp->m_pkthdr.len - ehlen - iphlen - tcphlen; in igc_tso_setup() 3424 paylen = mp->m_pkthdr.len - ehlen - iphlen - tcphlen; in igc_tso_setup() 3450 *olinfo_status |= paylen << IGC_ADVTXD_PAYLEN_SHIFT; in igc_tso_setup()
|