Searched refs:totlen (Results 1 - 25 of 44) sorted by relevance

12

/freebsd-current/sys/dev/rtwn/rtl8812a/usb/
H A Dr12au_rx.c80 r12au_align_rx(int totlen, int len) argument
82 if (totlen < len)
83 return (roundup2(totlen, 8));
85 return (totlen);
/freebsd-current/sbin/dhclient/
H A Dprivsep.c109 servername_len, optlen, prefix_len, totlen; local
149 totlen = sizeof(hdr) + sizeof(lease) + sizeof(size_t);
150 if (hdr.len < totlen)
155 totlen += filename_len + sizeof(size_t);
156 if (hdr.len < totlen || filename_len == SIZE_T_MAX)
166 totlen += servername_len + sizeof(size_t);
167 if (hdr.len < totlen || servername_len == SIZE_T_MAX)
178 totlen += prefix_len;
179 if (hdr.len < totlen || prefix_len == SIZE_T_MAX)
189 totlen
[all...]
/freebsd-current/sys/dev/rtwn/rtl8192c/usb/
H A Dr92cu_rx.c50 r92cu_align_rx(int totlen, int len) argument
52 return (roundup2(totlen, 128));
/freebsd-current/sys/dev/rtwn/usb/
H A Drtwn_usb_rx.c110 int totlen)
127 m = m_get2(totlen, M_NOWAIT, MT_DATA, M_PKTHDR);
135 memcpy(mtod(m, uint8_t *), (uint8_t *)stat, totlen); local
136 m->m_pkthdr.len = m->m_len = totlen;
157 int totlen, pktlen, infosz, min_len; local
188 totlen = sizeof(*stat) + infosz + pktlen;
191 data->m = m_getm(NULL, totlen, M_NOWAIT, MT_DATA);
210 min_len = min(totlen - uc->uc_rx_off, len);
215 if (uc->uc_rx_off == totlen) {
244 int totlen, pktle local
109 rtwn_rx_copy_to_mbuf(struct rtwn_softc *sc, struct rtwn_rx_stat_common *stat, int totlen) argument
[all...]
/freebsd-current/sys/netgraph/
H A Dng_bpf.c415 int totlen; local
424 totlen = m->m_pkthdr.len;
427 /* atomic_add_int64(&hip->stats.recvOctets, totlen); */
429 hip->stats.recvOctets += totlen;
431 /* Don't call bpf_filter() with totlen == 0! */
432 if (totlen == 0) {
443 if (m->m_next != NULL && totlen > MHLEN) {
445 data = malloc(totlen, M_NETGRAPH_BPF, M_NOWAIT);
451 m_copydata(m, 0, totlen, (caddr_t)data);
455 NGI_M(item) = m = m_pullup(m, totlen);
[all...]
H A Dng_tag.c511 int totlen; local
517 totlen = m->m_pkthdr.len;
520 hip->stats.recvOctets += totlen;
551 hip->stats.recvMatchOctets += totlen;
567 dhip->stats.xmitOctets += totlen;
/freebsd-current/usr.sbin/bhyve/
H A Dnet_backend_netmap.c177 ssize_t totlen = 0; local
198 totlen += iov_frag_size;
248 return (totlen);
257 ssize_t totlen = 0; local
262 totlen += slot->len;
268 return (totlen);
279 ssize_t totlen = 0; local
310 totlen += copylen;
321 totlen);
335 return (totlen);
[all...]
/freebsd-current/sys/dev/usb/
H A Dusb_util.c171 uint8_t totlen; local
191 totlen = (max_len + 1) * 2;
193 p->bLength = totlen;
199 return (totlen);
H A Dusb_pf.c365 uint32_t totlen; local
374 totlen = USBPF_HDR_LEN + (USBPF_FRAME_HDR_LEN * nframes);
380 totlen += USBPF_FRAME_ALIGN(
385 totlen += USBPF_FRAME_ALIGN(
390 return (totlen);
400 uint32_t totlen; local
414 totlen = usbpf_xfer_precompute_size(xfer, type);
427 buf = ptr = malloc(totlen, M_TEMP, M_NOWAIT);
438 up->up_totlen = htole32(totlen);
534 bpf_tap_if(bus->ifp, buf, totlen);
[all...]
/freebsd-current/crypto/openssl/test/
H A Dtls13encryptiontest.c206 size_t totlen = 0; local
210 totlen += strlen(str[outer]);
211 if ((totlen & 1) != 0)
215 totlen /= 2;
216 outbuf = OPENSSL_malloc(totlen);
235 *len = totlen;
/freebsd-current/lib/libc/db/hash/
H A Dhash_bigkey.c447 int mylen, totlen; local
455 totlen = len + mylen;
458 if ((hashp->tmp_buf = (char *)malloc(totlen)) == NULL)
478 if (!xbp || ((totlen =
487 return (totlen);
512 int mylen, totlen; local
520 totlen = len + mylen;
524 if ((hashp->tmp_key = (char *)malloc(totlen)) == NULL)
530 if (!xbp || ((totlen =
531 collect_key(hashp, xbp, totlen, va
[all...]
/freebsd-current/sys/amd64/include/pc/
H A Dbios.h72 size_t totlen; /* total length of BIOS string to copy */ member in struct:bios_oem_signature
/freebsd-current/usr.sbin/lpr/common_source/
H A Drmjob.c300 int i, elem, firstreq, niov, rem, totlen; local
349 for (totlen = i = 0; i < niov; i++)
350 totlen += (iov[i].iov_len = strlen(iov[i].iov_base));
361 if (writev(rem, iov, niov) != totlen)
/freebsd-current/sys/dev/le/
H A Dlance.c374 lance_get(struct lance_softc *sc, int boff, int totlen) argument
381 if (totlen <= ETHER_HDR_LEN || totlen > LEBLEN - ETHER_CRC_LEN) {
383 if_printf(ifp, "invalid packet size %d; dropping\n", totlen);
392 m0->m_pkthdr.len = totlen;
396 while (totlen > 0) {
397 if (totlen >= MINCLSIZE) {
410 m->m_len = len = min(totlen, len);
414 totlen -= len;
415 if (totlen >
[all...]
/freebsd-current/sys/kern/
H A Dsubr_memdesc.c527 size_t appended, totlen, todo; local
537 totlen = 0;
561 if (end <= pa && totlen != 0) {
574 totlen += todo;
594 *actual_len = totlen;
692 size_t totlen; local
700 totlen = m0->m_len - offset;
701 if (totlen > len)
702 totlen = len;
707 m->m_len = totlen;
[all...]
H A Dkern_alq.c318 int totlen; local
326 totlen = 0;
338 totlen = aiov[0].iov_len = alq->aq_writehead - alq->aq_writetail;
341 totlen = aiov[0].iov_len = alq->aq_buflen - alq->aq_writetail -
354 totlen = aiov[0].iov_len + aiov[1].iov_len;
365 auio.uio_resid = totlen;
387 alq->aq_writetail = (alq->aq_writetail + totlen + wrapearly) %
389 alq->aq_freebytes += totlen + wrapearly;
H A Duipc_mbuf.c1183 m_devget(char *buf, int totlen, int off, struct ifnet *ifp, argument
1193 while (totlen > 0) {
1195 if (totlen + off >= MINCLSIZE) {
1203 if (m && totlen + off + max_linkhdr <= MHLEN) {
1211 m->m_pkthdr.len = totlen;
1213 if (totlen + off >= MINCLSIZE) {
1230 m->m_len = len = min(totlen, len);
1238 totlen -= len;
1276 int totlen = 0; local
1282 totlen
[all...]
/freebsd-current/sys/security/audit/
H A Dbsm_token.c1284 u_int32_t totlen; local
1288 totlen = 0;
1292 totlen += strlen(p) + 1;
1293 p = strs + totlen;
1295 GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int32_t) + totlen);
1298 ADD_STRING(dptr, strs, totlen);
1339 size_t totlen = 0; local
1347 totlen += nextlen + 1;
1352 GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int32_t) + totlen);
1376 size_t totlen local
[all...]
/freebsd-current/sys/netpfil/pf/
H A Dpf_ioctl.c4479 size_t totlen; local
4492 totlen = io->pfrio_size * sizeof(struct pfr_table);
4495 error = copyin(io->pfrio_buffer, pfrts, totlen);
4511 size_t totlen; local
4524 totlen = io->pfrio_size * sizeof(struct pfr_table);
4527 error = copyin(io->pfrio_buffer, pfrts, totlen);
4543 size_t totlen; local
4559 totlen = io->pfrio_size * sizeof(struct pfr_table);
4572 error = copyout(pfrts, io->pfrio_buffer, totlen);
4580 size_t totlen; local
4620 size_t totlen; local
4658 size_t totlen; local
4711 size_t totlen; local
4745 size_t totlen; local
4779 size_t totlen, count; local
4818 size_t totlen; local
4846 size_t totlen; local
4874 size_t totlen; local
4908 size_t totlen; local
4942 size_t totlen; local
4990 size_t totlen; local
5073 size_t totlen; local
5156 size_t totlen; local
[all...]
/freebsd-current/crypto/openssl/ssl/record/
H A Drec_layer_s3.c680 size_t totlen = 0, len, wpinited = 0; local
684 totlen += pipelens[j];
691 return ssl3_write_pending(s, type, buf, totlen, written);
711 if (totlen == 0 && !create_empty_fragment)
849 totlen = 0;
910 SSL3_RECORD_set_input(thiswr, (unsigned char *)&buf[totlen]);
911 totlen += pipelens[j];
1147 s->rlayer.wpend_tot = totlen;
1150 s->rlayer.wpend_ret = totlen;
1153 return ssl3_write_pending(s, type, buf, totlen, writte
[all...]
/freebsd-current/tools/tools/net80211/wlaninject/
H A Dwlaninject.c122 int totlen; local
130 totlen = iov[0].iov_len + iov[1].iov_len;
135 if (rc != totlen) {
136 printf("Wrote only %d/%d\n", rc, totlen);
/freebsd-current/contrib/tcpdump/
H A Dprint-isakmp.c914 u_int totlen; local
918 totlen = 4;
920 totlen = 4 + GET_BE_U_2(p + 2);
922 if (ep2 < p + totlen) {
945 ND_PRINT("len=%u value=", totlen - 4);
946 if (!rawprint(ndo, (const uint8_t *)(p + 4), totlen - 4)) {
952 return p + totlen;
961 u_int totlen; local
965 totlen = 4;
967 totlen
[all...]
/freebsd-current/tools/tools/net80211/wesside/wesside/
H A Dwesside.c2294 static unsigned char *get_80211(unsigned char **data, int *totlen, int *plen) argument
2304 assert(*totlen);
2309 *totlen -= bpfh->bh_hdrlen;
2312 if ((int)bpfh->bh_caplen < *totlen) {
2317 *totlen -= offset - tot; /* take into account align bytes */
2318 } else if ((int)bpfh->bh_caplen > *totlen)
2322 *totlen -= bpfh->bh_caplen;
2323 assert(*totlen >= 0);
2356 static int totlen = 0; local
2364 if (totlen
[all...]
/freebsd-current/sys/dev/hifn/
H A Dhifn7751.c1822 int totlen, len; local
1838 totlen = cmd->src_mapsize;
1856 if (totlen >= MINCLSIZE) {
1865 totlen -= len;
1869 while (totlen > 0) {
1878 if (totlen >= MINCLSIZE) {
1891 totlen -= len;
2600 int totlen, i, u; local
2614 totlen = cmd->src_mapsize;
2616 if (totlen <
[all...]
/freebsd-current/contrib/wpa/src/eap_server/
H A Deap_server_pwd.c419 u16 totlen = 0; local
491 totlen = wpabuf_len(data->outbuf) +
495 "total length = %d", totlen);
506 (totlen ? sizeof(u16) : 0),
515 wpabuf_put_be16(req, totlen);

Completed in 285 milliseconds

12