/Linux-v4.19/drivers/mtd/lpddr/ |
D | lpddr2_nvm.c | 330 u_long add, current_len, tot_len, target_len, my_data; in lpddr2_nvm_write() local 341 tot_len = 0; in lpddr2_nvm_write() 343 while (tot_len < target_len) { in lpddr2_nvm_write() 345 my_data = write_buf[tot_len]; in lpddr2_nvm_write() 346 my_data += (write_buf[tot_len+1]) << 8; in lpddr2_nvm_write() 348 my_data += (write_buf[tot_len+2]) << 16; in lpddr2_nvm_write() 349 my_data += (write_buf[tot_len+3]) << 24; in lpddr2_nvm_write() 357 tot_len += pcm_data->bus_width; in lpddr2_nvm_write() 359 current_len = min(target_len - tot_len, in lpddr2_nvm_write() 362 0x00, add, current_len, write_buf + tot_len); in lpddr2_nvm_write() [all …]
|
/Linux-v4.19/fs/btrfs/ |
D | lzo.c | 303 unsigned long tot_len; in lzo_decompress_bio() local 311 tot_len = read_compress_length(data_in); in lzo_decompress_bio() 320 if (tot_len > min_t(size_t, BTRFS_MAX_COMPRESSED, srclen) || in lzo_decompress_bio() 321 tot_len < srclen - PAGE_SIZE) { in lzo_decompress_bio() 332 while (tot_in < tot_len) { in lzo_decompress_bio() 344 if (in_len > max_segment_len || tot_in + in_len > tot_len) { in lzo_decompress_bio() 379 if (working_bytes == 0 && tot_in >= tot_len) in lzo_decompress_bio()
|
/Linux-v4.19/net/ipv6/ |
D | exthdrs.c | 1000 opt2 = sock_kmalloc(sk, opt->tot_len, GFP_ATOMIC); in ipv6_dup_options() 1003 memcpy(opt2, opt, opt->tot_len); in ipv6_dup_options() 1060 int tot_len = 0; in ipv6_renew_options() local 1066 tot_len += CMSG_ALIGN(ipv6_optlen(opt->hopopt)); in ipv6_renew_options() 1068 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst0opt)); in ipv6_renew_options() 1070 tot_len += CMSG_ALIGN(ipv6_optlen(opt->srcrt)); in ipv6_renew_options() 1072 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst1opt)); in ipv6_renew_options() 1076 tot_len += CMSG_ALIGN(ipv6_optlen(newopt)); in ipv6_renew_options() 1078 if (!tot_len) in ipv6_renew_options() 1081 tot_len += sizeof(*opt2); in ipv6_renew_options() [all …]
|
D | seg6_iptunnel.c | 119 int hdrlen, tot_len, err; in seg6_do_srh_encap() local 123 tot_len = hdrlen + sizeof(*hdr); in seg6_do_srh_encap() 125 err = skb_cow_head(skb, tot_len + skb->mac_len); in seg6_do_srh_encap() 132 skb_push(skb, tot_len); in seg6_do_srh_encap() 169 skb_postpush_rcsum(skb, hdr, tot_len); in seg6_do_srh_encap()
|
/Linux-v4.19/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()
|
/Linux-v4.19/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 | 1299 int proto, tot_len; in inet_gso_segment() local 1357 tot_len = skb->len - nhoff; in inet_gso_segment() 1365 tot_len = skb_shinfo(skb)->gso_size + in inet_gso_segment() 1369 tot_len = skb->len - nhoff; in inet_gso_segment() 1373 tot_len = skb->len - nhoff; in inet_gso_segment() 1375 iph->tot_len = htons(tot_len); in inet_gso_segment() 1572 csum_replace2(&iph->check, iph->tot_len, newlen); in inet_gro_complete() 1573 iph->tot_len = newlen; in inet_gro_complete()
|
D | xfrm4_mode_transport.c | 55 ip_hdr(skb)->tot_len = htons(skb->len + ihl); in xfrm4_transport_input()
|
/Linux-v4.19/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-v4.19/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()
|
/Linux-v4.19/net/sched/ |
D | act_csum.c | 392 ntohs(iph->tot_len))) in tcf_csum_ipv4() 398 ntohs(iph->tot_len))) in tcf_csum_ipv4() 404 ntohs(iph->tot_len))) in tcf_csum_ipv4() 410 ntohs(iph->tot_len), 0)) in tcf_csum_ipv4() 416 ntohs(iph->tot_len), 1)) in tcf_csum_ipv4() 421 !tcf_csum_sctp(skb, iph->ihl * 4, ntohs(iph->tot_len))) in tcf_csum_ipv4()
|
/Linux-v4.19/net/bridge/netfilter/ |
D | nft_reject_bridge.c | 51 len = ntohs(iph->tot_len); in nft_bridge_iphdr_validate() 92 niph->tot_len = htons(nskb->len); in nft_reject_br_send_v4_tcp_reset() 125 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()
|
/Linux-v4.19/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-v4.19/net/netfilter/ |
D | xt_TCPMSS.c | 213 newlen = htons(ntohs(iph->tot_len) + ret); in tcpmss_tg4() 214 csum_replace2(&iph->check, iph->tot_len, newlen); in tcpmss_tg4() 215 iph->tot_len = newlen; in tcpmss_tg4()
|
D | xt_length.c | 27 u_int16_t pktlen = ntohs(ip_hdr(skb)->tot_len); in length_mt()
|
/Linux-v4.19/fs/ |
D | read_write.c | 834 compat_ssize_t tot_len; in compat_rw_copy_check_uvector() local 870 tot_len = 0; in compat_rw_copy_check_uvector() 888 if (len > MAX_RW_COUNT - tot_len) in compat_rw_copy_check_uvector() 889 len = MAX_RW_COUNT - tot_len; in compat_rw_copy_check_uvector() 890 tot_len += len; in compat_rw_copy_check_uvector() 896 ret = tot_len; in compat_rw_copy_check_uvector() 906 size_t tot_len; in do_iter_read() local 914 tot_len = iov_iter_count(iter); in do_iter_read() 915 if (!tot_len) in do_iter_read() 917 ret = rw_verify_area(READ, file, pos, tot_len); in do_iter_read() [all …]
|
/Linux-v4.19/include/net/netfilter/ |
D | nf_tables_ipv4.h | 34 len = ntohs(iph->tot_len); in __nft_set_pktinfo_ipv4_validate()
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
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()
|
/Linux-v4.19/drivers/crypto/bcm/ |
D | util.h | 94 u8 from_nents, u32 tot_len);
|
/Linux-v4.19/drivers/scsi/fnic/ |
D | fnic_fcs.c | 1078 u32 tot_len, eth_hdr_len; in fnic_send_frame() local 1110 tot_len = skb->len; in fnic_send_frame() 1111 BUG_ON(tot_len % 4); in fnic_send_frame() 1118 pa = pci_map_single(fnic->pdev, eth_hdr, tot_len, PCI_DMA_TODEVICE); in fnic_send_frame() 1127 (char *)eth_hdr, tot_len)) != 0) { in fnic_send_frame() 1135 tot_len, PCI_DMA_TODEVICE); in fnic_send_frame() 1140 fnic_queue_wq_desc(wq, skb, pa, tot_len, fr_eof(fp), in fnic_send_frame()
|
/Linux-v4.19/drivers/crypto/chelsio/chtls/ |
D | chtls_main.c | 326 skb = alloc_skb(gl->tot_len + sizeof(struct cpl_pass_accept_req) in copy_gl_to_skb_pkt() 330 __skb_put(skb, gl->tot_len + sizeof(struct cpl_pass_accept_req) in copy_gl_to_skb_pkt() 336 gl->tot_len - pktshift); in copy_gl_to_skb_pkt()
|
/Linux-v4.19/net/core/ |
D | tso.c | 28 iph->tot_len = htons(size + hdr_len - mac_hdr_len); in tso_build_hdr()
|
/Linux-v4.19/include/uapi/linux/ |
D | ip.h | 97 __be16 tot_len; member
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/flower/ |
D | offload.c | 92 u32 meta_len, key_len, mask_len, act_len, tot_len; in nfp_flower_xmit_flow() local 102 tot_len = meta_len + key_len + mask_len + act_len; in nfp_flower_xmit_flow() 111 skb = nfp_flower_cmsg_alloc(priv->app, tot_len, mtype, GFP_KERNEL); in nfp_flower_xmit_flow()
|