| /mirbsd/src/sbin/dhclient/ |
| D | privsep.c | 98 servername_len, prefix_len, totlen; in dispatch_imsg() local 137 totlen = sizeof(hdr) + sizeof(lease) + sizeof(size_t); in dispatch_imsg() 138 if (hdr.len < totlen) in dispatch_imsg() 143 totlen += filename_len + sizeof(size_t); in dispatch_imsg() 144 if (hdr.len < totlen || filename_len == SIZE_T_MAX) in dispatch_imsg() 154 totlen += servername_len + sizeof(size_t); in dispatch_imsg() 155 if (hdr.len < totlen || servername_len == SIZE_T_MAX) in dispatch_imsg() 166 totlen += prefix_len; in dispatch_imsg() 167 if (hdr.len < totlen || prefix_len == SIZE_T_MAX) in dispatch_imsg() 177 totlen += sizeof(optlen); in dispatch_imsg() [all …]
|
| /mirbsd/src/usr.sbin/config/ |
| D | mkheaders.c | 132 int totlen, nlines; in emitopt() local 139 totlen = snprintf(new_contents, sizeof new_contents, in emitopt() 144 totlen = snprintf(new_contents, sizeof new_contents, in emitopt() 148 totlen = snprintf(new_contents, sizeof new_contents, in emitopt() 153 if (totlen < 0 || (size_t)totlen >= sizeof new_contents) { in emitopt()
|
| /mirbsd/src/sys/arch/sparc/dev/ |
| D | qec.c | 336 qec_get(ifp, buf, totlen) in qec_get() argument 339 int totlen; 348 m->m_pkthdr.len = totlen; 351 if (totlen >= MINCLSIZE) { 361 while (totlen > 0) { 370 if (top && totlen >= MINCLSIZE) { 375 m->m_len = len = min(totlen, len); 378 totlen -= len;
|
| /mirbsd/src/lib/libc/db/hash/ |
| D | hash_bigkey.c | 447 int mylen, totlen; in collect_data() local 455 totlen = len + mylen; in collect_data() 458 if ((hashp->tmp_buf = (char *)malloc(totlen)) == NULL) in collect_data() 478 if (!xbp || ((totlen = in collect_data() 487 return (totlen); in collect_data() 512 int mylen, totlen; in collect_key() local 520 totlen = len + mylen; in collect_key() 524 if ((hashp->tmp_key = (char *)malloc(totlen)) == NULL) in collect_key() 530 if (!xbp || ((totlen = in collect_key() 531 collect_key(hashp, xbp, totlen, val, set)) < 1)) in collect_key() [all …]
|
| /mirbsd/src/sys/netisdn/ |
| D | i4b_trace.c | 146 int totlen = len + sizeof(i4b_trace_hdr); in isdn_layer2_trace_ind() local 160 if(totlen > MCLBYTES) in isdn_layer2_trace_ind() 163 hdr->trunc = totlen - MCLBYTES; in isdn_layer2_trace_ind() 164 totlen = MCLBYTES; in isdn_layer2_trace_ind() 173 hdr->length = totlen; in isdn_layer2_trace_ind() 185 if(!(m = i4b_Bgetmbuf(totlen))) in isdn_layer2_trace_ind() 218 memcpy(&m->m_data[sizeof(i4b_trace_hdr)], buf, totlen-sizeof(i4b_trace_hdr)); in isdn_layer2_trace_ind()
|
| /mirbsd/src/sys/kern/ |
| D | uipc_mbuf.c | 420 int totlen = 0; local 426 totlen += mlen; 443 totlen += mlen; 455 out: if (((m = m0)->m_flags & M_PKTHDR) && (m->m_pkthdr.len < totlen)) 456 m->m_pkthdr.len = totlen; 865 m_devget(buf, totlen, off0, ifp, copy) in m_devget() argument 867 int totlen, off0; 878 epkt = cp + totlen; 885 totlen -= 2 * sizeof(u_int16_t); 891 m->m_pkthdr.len = totlen; [all …]
|
| D | kern_malloc.c | 572 int totlen; local 579 for (totlen = 0, i = 0; i < M_LAST; i++) { 581 totlen += strlen(memname[i]); 582 totlen++; 584 memall = malloc(totlen + M_LAST, M_SYSCTL, 588 totlen + M_LAST - siz, 597 for (i = 0; i < totlen; i++)
|
| /mirbsd/src/sys/dev/isa/ |
| D | if_el.c | 535 elget(sc, totlen) in elget() argument 537 int totlen; 548 m->m_pkthdr.len = totlen; 556 while (totlen > 0) { 565 if (totlen >= MINCLSIZE) { 570 m->m_len = len = min(totlen, len); 572 totlen -= len;
|
| D | if_fe.c | 2090 int totlen, len, wantbyte; local 2108 for (totlen = 0, mp = m; mp != 0; mp = mp->m_next) 2109 totlen += mp->m_len; 2111 if (totlen != m->m_pkthdr.len) 2113 sc->sc_dev.dv_xname, totlen, m->m_pkthdr.len); 2116 totlen = m->m_pkthdr.len; 2125 if (totlen > ETHER_MAX_LEN || totlen < ETHER_HDR_SIZE) { 2128 totlen < ETHER_HDR_SIZE ? "partial" : "big", totlen); 2142 outw(bmpr8, max(totlen, ETHER_MIN_LEN)); 2148 totlen = (totlen + 1) & ~1; [all …]
|
| D | if_eg.c | 719 egget(sc, buf, totlen) in egget() argument 722 int totlen; 732 m->m_pkthdr.len = totlen; 737 while (totlen > 0) { 746 if (totlen >= MINCLSIZE) { 751 m->m_len = len = min(totlen, len); 754 totlen -= len;
|
| D | if_hp.c | 832 hpget(buf, totlen, off0, ifp) in hpget() argument 834 int totlen, off0; 844 epkt = cp + totlen; 849 totlen -= 2 * sizeof(u_short); 855 m->m_pkthdr.len = totlen; 860 while (totlen > 0) { 869 len = min(totlen, epkt - cp); 891 totlen -= len;
|
| D | if_ef_isapnp.c | 125 struct mbuf *efget(struct ef_softc *, int totlen); 748 efget(sc, totlen) in efget() argument 750 int totlen; 762 m->m_pkthdr.len = totlen; 771 while (totlen > 0) { 781 if (top && totlen >= MINCLSIZE) { 786 len = min(totlen, len); 797 totlen -= len;
|
| D | if_ie.c | 1237 int len, totlen, resid; local 1241 totlen = ie_packet_len(sc); 1242 if (totlen <= 0) 1264 resid = totlen -= (thisrboff = sizeof *ehp); 1270 m->m_pkthdr.len = totlen; 1279 while (totlen > 0) { 1288 if (totlen >= MINCLSIZE) { 1293 m->m_len = len = min(totlen, len); 1294 totlen -= len;
|
| /mirbsd/src/sys/dev/ic/ |
| D | rln.c | 692 rlnget(sc, hdr, totlen) in rlnget() argument 695 int totlen; 723 totlen -= sizeof *hdr; 726 if (totlen <= 0) { 734 totlen -= sizeof hwhdr; 745 m->m_pkthdr.len = totlen; 756 while (totlen > 0) { 765 if (totlen >= MINCLSIZE) { 775 len = min(totlen, len); 779 if (totlen != len) [all …]
|
| D | am7990.c | 390 am7990_get(sc, boff, totlen) in am7990_get() argument 392 int boff, totlen; 402 m->m_pkthdr.len = totlen; 409 while (totlen > 0) { 418 if (totlen >= MINCLSIZE) { 428 m->m_len = len = min(totlen, len); 431 totlen -= len;
|
| D | tropic.c | 1475 tr_get(sc, totlen, ifp) in tr_get() argument 1477 int totlen; 1488 m0->m_pkthdr.len = totlen; 1492 while (totlen > 0) { 1493 if (totlen >= MINCLSIZE) { 1512 m->m_len = len = min(totlen, len); 1514 totlen -= len; 1515 if (totlen > 0) {
|
| D | elink3.c | 1369 epget(sc, totlen) in epget() argument 1371 int totlen; 1399 m->m_pkthdr.len = totlen; 1402 if (totlen >= MINCLSIZE) { 1421 while (totlen > 0) { 1437 if (top && totlen >= MINCLSIZE) { 1442 len = min(totlen, len); 1461 totlen -= len;
|
| D | i82596.c | 979 i82596_get(struct ie_softc *sc, int head, int totlen) in i82596_get() argument 992 resid = totlen; in i82596_get() 998 m0->m_pkthdr.len = totlen; in i82596_get() 1006 while (totlen > 0) { in i82596_get() 1007 if (totlen >= MINCLSIZE) { in i82596_get() 1022 m->m_len = len = min(totlen, len); in i82596_get() 1024 totlen -= len; in i82596_get() 1025 if (totlen > 0) { in i82596_get()
|
| /mirbsd/src/sys/dev/sbus/ |
| D | qe.c | 335 qe_get(sc, idx, totlen) in qe_get() argument 337 int idx, totlen; 351 m->m_pkthdr.len = totlen; 358 while (totlen > 0) { 367 if (top && totlen >= MINCLSIZE) { 372 m->m_len = len = min(totlen, len); 375 totlen -= len;
|
| D | be.c | 497 be_get(struct be_softc *sc, int idx, int totlen) in be_get() argument 511 m->m_pkthdr.len = totlen; in be_get() 519 while (totlen > 0) { in be_get() 528 if (top && totlen >= MINCLSIZE) { in be_get() 533 m->m_len = len = min(totlen, len); in be_get() 536 totlen -= len; in be_get()
|
| /mirbsd/src/sys/net/ |
| D | bpf.c | 1209 int totlen, curlen; local 1219 totlen = hdrlen + min(snaplen, pktlen); 1220 if (totlen > d->bd_bufsize) 1221 totlen = d->bd_bufsize; 1227 if (curlen + totlen > d->bd_bufsize) { 1258 (*cpfn)(pkt, (u_char *)hp + hdrlen, (hp->bh_caplen = totlen - hdrlen)); 1259 d->bd_slen = curlen + totlen;
|
| /mirbsd/src/sys/dev/usb/ |
| D | ehci.c | 1663 int s, len, value, index, l, totlen = 0; in ehci_root_ctrl_start() local 1702 totlen = 1; in ehci_root_ctrl_start() 1713 totlen = l = min(len, USB_DEVICE_DESCRIPTOR_SIZE); in ehci_root_ctrl_start() 1726 totlen = l = min(len, USB_DEVICE_DESCRIPTOR_SIZE); in ehci_root_ctrl_start() 1739 totlen = l = min(len, USB_CONFIG_DESCRIPTOR_SIZE); in ehci_root_ctrl_start() 1746 totlen += l; in ehci_root_ctrl_start() 1751 totlen += l; in ehci_root_ctrl_start() 1758 totlen = 1; in ehci_root_ctrl_start() 1761 totlen = ehci_str(buf, len, sc->sc_vendor); in ehci_root_ctrl_start() 1764 totlen = ehci_str(buf, len, "EHCI root hub"); in ehci_root_ctrl_start() [all …]
|
| D | uhci.c | 3111 int s, len, value, index, status, change, l, totlen = 0; in uhci_root_ctrl_start() local 3147 totlen = 1; in uhci_root_ctrl_start() 3158 totlen = l = min(len, USB_DEVICE_DESCRIPTOR_SIZE); in uhci_root_ctrl_start() 3167 totlen = l = min(len, USB_CONFIG_DESCRIPTOR_SIZE); in uhci_root_ctrl_start() 3172 totlen += l; in uhci_root_ctrl_start() 3177 totlen += l; in uhci_root_ctrl_start() 3184 totlen = 1; in uhci_root_ctrl_start() 3187 totlen = uhci_str(buf, len, sc->sc_vendor); in uhci_root_ctrl_start() 3190 totlen = uhci_str(buf, len, "UHCI root hub"); in uhci_root_ctrl_start() 3202 totlen = 1; in uhci_root_ctrl_start() [all …]
|
| D | ohci.c | 2398 int s, len, value, index, l, totlen = 0; in ohci_root_ctrl_start() local 2437 totlen = 1; in ohci_root_ctrl_start() 2448 totlen = l = min(len, USB_DEVICE_DESCRIPTOR_SIZE); in ohci_root_ctrl_start() 2457 totlen = l = min(len, USB_CONFIG_DESCRIPTOR_SIZE); in ohci_root_ctrl_start() 2462 totlen += l; in ohci_root_ctrl_start() 2467 totlen += l; in ohci_root_ctrl_start() 2474 totlen = 1; in ohci_root_ctrl_start() 2477 totlen = ohci_str(buf, len, sc->sc_vendor); in ohci_root_ctrl_start() 2480 totlen = ohci_str(buf, len, "OHCI root hub"); in ohci_root_ctrl_start() 2492 totlen = 1; in ohci_root_ctrl_start() [all …]
|
| /mirbsd/src/sys/dev/pci/ |
| D | hifn7751.c | 1428 int totlen, len; in hifn_crypto() local 1431 totlen = cmd->src_map->dm_mapsize; in hifn_crypto() 1445 if (totlen >= MINCLSIZE) { in hifn_crypto() 1450 totlen -= len; in hifn_crypto() 1454 while (totlen > 0) { in hifn_crypto() 1462 if (totlen >= MINCLSIZE) { in hifn_crypto() 1471 totlen -= len; in hifn_crypto() 2271 int totlen, i, u, ivlen; in hifn_callback() local 2287 totlen = cmd->src_map->dm_mapsize; in hifn_callback() 2289 if (totlen < m->m_len) { in hifn_callback() [all …]
|