Home
last modified time | relevance | path

Searched refs:totlen (Results 1 – 25 of 37) sorted by relevance

12

/mirbsd/src/sbin/dhclient/
Dprivsep.c98 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/
Dmkheaders.c132 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/
Dqec.c336 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/
Dhash_bigkey.c447 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/
Di4b_trace.c146 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/
Duipc_mbuf.c420 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 …]
Dkern_malloc.c572 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/
Dif_el.c535 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;
Dif_fe.c2090 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 …]
Dif_eg.c719 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;
Dif_hp.c832 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;
Dif_ef_isapnp.c125 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;
Dif_ie.c1237 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/
Drln.c692 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 …]
Dam7990.c390 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;
Dtropic.c1475 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) {
Delink3.c1369 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;
Di82596.c979 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/
Dqe.c335 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;
Dbe.c497 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/
Dbpf.c1209 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/
Dehci.c1663 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 …]
Duhci.c3111 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 …]
Dohci.c2398 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/
Dhifn7751.c1428 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 …]

12