| /OK3568_Linux_fs/external/rkwifibt/drivers/infineon/ |
| H A D | frag.c | 45 uint tot_len = 0; in bcm_tlv_dot11_defrag() local 58 tot_len = id_ext ? ie->len - 1 : ie->len; in bcm_tlv_dot11_defrag() 61 if (out_left < tot_len) { in bcm_tlv_dot11_defrag() 65 memcpy(out, &ie->data[id_ext ? 1 : 0], tot_len); in bcm_tlv_dot11_defrag() 66 out += tot_len; in bcm_tlv_dot11_defrag() 67 out_left -= tot_len; in bcm_tlv_dot11_defrag() 93 tot_len += ie->len + BCM_TLV_HDR_SIZE; in bcm_tlv_dot11_defrag() 103 *out_len = tot_len; in bcm_tlv_dot11_defrag()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/ |
| H A D | frag.c | 45 uint tot_len = 0; in bcm_tlv_dot11_defrag() local 58 tot_len = id_ext ? ie->len - 1 : ie->len; in bcm_tlv_dot11_defrag() 61 if (out_left < tot_len) { in bcm_tlv_dot11_defrag() 65 memcpy(out, &ie->data[id_ext ? 1 : 0], tot_len); in bcm_tlv_dot11_defrag() 66 out += tot_len; in bcm_tlv_dot11_defrag() 67 out_left -= tot_len; in bcm_tlv_dot11_defrag() 93 tot_len += ie->len + BCM_TLV_HDR_SIZE; in bcm_tlv_dot11_defrag() 103 *out_len = tot_len; in bcm_tlv_dot11_defrag()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | frag.c | 39 uint tot_len = 0; in bcm_tlv_dot11_defrag() local 52 tot_len = id_ext ? ie->len - 1 : ie->len; in bcm_tlv_dot11_defrag() 55 if (out_left < tot_len) { in bcm_tlv_dot11_defrag() 59 memcpy(out, &ie->data[id_ext ? 1 : 0], tot_len); in bcm_tlv_dot11_defrag() 60 out += tot_len; in bcm_tlv_dot11_defrag() 61 out_left -= tot_len; in bcm_tlv_dot11_defrag() 87 tot_len += ie->len + BCM_TLV_HDR_SIZE; in bcm_tlv_dot11_defrag() 97 *out_len = tot_len; in bcm_tlv_dot11_defrag()
|
| H A D | dhd_event_log_filter.c | 2221 dhd_event_log_filter_serialize(dhd_pub_t *dhdp, char *in_buf, uint32 tot_len, int type) in dhd_event_log_filter_serialize() argument 2300 memset(ret_buf, 0, tot_len); in dhd_event_log_filter_serialize() 2313 tot_len - bytes_written, "%08x", EWP_REPORT_VERSION); in dhd_event_log_filter_serialize() 2315 tot_len - bytes_written, "%c%s", KEY_DEL, cookie_str); in dhd_event_log_filter_serialize() 2324 tot_len - bytes_written, " %s:", info->name); in dhd_event_log_filter_serialize() 2327 tot_len - bytes_written, in dhd_event_log_filter_serialize() 2340 tot_len - bytes_written, "%c%08x", KEY_DEL, EWP_REPORT_VERSION); in dhd_event_log_filter_serialize() 2342 tot_len - bytes_written, "%c%s", RAW_DEL, cookie_str); in dhd_event_log_filter_serialize() 2349 tot_len - bytes_written, " %s:", info->name); in dhd_event_log_filter_serialize() 2352 tot_len - bytes_written, in dhd_event_log_filter_serialize() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/ |
| H A D | frag.c | 45 uint tot_len = 0; in bcm_tlv_dot11_defrag() local 58 tot_len = id_ext ? ie->len - 1 : ie->len; in bcm_tlv_dot11_defrag() 61 if (out_left < tot_len) { in bcm_tlv_dot11_defrag() 65 memcpy(out, &ie->data[id_ext ? 1 : 0], tot_len); in bcm_tlv_dot11_defrag() 66 out += tot_len; in bcm_tlv_dot11_defrag() 67 out_left -= tot_len; in bcm_tlv_dot11_defrag() 93 tot_len += ie->len + BCM_TLV_HDR_SIZE; in bcm_tlv_dot11_defrag() 103 *out_len = tot_len; in bcm_tlv_dot11_defrag()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | frag.c | 39 uint tot_len = 0; in bcm_tlv_dot11_defrag() local 52 tot_len = id_ext ? ie->len - 1 : ie->len; in bcm_tlv_dot11_defrag() 55 if (out_left < tot_len) { in bcm_tlv_dot11_defrag() 59 memcpy(out, &ie->data[id_ext ? 1 : 0], tot_len); in bcm_tlv_dot11_defrag() 60 out += tot_len; in bcm_tlv_dot11_defrag() 61 out_left -= tot_len; in bcm_tlv_dot11_defrag() 87 tot_len += ie->len + BCM_TLV_HDR_SIZE; in bcm_tlv_dot11_defrag() 97 *out_len = tot_len; in bcm_tlv_dot11_defrag()
|
| H A D | dhd_event_log_filter.c | 2221 dhd_event_log_filter_serialize(dhd_pub_t *dhdp, char *in_buf, uint32 tot_len, int type) in dhd_event_log_filter_serialize() argument 2300 memset(ret_buf, 0, tot_len); in dhd_event_log_filter_serialize() 2313 tot_len - bytes_written, "%08x", EWP_REPORT_VERSION); in dhd_event_log_filter_serialize() 2315 tot_len - bytes_written, "%c%s", KEY_DEL, cookie_str); in dhd_event_log_filter_serialize() 2324 tot_len - bytes_written, " %s:", info->name); in dhd_event_log_filter_serialize() 2327 tot_len - bytes_written, in dhd_event_log_filter_serialize() 2340 tot_len - bytes_written, "%c%08x", KEY_DEL, EWP_REPORT_VERSION); in dhd_event_log_filter_serialize() 2342 tot_len - bytes_written, "%c%s", RAW_DEL, cookie_str); in dhd_event_log_filter_serialize() 2349 tot_len - bytes_written, " %s:", info->name); in dhd_event_log_filter_serialize() 2352 tot_len - bytes_written, in dhd_event_log_filter_serialize() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/lpddr/ |
| H A D | lpddr2_nvm.c | 321 u_long add, current_len, tot_len, target_len, my_data; in lpddr2_nvm_write() local 332 tot_len = 0; in lpddr2_nvm_write() 334 while (tot_len < target_len) { in lpddr2_nvm_write() 336 my_data = write_buf[tot_len]; in lpddr2_nvm_write() 337 my_data += (write_buf[tot_len+1]) << 8; in lpddr2_nvm_write() 339 my_data += (write_buf[tot_len+2]) << 16; in lpddr2_nvm_write() 340 my_data += (write_buf[tot_len+3]) << 24; in lpddr2_nvm_write() 348 tot_len += pcm_data->bus_width; in lpddr2_nvm_write() 350 current_len = min(target_len - tot_len, in lpddr2_nvm_write() 353 0x00, add, current_len, write_buf + tot_len); in lpddr2_nvm_write() [all …]
|
| /OK3568_Linux_fs/kernel/fs/btrfs/ |
| H A D | lzo.c | 301 unsigned long tot_len; in lzo_decompress_bio() local 309 tot_len = read_compress_length(data_in); in lzo_decompress_bio() 318 if (tot_len > min_t(size_t, BTRFS_MAX_COMPRESSED, srclen) || in lzo_decompress_bio() 319 tot_len < srclen - PAGE_SIZE) { in lzo_decompress_bio() 330 while (tot_in < tot_len) { in lzo_decompress_bio() 342 if (in_len > max_segment_len || tot_in + in_len > tot_len) { in lzo_decompress_bio() 377 if (working_bytes == 0 && tot_in >= tot_len) in lzo_decompress_bio()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/ |
| H A D | test_tc_tunnel.c | 105 iph_inner.tot_len = bpf_htons(sizeof(iph6_inner) + in encap_ipv4() 162 h_outer.l4hdr.udp.len = bpf_htons(bpf_ntohs(iph_inner.tot_len) + in encap_ipv4() 192 h_outer.ip.tot_len = bpf_htons(olen + in encap_ipv4() 193 bpf_ntohs(h_outer.ip.tot_len)); in encap_ipv4() 225 __u16 tot_len; in encap_ipv6() local 269 tot_len = bpf_ntohs(iph_inner.payload_len) + sizeof(iph_inner) + in encap_ipv6() 272 h_outer.l4hdr.udp.len = bpf_htons(tot_len); in encap_ipv6()
|
| H A D | test_tc_neigh_fib.c | 43 fib_params->tot_len = bpf_ntohs(ip4h->tot_len); in fill_fib_params_v4() 71 fib_params->tot_len = bpf_ntohs(ip6h->payload_len); in fill_fib_params_v6()
|
| /OK3568_Linux_fs/app/forlinx/quectelCM/libmnl/dhcp/ |
| H A D | packet.c | 95 ip.tot_len = htons(sizeof(ip) + sizeof(udp) + size); in send_packet() 180 } else if (nread < ntohs(packet.ip.tot_len)) { in receive_packet() 182 ALOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len)); in receive_packet() 229 nread = ntohs(packet.ip.tot_len); in receive_packet() 234 packet.ip.tot_len = packet.udp.len; in receive_packet()
|
| /OK3568_Linux_fs/kernel/net/ipv6/ |
| H A D | exthdrs.c | 1192 opt2 = sock_kmalloc(sk, opt->tot_len, GFP_ATOMIC); in ipv6_dup_options() 1195 memcpy(opt2, opt, opt->tot_len); in ipv6_dup_options() 1251 int tot_len = 0; in ipv6_renew_options() local 1257 tot_len += CMSG_ALIGN(ipv6_optlen(opt->hopopt)); in ipv6_renew_options() 1259 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst0opt)); in ipv6_renew_options() 1261 tot_len += CMSG_ALIGN(ipv6_optlen(opt->srcrt)); in ipv6_renew_options() 1263 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst1opt)); in ipv6_renew_options() 1267 tot_len += CMSG_ALIGN(ipv6_optlen(newopt)); in ipv6_renew_options() 1269 if (!tot_len) in ipv6_renew_options() 1272 tot_len += sizeof(*opt2); in ipv6_renew_options() [all …]
|
| H A D | seg6_iptunnel.c | 131 int hdrlen, tot_len, err; in seg6_do_srh_encap() local 135 tot_len = hdrlen + sizeof(*hdr); in seg6_do_srh_encap() 137 err = skb_cow_head(skb, tot_len + skb->mac_len); in seg6_do_srh_encap() 144 skb_push(skb, tot_len); in seg6_do_srh_encap() 193 skb_postpush_rcsum(skb, hdr, tot_len); in seg6_do_srh_encap()
|
| /OK3568_Linux_fs/kernel/drivers/net/slip/ |
| H A D | slhc.c | 405 if(ip->tot_len != cs->cs_ip.tot_len && in slhc_compress() 406 ntohs(cs->cs_ip.tot_len) == hlen) in slhc_compress() 417 deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress() 424 if(deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress() 553 i = ntohs(ip->tot_len) - hdrlen; in slhc_uncompress() 561 ntohs(ip->tot_len) - hdrlen); in slhc_uncompress() 611 ip->tot_len = htons(len); in slhc_uncompress()
|
| /OK3568_Linux_fs/kernel/net/ipv4/ |
| H A D | xfrm4_input.c | 60 iph->tot_len = htons(skb->len); in xfrm4_transport_finish() 147 iph->tot_len = htons(ntohs(iph->tot_len) - len); in xfrm4_udp_encap_rcv()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/ |
| H A D | flow_dissector.c | 114 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 156 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 200 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 226 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 340 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 343 .iph_inner.tot_len = 368 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 371 .iph_inner.tot_len =
|
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | xdp_fwd_kern.c | 76 fib_params.tot_len = ntohs(iph->tot_len); in xdp_fwd_flags() 95 fib_params.tot_len = ntohs(ip6h->payload_len); in xdp_fwd_flags()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/crypt/include/ |
| H A D | sha2_impl.h | 51 unsigned int tot_len; member 58 unsigned int tot_len; member
|
| /OK3568_Linux_fs/kernel/net/dccp/ |
| H A D | options.c | 507 u8 tot_len, *to; in dccp_insert_fn_opt() local 517 tot_len = 3 + repeat_first + len; in dccp_insert_fn_opt() 519 if (DCCP_SKB_CB(skb)->dccpd_opt_len + tot_len > DCCP_MAX_OPT_LEN) { in dccp_insert_fn_opt() 523 DCCP_SKB_CB(skb)->dccpd_opt_len += tot_len; in dccp_insert_fn_opt() 525 to = skb_push(skb, tot_len); in dccp_insert_fn_opt() 527 *to++ = tot_len; in dccp_insert_fn_opt()
|
| /OK3568_Linux_fs/u-boot/include/android_avb/ |
| H A D | avb_sha.h | 59 uint64_t tot_len; member 72 uint64_t tot_len; member
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/crypt/ |
| H A D | sha2_impl.c | 342 ctx->tot_len = 0; in sha256_init() 380 ctx->tot_len += (block_nb + 1) << 6; in sha256_update() 397 len_b = (ctx->tot_len + ctx->len) << 3; in sha256_final() 453 ctx->tot_len = 0; in sha224_init() 491 ctx->tot_len += (block_nb + 1) << 6; in sha224_update() 508 len_b = (ctx->tot_len + ctx->len) << 3; in sha224_final()
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A D | read_write.c | 785 size_t tot_len; in do_iter_read() local 793 tot_len = iov_iter_count(iter); in do_iter_read() 794 if (!tot_len) in do_iter_read() 796 ret = rw_verify_area(READ, file, pos, tot_len); in do_iter_read() 813 size_t tot_len; in vfs_iocb_iter_read() local 823 tot_len = iov_iter_count(iter); in vfs_iocb_iter_read() 824 if (!tot_len) in vfs_iocb_iter_read() 826 ret = rw_verify_area(READ, file, &iocb->ki_pos, tot_len); in vfs_iocb_iter_read() 850 size_t tot_len; in do_iter_write() local 858 tot_len = iov_iter_count(iter); in do_iter_write() [all …]
|
| /OK3568_Linux_fs/kernel/include/net/netfilter/ |
| H A D | nf_tables_ipv4.h | 34 len = ntohs(iph->tot_len); in __nft_set_pktinfo_ipv4_validate() 69 len = ntohs(iph->tot_len); in nft_set_pktinfo_ipv4_ingress()
|
| /OK3568_Linux_fs/kernel/net/bridge/netfilter/ |
| H A D | nft_reject_bridge.c | 54 len = ntohs(iph->tot_len); in nft_bridge_iphdr_validate() 95 niph->tot_len = htons(nskb->len); in nft_reject_br_send_v4_tcp_reset() 128 if (pskb_trim_rcsum(oldskb, ntohs(ip_hdr(oldskb)->tot_len))) in nft_reject_br_send_v4_unreach() 157 niph->tot_len = htons(nskb->len); in nft_reject_br_send_v4_unreach()
|