Home
last modified time | relevance | path

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

12

/freebsd/sys/dev/rtwn/usb/
H A Drtwn_usb_rx.c110 int totlen) in rtwn_rx_copy_to_mbuf() argument
127 m = m_get2(totlen, M_NOWAIT, MT_DATA, M_PKTHDR); in rtwn_rx_copy_to_mbuf()
135 memcpy(mtod(m, uint8_t *), (uint8_t *)stat, totlen); in rtwn_rx_copy_to_mbuf()
136 m->m_pkthdr.len = m->m_len = totlen; in rtwn_rx_copy_to_mbuf()
157 int totlen, pktlen, infosz, min_len; in rtwn_rxeof_fragmented() local
188 totlen = sizeof(*stat) + infosz + pktlen; in rtwn_rxeof_fragmented()
191 data->m = m_getm(NULL, totlen, M_NOWAIT, MT_DATA); in rtwn_rxeof_fragmented()
210 min_len = min(totlen - uc->uc_rx_off, len); in rtwn_rxeof_fragmented()
215 if (uc->uc_rx_off == totlen) { in rtwn_rxeof_fragmented()
244 int totlen, pktlen, infosz; in rtwn_rxeof() local
[all …]
/freebsd/sys/netgraph/
H A Dng_bpf.c415 int totlen; in ng_bpf_rcvdata() local
424 totlen = m->m_pkthdr.len; in ng_bpf_rcvdata()
429 hip->stats.recvOctets += totlen; in ng_bpf_rcvdata()
432 if (totlen == 0) { in ng_bpf_rcvdata()
443 if (m->m_next != NULL && totlen > MHLEN) { in ng_bpf_rcvdata()
445 data = malloc(totlen, M_NETGRAPH_BPF, M_NOWAIT); in ng_bpf_rcvdata()
451 m_copydata(m, 0, totlen, (caddr_t)data); in ng_bpf_rcvdata()
455 NGI_M(item) = m = m_pullup(m, totlen); in ng_bpf_rcvdata()
467 len = (*(hip->jit_prog->func))(data, totlen, totlen); in ng_bpf_rcvdata()
471 len = bpf_filter(hip->prog->bpf_prog, data, totlen, totlen); in ng_bpf_rcvdata()
[all …]
H A Dng_tag.c511 int totlen; in ng_tag_rcvdata() local
517 totlen = m->m_pkthdr.len; in ng_tag_rcvdata()
520 hip->stats.recvOctets += totlen; in ng_tag_rcvdata()
551 hip->stats.recvMatchOctets += totlen; in ng_tag_rcvdata()
567 dhip->stats.xmitOctets += totlen; in ng_tag_rcvdata()
/freebsd/sbin/dhclient/
H A Dprivsep.c109 servername_len, optlen, prefix_len, totlen; in dispatch_imsg() local
149 totlen = sizeof(hdr) + sizeof(lease) + sizeof(size_t); in dispatch_imsg()
150 if (hdr.len < totlen) in dispatch_imsg()
155 totlen += filename_len + sizeof(size_t); in dispatch_imsg()
156 if (hdr.len < totlen || filename_len == SIZE_T_MAX) in dispatch_imsg()
166 totlen += servername_len + sizeof(size_t); in dispatch_imsg()
167 if (hdr.len < totlen || servername_len == SIZE_T_MAX) in dispatch_imsg()
178 totlen += prefix_len; in dispatch_imsg()
179 if (hdr.len < totlen || prefix_len == SIZE_T_MAX) in dispatch_imsg()
189 totlen += sizeof(optlen); in dispatch_imsg()
[all …]
/freebsd/sys/dev/rtwn/rtl8812a/usb/
H A Dr12au_rx.c80 r12au_align_rx(int totlen, int len) in r12au_align_rx() argument
82 if (totlen < len) in r12au_align_rx()
83 return (roundup2(totlen, 8)); in r12au_align_rx()
85 return (totlen); in r12au_align_rx()
/freebsd/usr.sbin/bhyve/
H A Dnet_backend_netmap.c177 ssize_t totlen = 0; in netmap_send() local
198 totlen += iov_frag_size; in netmap_send()
248 return (totlen); in netmap_send()
257 ssize_t totlen = 0; in netmap_peek_recvlen() local
262 totlen += slot->len; in netmap_peek_recvlen()
268 return (totlen); in netmap_peek_recvlen()
279 ssize_t totlen = 0; in netmap_recv() local
310 totlen += copylen; in netmap_recv()
321 totlen); in netmap_recv()
335 return (totlen); in netmap_recv()
/freebsd/sys/dev/usb/
H A Dusb_pf.c359 uint32_t totlen; in usbpf_xfer_precompute_size() local
368 totlen = USBPF_HDR_LEN + (USBPF_FRAME_HDR_LEN * nframes); in usbpf_xfer_precompute_size()
374 totlen += USBPF_FRAME_ALIGN( in usbpf_xfer_precompute_size()
379 totlen += USBPF_FRAME_ALIGN( in usbpf_xfer_precompute_size()
384 return (totlen); in usbpf_xfer_precompute_size()
394 uint32_t totlen; in usbpf_xfertap() local
408 totlen = usbpf_xfer_precompute_size(xfer, type); in usbpf_xfertap()
421 buf = ptr = malloc(totlen, M_TEMP, M_NOWAIT); in usbpf_xfertap()
432 up->up_totlen = htole32(totlen); in usbpf_xfertap()
528 bpf_tap_if(bus->ifp, buf, totlen); in usbpf_xfertap()
H A Dusb_util.c171 uint8_t totlen; in usb_make_str_desc() local
191 totlen = (max_len + 1) * 2; in usb_make_str_desc()
193 p->bLength = totlen; in usb_make_str_desc()
199 return (totlen); in usb_make_str_desc()
/freebsd/crypto/openssl/test/
H A Dtls13encryptiontest.c206 size_t totlen = 0; in multihexstr2buf() local
210 totlen += strlen(str[outer]); in multihexstr2buf()
211 if ((totlen & 1) != 0) in multihexstr2buf()
215 totlen /= 2; in multihexstr2buf()
216 outbuf = OPENSSL_malloc(totlen); in multihexstr2buf()
235 *len = totlen; in multihexstr2buf()
/freebsd/lib/libc/db/hash/
H A 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 …]
/freebsd/sys/kern/
H A Dsubr_memdesc.c527 size_t appended, totlen, todo; in plist_ext_mbuf() local
537 totlen = 0; in plist_ext_mbuf()
561 if (end <= pa && totlen != 0) { in plist_ext_mbuf()
574 totlen += todo; in plist_ext_mbuf()
594 *actual_len = totlen; in plist_ext_mbuf()
692 size_t totlen; in mbuf_subchain() local
700 totlen = m0->m_len - offset; in mbuf_subchain()
701 if (totlen > len) in mbuf_subchain()
702 totlen = len; in mbuf_subchain()
707 m->m_len = totlen; in mbuf_subchain()
[all …]
H A Dkern_alq.c318 int totlen; in alq_doio() local
326 totlen = 0; in alq_doio()
338 totlen = aiov[0].iov_len = alq->aq_writehead - alq->aq_writetail; in alq_doio()
341 totlen = aiov[0].iov_len = alq->aq_buflen - alq->aq_writetail - in alq_doio()
354 totlen = aiov[0].iov_len + aiov[1].iov_len; in alq_doio()
365 auio.uio_resid = totlen; in alq_doio()
387 alq->aq_writetail = (alq->aq_writetail + totlen + wrapearly) % in alq_doio()
389 alq->aq_freebytes += totlen + wrapearly; in alq_doio()
H A Duipc_mbuf.c1186 m_devget(char *buf, int totlen, int off, struct ifnet *ifp, in m_devget() argument
1196 while (totlen > 0) { in m_devget()
1198 if (totlen + off >= MINCLSIZE) { in m_devget()
1206 if (m && totlen + off + max_linkhdr <= MHLEN) { in m_devget()
1214 m->m_pkthdr.len = totlen; in m_devget()
1216 if (totlen + off >= MINCLSIZE) { in m_devget()
1233 m->m_len = len = min(totlen, len); in m_devget()
1241 totlen -= len; in m_devget()
1279 int totlen = 0; in m_copyback() local
1285 totlen += mlen; in m_copyback()
[all …]
/freebsd/sys/dev/rtwn/rtl8192c/usb/
H A Dr92cu_rx.c50 r92cu_align_rx(int totlen, int len) in r92cu_align_rx() argument
52 return (roundup2(totlen, 128)); in r92cu_align_rx()
/freebsd/sys/dev/le/
H A Dlance.c372 lance_get(struct lance_softc *sc, int boff, int totlen) in lance_get() argument
379 if (totlen <= ETHER_HDR_LEN || totlen > LEBLEN - ETHER_CRC_LEN) { in lance_get()
381 if_printf(ifp, "invalid packet size %d; dropping\n", totlen); in lance_get()
390 m0->m_pkthdr.len = totlen; in lance_get()
394 while (totlen > 0) { in lance_get()
395 if (totlen >= MINCLSIZE) { in lance_get()
408 m->m_len = len = min(totlen, len); in lance_get()
412 totlen -= len; in lance_get()
413 if (totlen > 0) { in lance_get()
/freebsd/usr.sbin/lpr/common_source/
H A Drmjob.c300 int i, elem, firstreq, niov, rem, totlen; in rmremote() local
349 for (totlen = i = 0; i < niov; i++) in rmremote()
350 totlen += (iov[i].iov_len = strlen(iov[i].iov_base)); in rmremote()
361 if (writev(rem, iov, niov) != totlen) in rmremote()
/freebsd/sys/security/audit/
H A Dbsm_token.c1284 u_int32_t totlen; in au_to_exec_strings() local
1288 totlen = 0; in au_to_exec_strings()
1292 totlen += strlen(p) + 1; in au_to_exec_strings()
1293 p = strs + totlen; in au_to_exec_strings()
1295 GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int32_t) + totlen); in au_to_exec_strings()
1298 ADD_STRING(dptr, strs, totlen); in au_to_exec_strings()
1339 size_t totlen = 0; in au_to_exec_args() local
1347 totlen += nextlen + 1; in au_to_exec_args()
1352 GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int32_t) + totlen); in au_to_exec_args()
1376 size_t totlen = 0; in au_to_exec_env() local
[all …]
/freebsd/sys/netpfil/pf/
H A Dpf_ioctl.c4582 size_t totlen; in pfioctl() local
4595 totlen = io->pfrio_size * sizeof(struct pfr_table); in pfioctl()
4598 error = copyin(io->pfrio_buffer, pfrts, totlen); in pfioctl()
4614 size_t totlen; in pfioctl() local
4627 totlen = io->pfrio_size * sizeof(struct pfr_table); in pfioctl()
4630 error = copyin(io->pfrio_buffer, pfrts, totlen); in pfioctl()
4646 size_t totlen; in pfioctl() local
4662 totlen = io->pfrio_size * sizeof(struct pfr_table); in pfioctl()
4675 error = copyout(pfrts, io->pfrio_buffer, totlen); in pfioctl()
4683 size_t totlen; in pfioctl() local
[all …]
/freebsd/crypto/openssl/ssl/record/
H A Drec_layer_s3.c695 size_t totlen = 0, len, wpinited = 0; in do_ssl3_write()
699 totlen += pipelens[j]; in do_ssl3_write()
706 return ssl3_write_pending(s, type, buf, totlen, written); in do_ssl3_write()
726 if (totlen == 0 && !create_empty_fragment) in do_ssl3_write()
864 totlen = 0; in do_ssl3_write()
925 SSL3_RECORD_set_input(thiswr, (unsigned char *)&buf[totlen]); in do_ssl3_write()
926 totlen += pipelens[j]; in do_ssl3_write()
1162 s->rlayer.wpend_tot = totlen;
1165 s->rlayer.wpend_ret = totlen; in ssl3_write_pending()
1168 return ssl3_write_pending(s, type, buf, totlen, writte in ssl3_write_pending()
680 size_t totlen = 0, len, wpinited = 0; do_ssl3_write() local
[all...]
/freebsd/tools/tools/net80211/wlaninject/
H A Dwlaninject.c122 int totlen; in inject() local
130 totlen = iov[0].iov_len + iov[1].iov_len; in inject()
135 if (rc != totlen) { in inject()
136 printf("Wrote only %d/%d\n", rc, totlen); in inject()
/freebsd/tools/tools/net80211/wesside/wesside/
H A Dwesside.c2294 static unsigned char *get_80211(unsigned char **data, int *totlen, int *plen) in get_80211() argument
2304 assert(*totlen); in get_80211()
2309 *totlen -= bpfh->bh_hdrlen; in get_80211()
2312 if ((int)bpfh->bh_caplen < *totlen) { in get_80211()
2317 *totlen -= offset - tot; /* take into account align bytes */ in get_80211()
2318 } else if ((int)bpfh->bh_caplen > *totlen) in get_80211()
2322 *totlen -= bpfh->bh_caplen; in get_80211()
2323 assert(*totlen >= 0); in get_80211()
2356 static int totlen = 0; in read_packet() local
2364 if (totlen == 0) { in read_packet()
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-isakmp.c905 u_int totlen; in ikev1_attrmap_print() local
909 totlen = 4; in ikev1_attrmap_print()
911 totlen = 4 + GET_BE_U_2(p + 2); in ikev1_attrmap_print()
913 if (ep2 < p + totlen) { in ikev1_attrmap_print()
936 ND_PRINT("len=%u value=", totlen - 4); in ikev1_attrmap_print()
937 if (!rawprint(ndo, (const uint8_t *)(p + 4), totlen - 4)) { in ikev1_attrmap_print()
943 return p + totlen; in ikev1_attrmap_print()
952 u_int totlen; in ikev1_attr_print() local
956 totlen = 4; in ikev1_attr_print()
958 totlen = 4 + GET_BE_U_2(p + 2); in ikev1_attr_print()
[all …]
/freebsd/sys/dev/hifn/
H A Dhifn7751.c1820 int totlen, len; in hifn_crypto() local
1836 totlen = cmd->src_mapsize; in hifn_crypto()
1854 if (totlen >= MINCLSIZE) { in hifn_crypto()
1863 totlen -= len; in hifn_crypto()
1867 while (totlen > 0) { in hifn_crypto()
1876 if (totlen >= MINCLSIZE) { in hifn_crypto()
1889 totlen -= len; in hifn_crypto()
2598 int totlen, i, u; in hifn_callback() local
2612 totlen = cmd->src_mapsize; in hifn_callback()
2614 if (totlen < m->m_len) { in hifn_callback()
[all …]
/freebsd/sys/amd64/include/pc/
H A Dbios.h72 size_t totlen; /* total length of BIOS string to copy */ member
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_pwd.c430 u16 totlen = 0; in eap_pwd_build_req() local
502 totlen = wpabuf_len(data->outbuf) + in eap_pwd_build_req()
506 "total length = %d", totlen); in eap_pwd_build_req()
517 (totlen ? sizeof(u16) : 0), in eap_pwd_build_req()
526 wpabuf_put_be16(req, totlen); in eap_pwd_build_req()

12