/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/fs/btrfs/ |
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()
|
/kernel/linux/linux-5.10/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_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()
|
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()
|
/kernel/linux/linux-5.10/net/ipv4/ |
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()
|
/kernel/linux/linux-5.10/samples/bpf/ |
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()
|
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()
|
/kernel/liteos_m/components/net/lwip-2.1/porting/src/ |
D | driverif.c | 128 (void *)p, p->tot_len, (void *)netif)); in driverif_output() 147 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p->tot_len); in driverif_output() 224 packet_length %"U16_F"\n", (void *)netif, (void *)p, p->tot_len)); in driverif_input() 227 MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len); in driverif_input()
|
/kernel/uniproton/src/net/lwip-2.1/src/ |
D | driverif.c | 110 (void *)p, p->tot_len, (void *)netif)); in OsDriverifOutput() 129 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p->tot_len); in OsDriverifOutput() 203 packet_length %"U16_F"\n", (void *)netif, (void *)p, p->tot_len)); in driverif_input() 206 MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len); in driverif_input()
|
/kernel/linux/linux-5.10/drivers/net/slip/ |
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()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | exthdrs.c | 1185 opt2 = sock_kmalloc(sk, opt->tot_len, GFP_ATOMIC); in ipv6_dup_options() 1188 memcpy(opt2, opt, opt->tot_len); in ipv6_dup_options() 1244 int tot_len = 0; in ipv6_renew_options() local 1250 tot_len += CMSG_ALIGN(ipv6_optlen(opt->hopopt)); in ipv6_renew_options() 1252 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst0opt)); in ipv6_renew_options() 1254 tot_len += CMSG_ALIGN(ipv6_optlen(opt->srcrt)); in ipv6_renew_options() 1256 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst1opt)); in ipv6_renew_options() 1260 tot_len += CMSG_ALIGN(ipv6_optlen(newopt)); in ipv6_renew_options() 1262 if (!tot_len) in ipv6_renew_options() 1265 tot_len += sizeof(*opt2); in ipv6_renew_options() [all …]
|
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()
|
/kernel/liteos_a/net/lwip-2.1/porting/src/ |
D | driverif.c | 104 (void *)p, p->tot_len, (void *)netif)); 123 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p->tot_len); 157 packet_length %"U16_F"\n", (void *)netif, (void *)p, p->tot_len)); 160 MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len);
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
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 =
|
/kernel/linux/linux-5.10/net/dccp/ |
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()
|
/kernel/linux/linux-5.10/include/net/netfilter/ |
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()
|
/kernel/linux/linux-5.10/fs/ |
D | read_write.c | 780 size_t tot_len; in do_iter_read() local 788 tot_len = iov_iter_count(iter); in do_iter_read() 789 if (!tot_len) in do_iter_read() 791 ret = rw_verify_area(READ, file, pos, tot_len); in do_iter_read() 808 size_t tot_len; in vfs_iocb_iter_read() local 818 tot_len = iov_iter_count(iter); in vfs_iocb_iter_read() 819 if (!tot_len) in vfs_iocb_iter_read() 821 ret = rw_verify_area(READ, file, &iocb->ki_pos, tot_len); in vfs_iocb_iter_read() 845 size_t tot_len; in do_iter_write() local 853 tot_len = iov_iter_count(iter); in do_iter_write() [all …]
|
/kernel/linux/linux-5.10/net/bridge/netfilter/ |
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()
|
/kernel/linux/linux-5.10/net/sched/ |
D | act_csum.c | 400 ntohs(iph->tot_len))) in tcf_csum_ipv4() 406 ntohs(iph->tot_len))) in tcf_csum_ipv4() 412 ntohs(iph->tot_len))) in tcf_csum_ipv4() 418 ntohs(iph->tot_len), 0)) in tcf_csum_ipv4() 424 ntohs(iph->tot_len), 1)) in tcf_csum_ipv4() 429 !tcf_csum_sctp(skb, iph->ihl * 4, ntohs(iph->tot_len))) in tcf_csum_ipv4()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/include/linux/ |
D | ip.h | 36 return ntohs(ip_hdr(skb)->tot_len) - skb_network_header_len(skb); in ip_transport_len()
|
/kernel/liteos_m/kal/libc/newlib/porting/include/netinet/ |
D | ip.h | 64 uint16_t tot_len; member
|