Searched refs:total_len (Results 26 - 50 of 101) sorted by relevance

12345

/freebsd-current/contrib/libarchive/libarchive/
H A Dxxhash.c327 U64 total_len; member in struct:XXH_state32_t
355 state->total_len = 0;
379 state->total_len += len;
454 if (state->total_len >= 16)
463 h32 += (U32) state->total_len;
/freebsd-current/contrib/wpa/src/p2p/
H A Dp2p_build.c479 size_t *total_len, u8 *attr_len)
490 if (info_len + *total_len > MAX_SVC_ADV_LEN) {
588 *total_len += info_len;
589 WPA_PUT_LE16(attr_len, (u16) *total_len);
600 size_t total_len; local
623 total_len = 0;
627 WPA_PUT_LE16(attr_len, (u16) total_len);
634 &ie_len, &pos, &total_len, attr_len);
638 for (adv = adv_list; adv && total_len <= MAX_SVC_ADV_LEN;
651 &total_len,
476 p2p_buf_add_service_info(struct wpabuf *buf, struct p2p_data *p2p, u32 adv_id, u16 config_methods, const char *svc_name, u8 **ie_len, u8 **pos, size_t *total_len, u8 *attr_len) argument
[all...]
/freebsd-current/crypto/heimdal/lib/hx509/
H A Dname.c122 append_string(char **str, size_t *total_len, const char *ss, argument
132 s = realloc(*str, len + *total_len + 1);
135 memcpy(s + *total_len, qs, len);
138 s[*total_len + len] = '\0';
140 *total_len += len;
203 size_t total_len = 0; local
285 append_string(str, &total_len, oidname, strlen(oidname), 0);
287 append_string(str, &total_len, "=", 1, 0);
288 append_string(str, &total_len, ss, len, 1);
295 append_string(str, &total_len, "
[all...]
/freebsd-current/contrib/ntp/sntp/libevent/
H A Dbuffer.c326 buf->total_len += chain->off;
487 new_size = buffer->total_len;
613 result = (buffer->total_len);
783 buf->total_len += added;
806 dst->total_len = 0;
871 src->total_len = 0;
885 dst->total_len = src->total_len;
904 dst->total_len += src->total_len;
[all...]
H A Devbuffer-internal.h102 size_t total_len; member in struct:evbuffer
/freebsd-current/sys/contrib/dev/athk/ath11k/
H A Dwow.c159 int total_len = old->pkt_offset + old->pattern_len; local
209 if (total_len > ETH_HLEN)
211 else if (total_len > offsetof(struct ethhdr, h_proto))
212 hdr_80211_end_offset = hdr_len + rfc_len + total_len - ETH_HLEN;
213 else if (total_len > ETH_ALEN)
214 hdr_80211_end_offset = total_len - ETH_ALEN +
217 hdr_80211_end_offset = total_len +
229 if (total_len > ETH_HLEN) {
233 total_len - ETH_HLEN);
236 total_len
[all...]
/freebsd-current/contrib/libevent/
H A Dbuffer.c326 buf->total_len += chain->off;
487 new_size = buffer->total_len;
613 result = (buffer->total_len);
783 buf->total_len += added;
806 dst->total_len = 0;
871 src->total_len = 0;
885 dst->total_len = src->total_len;
904 dst->total_len += src->total_len;
[all...]
H A Devbuffer-internal.h102 size_t total_len; member in struct:evbuffer
/freebsd-current/contrib/nvi/common/
H A Dcut.c284 text_init(SCR *sp, const CHAR_T *p, size_t len, size_t total_len) argument
292 if ((tp->lb_len = total_len * sizeof(CHAR_T)) != 0) {
/freebsd-current/sys/dev/cxgbe/cxgbei/
H A Dcxgbei.c294 struct sockbuf *sb, u_int total_len)
313 if (total_len < header_len) {
314 ICL_WARN("truncated pre-offload PDU with len %u", total_len);
340 if (total_len < pdu_len) {
341 ICL_WARN("truncated pre-offload PDU len %u vs %u", total_len,
412 u_int total_len; local
421 total_len = sbused(sb);
424 ip = parse_pdu(so, toep, icc, sb, total_len);
293 parse_pdu(struct socket *so, struct toepcb *toep, struct icl_cxgbei_conn *icc, struct sockbuf *sb, u_int total_len) argument
/freebsd-current/share/examples/scsi_target/
H A Dscsi_cmds.c561 a_descr->total_len = count * sector_size;
562 if (a_descr->total_len == 0) {
592 ctio->dxfer_len = a_descr->total_len - a_descr->targ_req;
595 ctio->dxfer_len = a_descr->total_len - a_descr->init_req;
634 if (a_descr->targ_req == a_descr->total_len) {
642 if (a_descr->targ_ack == a_descr->total_len)
645 if (a_descr->init_req == a_descr->total_len &&
692 if (a_descr->init_req == a_descr->total_len)
/freebsd-current/sys/dev/rl/
H A Dif_rl.c1118 int total_len = 0; local
1160 total_len = rxstat >> 16;
1161 if (total_len == RL_RXSTAT_UNFINISHED)
1165 total_len < ETHER_MIN_LEN ||
1166 total_len > ETHER_MAX_LEN + ETHER_VLAN_ENCAP_LEN) {
1174 rx_bytes += total_len + 4;
1183 total_len -= ETHER_CRC_LEN;
1198 if (total_len > wrap) {
1199 m = m_devget(rxbufpos, total_len, RL_ETHER_ALIGN, ifp,
1202 m_copyback(m, wrap, total_len
[all...]
/freebsd-current/sys/dev/my/
H A Dif_my.c1101 int total_len = 0; local
1117 total_len = (rxstat & MY_FLNGMASK) >> MY_FLNGShift;
1118 total_len -= ETHER_CRC_LEN;
1120 if (total_len < MINCLSIZE) {
1122 total_len, 0, ifp, NULL);
1143 m->m_pkthdr.len = m->m_len = total_len;
1321 int total_len; local
1326 total_len = 0;
1328 total_len += m->m_len;
1354 total_len
[all...]
/freebsd-current/sys/net/
H A Dslcompress.c443 * Uncompress a packet of total length total_len. The first buflen
450 sl_uncompress_tcp_core(u_char *buf, int buflen, int total_len, u_int type, argument
568 total_len += cs->cs_hlen - vjlen;
569 cs->cs_ip.ip_len = htons(total_len);
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/common/
H A Dxxhash.h265 unsigned long long total_len; member in struct:XXH64_state_s
/freebsd-current/sys/dev/usb/net/
H A Dif_kue.c585 int total_len; local
604 total_len = (temp_len + (64 - (temp_len % 64)));
615 usbd_frame_zero(pc, temp_len, total_len - temp_len);
616 usbd_xfer_set_frame_len(xfer, 0, total_len);
/freebsd-current/sys/cam/ctl/
H A Dctl_tpc.c456 int alloc_len, total_len; local
464 total_len = sizeof(*data) + 4;
467 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO);
470 ctsio->kern_data_len = min(total_len, alloc_len);
525 int alloc_len, total_len; local
552 total_len = sizeof(*data);
555 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO);
558 ctsio->kern_data_len = min(total_len, alloc_len);
595 int alloc_len, total_len; local
620 total_len
655 int alloc_len, total_len; local
2344 int alloc_len, total_len, token_len; local
2428 int alloc_len, total_len, tokens, i; local
[all...]
/freebsd-current/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c1256 uint_t aad_len = 0, total_len = 0; local
1357 total_len += crypt_len;
1365 total_len += crypt_len;
1379 total_len += crypt_len;
1385 total_len += crypt_len;
1400 *enc_len = total_len;
1423 uint_t aad_len = 0, total_len = 0; local
1530 total_len += crypt_len;
1550 *enc_len = total_len;
/freebsd-current/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c1410 uint_t aad_len = 0, nr_iovecs = 0, total_len = 0; local
1534 total_len += crypt_len;
1545 total_len += crypt_len;
1561 total_len += crypt_len;
1569 total_len += crypt_len;
1574 *enc_len = total_len;
1621 uint_t aad_len = 0, nr_iovecs = 0, total_len = 0; local
1752 total_len += crypt_len;
1762 *enc_len = total_len;
/freebsd-current/contrib/libpcap/
H A Dpcap-dpdk.c278 uint32_t total_len = 0; local
279 while (mbuf && (total_len+mbuf->data_len) < len ){
280 rte_memcpy(data+total_len, rte_pktmbuf_mtod(mbuf,void *),mbuf->data_len);
281 total_len+=mbuf->data_len;
284 return total_len;
/freebsd-current/sys/dev/liquidio/base/
H A Dlio_droq.c517 lio_droq_get_bufcount(uint32_t buf_size, uint32_t total_len) argument
520 return ((total_len + buf_size - 1) / buf_size);
593 uint32_t pkt, pkt_count, total_len = 0; local
623 total_len += (uint32_t)info->length;
710 droq->stats.bytes_received += total_len;
/freebsd-current/sys/contrib/dev/rtw89/
H A Dpci.h799 void *txaddr_info_addr, u32 total_len,
1072 void *txaddr_info_addr, u32 total_len,
1075 void *txaddr_info_addr, u32 total_len,
1092 void *txaddr_info_addr, u32 total_len,
1097 return info->fill_txaddr_info(rtwdev, txaddr_info_addr, total_len,
1091 rtw89_chip_fill_txaddr_info(struct rtw89_dev *rtwdev, void *txaddr_info_addr, u32 total_len, dma_addr_t dma, u8 *add_info_nr) argument
/freebsd-current/contrib/wpa/wpa_supplicant/
H A Drobust_av.c707 static int write_ipv4_info(char *pos, int total_len, argument
713 rem_len = total_len;
772 return total_len - rem_len;
776 static int write_ipv6_info(char *pos, int total_len, argument
782 rem_len = total_len;
842 return total_len - rem_len;
/freebsd-current/contrib/wpa/src/ap/
H A Dbeacon.c1293 size_t total_len, buf_len; local
1295 total_len = 24 + 2 + 12;
1302 total_len += 4 + 1 + 2;
1307 total_len += sizeof(fd_rsn_info);
1313 total_len += 3;
1316 total_len += hostapd_eid_rnr_len(hapd, WLAN_FC_STYPE_ACTION);
1320 total_len += buf_len;
1322 head = os_zalloc(total_len);
/freebsd-current/sys/contrib/dev/iwlwifi/queue/
H A Dtx.c341 unsigned int snap_ip_tcp_hdrlen, ip_hdrlen, total_len, hdr_room; local
353 total_len = skb->len - snap_ip_tcp_hdrlen - hdr_len;
357 hdr_room = DIV_ROUND_UP(total_len, mss) *
382 while (total_len) {
384 unsigned int data_left = min_t(unsigned int, mss, total_len);
389 total_len -= data_left;
408 tso_build_hdr(skb, hdr_page->pos, &tso, data_left, !total_len);

Completed in 190 milliseconds

12345