Home
last modified time | relevance | path

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

12

/external/u-boot/fs/btrfs/
Dcompression.c15 u32 tot_len, in_len, res; in decompress_lzo() local
22 tot_len = le32_to_cpu(get_unaligned((u32 *)cbuf)); in decompress_lzo()
25 tot_len -= 4; in decompress_lzo()
27 if (tot_len == 0 && dlen) in decompress_lzo()
29 if (tot_len < 4) in decompress_lzo()
34 while (tot_len > 4) { in decompress_lzo()
39 if (in_len > clen || tot_len < 4 + in_len) in decompress_lzo()
42 tot_len -= 4 + in_len; in decompress_lzo()
/external/wpa_supplicant_8/src/ap/
Ddhcp_snoop.c42 u16 tot_len; in handle_dhcp() local
49 tot_len = ntohs(b->iph.tot_len); in handle_dhcp()
50 if (tot_len > (unsigned int) (len - ETH_HLEN)) in handle_dhcp()
57 end = (const u8 *) b + tot_len; in handle_dhcp()
Dfils_hlp.c264 iph->tot_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos)); in fils_dhcp_handler()
514 u16 tot_len; in fils_process_hlp_ip() local
524 tot_len = ntohs(iph->tot_len); in fils_process_hlp_ip()
525 if (tot_len > len) in fils_process_hlp_ip()
/external/u-boot/lib/libavb/
Davb_sha.h34 uint32_t tot_len; member
43 uint32_t tot_len; member
Davb_sha512.c125 ctx->tot_len = 0; in avb_sha512_init()
322 ctx->tot_len += (block_nb + 1) << 7; in avb_sha512_update()
337 len_b = (ctx->tot_len + ctx->len) << 3; in avb_sha512_final()
Davb_sha256.c94 ctx->tot_len = 0; in avb_sha256_init()
324 ctx->tot_len += (block_nb + 1) << 6; in avb_sha256_update()
338 len_b = (ctx->tot_len + ctx->len) << 3; in avb_sha256_final()
/external/avb/libavb/
Davb_sha.h53 uint64_t tot_len; member
62 uint64_t tot_len; member
Davb_sha256.c133 ctx->tot_len = 0; in avb_sha256_init()
363 ctx->tot_len += (block_nb + 1) << 6; in avb_sha256_update()
377 len_b = (ctx->tot_len + ctx->len) << 3; in avb_sha256_final()
Davb_sha512.c152 ctx->tot_len = 0; in avb_sha512_init()
349 ctx->tot_len += (block_nb + 1) << 7; in avb_sha512_update()
364 len_b = (ctx->tot_len + ctx->len) << 3; in avb_sha512_final()
/external/toolchain-utils/deprecated/
Dcompare_benchmarks.py82 tot_len = len(hdr)
83 PrintDash(tot_len * 15)
90 PrintDash(tot_len * 15)
/external/vboot_reference/firmware/lib/cryptolib/include/
Dsha.h41 uint32_t tot_len; member
49 uint32_t tot_len; member
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c826 u16 tot_len = 0; in eap_pwd_process() local
910 tot_len = WPA_GET_BE16(pos); in eap_pwd_process()
912 "total length = %d", tot_len); in eap_pwd_process()
913 if (tot_len > 15000) in eap_pwd_process()
921 data->inbuf = wpabuf_alloc(tot_len); in eap_pwd_process()
1023 tot_len = len; in eap_pwd_process()
1029 "length = %d", tot_len); in eap_pwd_process()
1040 wpabuf_put_be16(resp, tot_len); in eap_pwd_process()
/external/android-clat/
Dipv6.c177 ip_targ->tot_len = htons(ntohs(ip_targ->tot_len) + packet_length(out, pos)); in ipv6_packet()
Dclatd_microbenchmark.c98 .tot_len = htons(len + sizeof(ip) + sizeof(udp)), in send_packet()
Ddump.c51 printf("tot_len = %x\n", ntohs(header->tot_len)); in dump_ip()
/external/vboot_reference/firmware/lib/cryptolib/
Dsha256.c125 ctx->tot_len = 0; in SHA256_init()
274 ctx->tot_len += (block_nb + 1) << 6; in SHA256_update()
288 len_b = (ctx->tot_len + ctx->len) << 3; in SHA256_final()
Dsha512.c168 ctx->tot_len = 0; in SHA512_init()
296 ctx->tot_len += (block_nb + 1) << 7; in SHA512_update()
312 len_b = (ctx->tot_len + ctx->len) << 3; in SHA512_final()
/external/ltp/testcases/network/stress/ns-tools/
Dns-icmpv4_sender.c369 pkt.hdr.tot_len = htons(pkt_size); in create_clean_packet()
435 bitsize = sizeof(pkt->hdr.tot_len) * 8; in thrust_fakes()
437 pkt->hdr.tot_len ^= seed; in thrust_fakes()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_xdp.c106 payload_len = bpf_ntohs(iph->tot_len); in handle_ipv4()
136 iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); in handle_ipv4()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c853 u16 tot_len; in eap_pwd_process() local
891 tot_len = WPA_GET_BE16(pos); in eap_pwd_process()
893 "length = %d", tot_len); in eap_pwd_process()
894 if (tot_len > 15000) in eap_pwd_process()
901 data->inbuf = wpabuf_alloc(tot_len); in eap_pwd_process()
/external/libnl/include/linux-private/linux/
Dip.h96 __be16 tot_len; member
/external/iproute2/include/uapi/linux/
Dip.h97 __be16 tot_len; member
/external/kernel-headers/original/uapi/linux/
Dip.h97 __be16 tot_len; member
/external/toybox/toys/pending/
Ddhcp.c664 if (bytes < ntohs(packet.iph.tot_len)) { in read_raw()
669 bytes = ntohs(packet.iph.tot_len); in read_raw()
689 packet.iph.tot_len = packet.udph.len; in read_raw()
752 packet.iph.tot_len = packet.udph.len; in send_raw()
754 packet.iph.tot_len = htons(sizeof(dhcp_raw_t) - padding); in send_raw()
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_snd.c124 iph->tot_len = htons(sizeof(*iph) + sizeof(struct udphdr) + payload_len); in build_ipv4_header()

12