Home
last modified time | relevance | path

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

123456

/linux/drivers/mtd/lpddr/
H A 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/include/linux/
H A Dip.h36 return ntohs(ip_hdr(skb)->tot_len) - skb_network_header_len(skb); in ip_transport_len()
41 u32 len = ntohs(iph->tot_len); in iph_totlen()
57 iph->tot_len = len <= IP_MAX_MTU ? htons(len) : 0; in iph_set_totlen()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c105 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
149 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
195 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
222 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
365 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
368 .iph_inner.tot_len =
394 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
397 .iph_inner.tot_len =
422 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
426 .iph_inner.tot_len =
[all …]
H A Dfib_lookup.c101 __u16 tot_len; /* triggers the in-lookup mtu check when set */ member
275 .tot_len = 500, .expected_mtu = 1000,
281 .tot_len = 1400, .expected_mtu = 1000,
607 params->tot_len = test->tot_len; in set_lookup_params()
842 if (tests[i].expected_mtu && tests[i].tot_len) in test_fib_lookup()
/linux/tools/testing/selftests/net/
H A Dnat6to4.bpf.c98 .tot_len = bpf_htons(bpf_ntohs(ip6->payload_len) + sizeof(struct iphdr)), // u16 in sched_cls_ingress6_nat_6_prog()
179 if (bpf_htons(ip4->tot_len) > 0xFFFF - sizeof(struct ipv6hdr)) in sched_cls_egress4_snat4_prog()
196 if (bpf_ntohs(ip4->tot_len) < sizeof(*ip4)) in sched_cls_egress4_snat4_prog()
233 .payload_len = bpf_htons(bpf_ntohs(ip4->tot_len) - 20), // __be16 in sched_cls_egress4_snat4_prog()
/linux/samples/bpf/
H A 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()
H A 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/tools/testing/selftests/bpf/progs/
H A Dxdp_flowtable.c104 tuple.tot_len = bpf_ntohs(iph->tot_len); in xdp_flowtable_do_lookup()
129 tuple.tot_len = bpf_ntohs(ip6h->payload_len); in xdp_flowtable_do_lookup()
H A 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()
H A Dtest_tc_tunnel.c138 iph_inner.tot_len = bpf_htons(sizeof(iph6_inner) + in __encap_ipv4()
199 h_outer.l4hdr.udp.len = bpf_htons(bpf_ntohs(iph_inner.tot_len) + in __encap_ipv4()
241 h_outer.ip.tot_len = bpf_htons(olen + in __encap_ipv4()
242 bpf_ntohs(h_outer.ip.tot_len)); in __encap_ipv4()
281 __u16 tot_len; in __encap_ipv6() local
329 tot_len = bpf_ntohs(iph_inner.payload_len) + sizeof(iph_inner) + in __encap_ipv6()
332 h_outer.l4hdr.udp.len = bpf_htons(tot_len); in __encap_ipv6()
419 h_outer.ip.payload_len = iph_inner.tot_len; in encap_ipv6_ipip6()
H A Dtest_xdp.c105 payload_len = bpf_ntohs(iph->tot_len); in handle_ipv4()
135 iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); in handle_ipv4()
H A Dtest_xdp_loop.c101 payload_len = bpf_ntohs(iph->tot_len); in handle_ipv4()
131 iph->tot_len = bpf_htons(payload_len + sizeof(*iph)); in handle_ipv4()
H A Dtest_lwt_ip_encap.c37 hdr.iph.tot_len = bpf_htons(skb->len + sizeof(struct encap_hdr)); in bpf_lwt_encap_gre()
116 hdr.iph.tot_len = bpf_htons(skb->len + sizeof(hdr));
H A Dtest_xdp_dynptr.c114 payload_len = bpf_ntohs(iph->tot_len); in handle_ipv4()
143 iph->tot_len = bpf_htons(payload_len + iphdr_sz); in handle_ipv4()
/linux/drivers/net/netdevsim/
H A 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/net/ipv4/
H A Dxfrm4_input.c63 iph->tot_len = htons(skb->len); in xfrm4_transport_finish()
134 iph->tot_len = htons(ntohs(iph->tot_len) - len); in __xfrm4_udp_encap_rcv()
/linux/net/dccp/
H A Doptions.c
/linux/net/ipv4/netfilter/
H A Dnf_reject_ipv4.c37 len = ntohs(iph->tot_len); in nf_reject_iphdr_validate()
77 niph->tot_len = htons(nskb->len); in nf_reject_skb_v4_tcp_reset()
135 if (pskb_trim_rcsum(oldskb, ntohs(ip_hdr(oldskb)->tot_len))) in nf_reject_skb_v4_unreach()
167 niph->tot_len = htons(nskb->len); in nf_reject_skb_v4_unreach()
331 niph->tot_len = htons(nskb->len); in nf_send_reset()
/linux/net/ipv6/
H A Dseg6_iptunnel.c150 int hdrlen, tot_len, err; in __seg6_do_srh_encap() local
154 tot_len = hdrlen + sizeof(*hdr); in __seg6_do_srh_encap()
156 err = skb_cow_head(skb, tot_len + dst_dev_overhead(cache_dst, skb)); in __seg6_do_srh_encap()
163 skb_push(skb, tot_len); in __seg6_do_srh_encap()
212 skb_postpush_rcsum(skb, hdr, tot_len); in __seg6_do_srh_encap()
240 int tot_len, err; in seg6_do_srh_encap_red() local
256 tot_len = red_hdrlen + sizeof(struct ipv6hdr); in seg6_do_srh_encap_red()
258 err = skb_cow_head(skb, tot_len + dst_dev_overhead(cache_dst, skb)); in seg6_do_srh_encap_red()
265 skb_push(skb, tot_len); in seg6_do_srh_encap_red()
340 skb_postpush_rcsum(skb, hdr, tot_len); in seg6_do_srh_encap_red()
/linux/net/sched/
H A Dact_csum.c405 ntohs(iph->tot_len))) in tcf_csum_ipv4()
411 ntohs(iph->tot_len))) in tcf_csum_ipv4()
417 ntohs(iph->tot_len))) in tcf_csum_ipv4()
423 ntohs(iph->tot_len), 0)) in tcf_csum_ipv4()
429 ntohs(iph->tot_len), 1)) in tcf_csum_ipv4()
434 !tcf_csum_sctp(skb, iph->ihl * 4, ntohs(iph->tot_len))) in tcf_csum_ipv4()
/linux/net/psp/
H A Dpsp_main.c270 be16_add_cpu(&ip_hdr(skb)->tot_len, PSP_ENCAP_HLEN); in psp_dev_encapsulate()
380 if (unlikely(ntohs(iph->tot_len) < l3_hlen + encap)) in psp_dev_rcv()
384 iph->tot_len = htons(ntohs(iph->tot_len) - encap); in psp_dev_rcv()
/linux/net/netfilter/
H A 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()
/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_tx.c516 unsigned int idx, nfrags = 1, ndesc = 1, tot_len = xdpf->len; in fun_xdp_tx() local
527 tot_len = xdp_get_frame_len(xdpf); in fun_xdp_tx()
554 req->dataop = FUN_DATAOP_HDR_INIT(nfrags, 0, nfrags, 0, tot_len); in fun_xdp_tx()
561 q->stats.tx_bytes += tot_len; in fun_xdp_tx()
565 trace_funeth_tx(q, tot_len, idx, nfrags); in fun_xdp_tx()
/linux/tools/testing/selftests/drivers/net/
H A Dgro.c
/linux/drivers/crypto/bcm/
H A Dutil.h97 u8 from_nents, u32 tot_len);

123456