Home
last modified time | relevance | path

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

1234567

/Linux-v5.15/drivers/mtd/lpddr/
Dlpddr2_nvm.c321 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.15/net/ipv4/
Dxfrm4_input.c60 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()
Daf_inet.c1339 int proto, tot_len; in inet_gso_segment() local
1397 tot_len = skb->len - nhoff; in inet_gso_segment()
1405 tot_len = skb_shinfo(skb)->gso_size + in inet_gso_segment()
1409 tot_len = skb->len - nhoff; in inet_gso_segment()
1413 tot_len = skb->len - nhoff; in inet_gso_segment()
1415 iph->tot_len = htons(tot_len); in inet_gso_segment()
1620 csum_replace2(&iph->check, iph->tot_len, newlen); in inet_gro_complete()
1621 iph->tot_len = newlen; in inet_gro_complete()
/Linux-v5.15/samples/bpf/
Dxdp_fwd_kern.c76 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()
Dxdp_tx_iptunnel_kern.c103 payload_len = ntohs(iph->tot_len); in handle_ipv4()
135 iph->tot_len = htons(payload_len + sizeof(*iph)); in handle_ipv4()
/Linux-v5.15/drivers/net/slip/
Dslhc.c405 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()
/Linux-v5.15/net/ipv4/netfilter/
Dnf_reject_ipv4.c27 len = ntohs(iph->tot_len); in nf_reject_iphdr_validate()
67 niph->tot_len = htons(nskb->len); in nf_reject_skb_v4_tcp_reset()
99 if (pskb_trim_rcsum(oldskb, ntohs(ip_hdr(oldskb)->tot_len))) in nf_reject_skb_v4_unreach()
130 niph->tot_len = htons(nskb->len); in nf_reject_skb_v4_unreach()
294 niph->tot_len = htons(nskb->len); in nf_send_reset()
/Linux-v5.15/tools/testing/selftests/bpf/progs/
Dtest_tc_tunnel.c121 iph_inner.tot_len = bpf_htons(sizeof(iph6_inner) + in __encap_ipv4()
182 h_outer.l4hdr.udp.len = bpf_htons(bpf_ntohs(iph_inner.tot_len) + in __encap_ipv4()
224 h_outer.ip.tot_len = bpf_htons(olen + in __encap_ipv4()
225 bpf_ntohs(h_outer.ip.tot_len)); in __encap_ipv4()
264 __u16 tot_len; in __encap_ipv6() local
312 tot_len = bpf_ntohs(iph_inner.payload_len) + sizeof(iph_inner) + in __encap_ipv6()
315 h_outer.l4hdr.udp.len = bpf_htons(tot_len); in __encap_ipv6()
Dtest_tc_neigh_fib.c43 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()
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()
Dtest_xdp_loop.c102 payload_len = bpf_ntohs(iph->tot_len); in handle_ipv4()
132 iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); in handle_ipv4()
Dtest_lwt_ip_encap.c39 hdr.iph.tot_len = bpf_htons(skb->len + sizeof(struct encap_hdr)); in bpf_lwt_encap_gre()
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c114 .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 =
/Linux-v5.15/net/ipv6/
Dexthdrs.c1236 opt2 = sock_kmalloc(sk, opt->tot_len, GFP_ATOMIC); in ipv6_dup_options()
1239 memcpy(opt2, opt, opt->tot_len); in ipv6_dup_options()
1295 int tot_len = 0; in ipv6_renew_options() local
1301 tot_len += CMSG_ALIGN(ipv6_optlen(opt->hopopt)); in ipv6_renew_options()
1303 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst0opt)); in ipv6_renew_options()
1305 tot_len += CMSG_ALIGN(ipv6_optlen(opt->srcrt)); in ipv6_renew_options()
1307 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst1opt)); in ipv6_renew_options()
1311 tot_len += CMSG_ALIGN(ipv6_optlen(newopt)); in ipv6_renew_options()
1313 if (!tot_len) in ipv6_renew_options()
1316 tot_len += sizeof(*opt2); in ipv6_renew_options()
[all …]
Dseg6_iptunnel.c132 int hdrlen, tot_len, err; in seg6_do_srh_encap() local
136 tot_len = hdrlen + sizeof(*hdr); in seg6_do_srh_encap()
138 err = skb_cow_head(skb, tot_len + skb->mac_len); in seg6_do_srh_encap()
145 skb_push(skb, tot_len); in seg6_do_srh_encap()
184 skb_postpush_rcsum(skb, hdr, tot_len); in seg6_do_srh_encap()
/Linux-v5.15/drivers/net/netdevsim/
Dpsample.c40 int tot_len, data_len = NSIM_PSAMPLE_L4_DATA_LEN; in nsim_dev_psample_skb_build() local
49 tot_len = sizeof(struct iphdr) + sizeof(struct udphdr) + data_len; in nsim_dev_psample_skb_build()
66 iph->tot_len = htons(tot_len); in nsim_dev_psample_skb_build()
/Linux-v5.15/net/dccp/
Doptions.c507 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-v5.15/include/net/netfilter/
Dnf_tables_ipv4.h32 len = ntohs(iph->tot_len); in __nft_set_pktinfo_ipv4_validate()
65 len = ntohs(iph->tot_len); in nft_set_pktinfo_ipv4_ingress()
/Linux-v5.15/fs/
Dread_write.c774 size_t tot_len; in do_iter_read() local
782 tot_len = iov_iter_count(iter); in do_iter_read()
783 if (!tot_len) in do_iter_read()
785 ret = rw_verify_area(READ, file, pos, tot_len); in do_iter_read()
802 size_t tot_len; in vfs_iocb_iter_read() local
812 tot_len = iov_iter_count(iter); in vfs_iocb_iter_read()
813 if (!tot_len) in vfs_iocb_iter_read()
815 ret = rw_verify_area(READ, file, &iocb->ki_pos, tot_len); in vfs_iocb_iter_read()
839 size_t tot_len; in do_iter_write() local
847 tot_len = iov_iter_count(iter); in do_iter_write()
[all …]
/Linux-v5.15/net/sched/
Dact_csum.c401 ntohs(iph->tot_len))) in tcf_csum_ipv4()
407 ntohs(iph->tot_len))) in tcf_csum_ipv4()
413 ntohs(iph->tot_len))) in tcf_csum_ipv4()
419 ntohs(iph->tot_len), 0)) in tcf_csum_ipv4()
425 ntohs(iph->tot_len), 1)) in tcf_csum_ipv4()
430 !tcf_csum_sctp(skb, iph->ihl * 4, ntohs(iph->tot_len))) in tcf_csum_ipv4()
/Linux-v5.15/drivers/infiniband/core/
Dud_header.c133 { 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.15/net/netfilter/
Dxt_TCPMSS.c210 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()
Dxt_length.c24 u_int16_t pktlen = ntohs(ip_hdr(skb)->tot_len); in length_mt()
/Linux-v5.15/include/linux/
Dip.h36 return ntohs(ip_hdr(skb)->tot_len) - skb_network_header_len(skb); in ip_transport_len()
/Linux-v5.15/drivers/scsi/fnic/
Dfnic_fcs.c1084 u32 tot_len, eth_hdr_len; in fnic_send_frame() local
1116 tot_len = skb->len; in fnic_send_frame()
1117 BUG_ON(tot_len % 4); in fnic_send_frame()
1124 pa = dma_map_single(&fnic->pdev->dev, eth_hdr, tot_len, DMA_TO_DEVICE); in fnic_send_frame()
1132 (char *)eth_hdr, tot_len)) != 0) { in fnic_send_frame()
1139 dma_unmap_single(&fnic->pdev->dev, pa, tot_len, DMA_TO_DEVICE); in fnic_send_frame()
1144 fnic_queue_wq_desc(wq, skb, pa, tot_len, fr_eof(fp), in fnic_send_frame()

1234567