/Linux-v5.4/drivers/mtd/lpddr/ |
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 …]
|
/Linux-v5.4/fs/btrfs/ |
D | lzo.c | 325 unsigned long tot_len; in lzo_decompress_bio() local 333 tot_len = read_compress_length(data_in); in lzo_decompress_bio() 342 if (tot_len > min_t(size_t, BTRFS_MAX_COMPRESSED, srclen) || in lzo_decompress_bio() 343 tot_len < srclen - PAGE_SIZE) { in lzo_decompress_bio() 354 while (tot_in < tot_len) { in lzo_decompress_bio() 366 if (in_len > max_segment_len || tot_in + in_len > tot_len) { in lzo_decompress_bio() 401 if (working_bytes == 0 && tot_in >= tot_len) in lzo_decompress_bio()
|
/Linux-v5.4/net/ipv6/ |
D | exthdrs.c | 996 opt2 = sock_kmalloc(sk, opt->tot_len, GFP_ATOMIC); in ipv6_dup_options() 999 memcpy(opt2, opt, opt->tot_len); in ipv6_dup_options() 1056 int tot_len = 0; in ipv6_renew_options() local 1062 tot_len += CMSG_ALIGN(ipv6_optlen(opt->hopopt)); in ipv6_renew_options() 1064 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst0opt)); in ipv6_renew_options() 1066 tot_len += CMSG_ALIGN(ipv6_optlen(opt->srcrt)); in ipv6_renew_options() 1068 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst1opt)); in ipv6_renew_options() 1072 tot_len += CMSG_ALIGN(ipv6_optlen(newopt)); in ipv6_renew_options() 1074 if (!tot_len) in ipv6_renew_options() 1077 tot_len += sizeof(*opt2); in ipv6_renew_options() [all …]
|
D | seg6_iptunnel.c | 114 int hdrlen, tot_len, err; in seg6_do_srh_encap() local 118 tot_len = hdrlen + sizeof(*hdr); in seg6_do_srh_encap() 120 err = skb_cow_head(skb, tot_len + skb->mac_len); in seg6_do_srh_encap() 127 skb_push(skb, tot_len); in seg6_do_srh_encap() 166 skb_postpush_rcsum(skb, hdr, tot_len); in seg6_do_srh_encap()
|
/Linux-v5.4/tools/testing/selftests/bpf/progs/ |
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()
|
D | test_xdp.c | 106 payload_len = bpf_ntohs(iph->tot_len); in handle_ipv4() 136 iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); in handle_ipv4()
|
D | test_xdp_loop.c | 102 payload_len = bpf_ntohs(iph->tot_len); in handle_ipv4() 132 iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); in handle_ipv4()
|
D | test_lwt_ip_encap.c | 39 hdr.iph.tot_len = bpf_htons(skb->len + sizeof(struct encap_hdr)); in bpf_lwt_encap_gre()
|
/Linux-v5.4/net/ipv4/ |
D | xfrm4_input.c | 65 iph->tot_len = htons(skb->len); in xfrm4_transport_finish() 152 iph->tot_len = htons(ntohs(iph->tot_len) - len); in xfrm4_udp_encap_rcv()
|
D | af_inet.c | 1305 int proto, tot_len; in inet_gso_segment() local 1363 tot_len = skb->len - nhoff; in inet_gso_segment() 1371 tot_len = skb_shinfo(skb)->gso_size + in inet_gso_segment() 1375 tot_len = skb->len - nhoff; in inet_gso_segment() 1379 tot_len = skb->len - nhoff; in inet_gso_segment() 1381 iph->tot_len = htons(tot_len); in inet_gso_segment() 1594 csum_replace2(&iph->check, iph->tot_len, newlen); in inet_gro_complete() 1595 iph->tot_len = newlen; in inet_gro_complete()
|
/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/ |
D | flow_dissector.c | 110 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 152 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 196 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 222 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 336 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 339 .iph_inner.tot_len = 364 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES), 367 .iph_inner.tot_len =
|
/Linux-v5.4/drivers/net/slip/ |
D | slhc.c | 399 if(ip->tot_len != cs->cs_ip.tot_len && in slhc_compress() 400 ntohs(cs->cs_ip.tot_len) == hlen) in slhc_compress() 411 deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress() 418 if(deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress() 547 i = ntohs(ip->tot_len) - hdrlen; in slhc_uncompress() 555 ntohs(ip->tot_len) - hdrlen); in slhc_uncompress() 605 ip->tot_len = htons(len); in slhc_uncompress()
|
/Linux-v5.4/samples/bpf/ |
D | xdp_fwd_kern.c | 77 fib_params.tot_len = ntohs(iph->tot_len); in xdp_fwd_flags() 96 fib_params.tot_len = ntohs(ip6h->payload_len); in xdp_fwd_flags()
|
D | xdp_tx_iptunnel_kern.c | 103 payload_len = ntohs(iph->tot_len); in handle_ipv4() 135 iph->tot_len = htons(payload_len + sizeof(*iph)); in handle_ipv4()
|
/Linux-v5.4/net/dccp/ |
D | options.c | 503 u8 tot_len, *to; in dccp_insert_fn_opt() local 513 tot_len = 3 + repeat_first + len; in dccp_insert_fn_opt() 515 if (DCCP_SKB_CB(skb)->dccpd_opt_len + tot_len > DCCP_MAX_OPT_LEN) { in dccp_insert_fn_opt() 519 DCCP_SKB_CB(skb)->dccpd_opt_len += tot_len; in dccp_insert_fn_opt() 521 to = skb_push(skb, tot_len); in dccp_insert_fn_opt() 523 *to++ = tot_len; in dccp_insert_fn_opt()
|
/Linux-v5.4/net/bridge/netfilter/ |
D | nft_reject_bridge.c | 48 len = ntohs(iph->tot_len); in nft_bridge_iphdr_validate() 89 niph->tot_len = htons(nskb->len); in nft_reject_br_send_v4_tcp_reset() 122 if (pskb_trim_rcsum(oldskb, ntohs(ip_hdr(oldskb)->tot_len))) in nft_reject_br_send_v4_unreach() 151 niph->tot_len = htons(nskb->len); in nft_reject_br_send_v4_unreach()
|
/Linux-v5.4/net/sched/ |
D | act_csum.c | 403 ntohs(iph->tot_len))) in tcf_csum_ipv4() 409 ntohs(iph->tot_len))) in tcf_csum_ipv4() 415 ntohs(iph->tot_len))) in tcf_csum_ipv4() 421 ntohs(iph->tot_len), 0)) in tcf_csum_ipv4() 427 ntohs(iph->tot_len), 1)) in tcf_csum_ipv4() 432 !tcf_csum_sctp(skb, iph->ihl * 4, ntohs(iph->tot_len))) in tcf_csum_ipv4()
|
/Linux-v5.4/drivers/infiniband/core/ |
D | ud_header.c | 133 { STRUCT_FIELD(ip4, tot_len), 290 iph.tot_len = header->ip4.tot_len; in ib_ud_ip4_csum() 370 header->ip4.tot_len = in ib_ud_header_init()
|
/Linux-v5.4/net/netfilter/ |
D | xt_TCPMSS.c | 210 newlen = htons(ntohs(iph->tot_len) + ret); in tcpmss_tg4() 211 csum_replace2(&iph->check, iph->tot_len, newlen); in tcpmss_tg4() 212 iph->tot_len = newlen; in tcpmss_tg4()
|
D | xt_length.c | 24 u_int16_t pktlen = ntohs(ip_hdr(skb)->tot_len); in length_mt()
|
/Linux-v5.4/include/linux/ |
D | ip.h | 36 return ntohs(ip_hdr(skb)->tot_len) - skb_network_header_len(skb); in ip_transport_len()
|
/Linux-v5.4/fs/ |
D | read_write.c | 845 compat_ssize_t tot_len; in compat_rw_copy_check_uvector() local 881 tot_len = 0; in compat_rw_copy_check_uvector() 899 if (len > MAX_RW_COUNT - tot_len) in compat_rw_copy_check_uvector() 900 len = MAX_RW_COUNT - tot_len; in compat_rw_copy_check_uvector() 901 tot_len += len; in compat_rw_copy_check_uvector() 907 ret = tot_len; in compat_rw_copy_check_uvector() 917 size_t tot_len; in do_iter_read() local 925 tot_len = iov_iter_count(iter); in do_iter_read() 926 if (!tot_len) in do_iter_read() 928 ret = rw_verify_area(READ, file, pos, tot_len); in do_iter_read() [all …]
|
/Linux-v5.4/include/net/netfilter/ |
D | nf_tables_ipv4.h | 34 len = ntohs(iph->tot_len); in __nft_set_pktinfo_ipv4_validate()
|
/Linux-v5.4/drivers/crypto/bcm/ |
D | util.h | 83 u8 from_nents, u32 tot_len);
|
/Linux-v5.4/drivers/net/netdevsim/ |
D | dev.c | 366 int tot_len, data_len = NSIM_TRAP_L4_DATA_LEN; in nsim_dev_trap_skb_build() local 375 tot_len = sizeof(struct iphdr) + sizeof(struct udphdr) + data_len; in nsim_dev_trap_skb_build() 392 iph->tot_len = htons(tot_len); in nsim_dev_trap_skb_build()
|