Home
last modified time | relevance | path

Searched refs:tot_len (Results 1 - 25 of 339) sorted by relevance

12345678910>>...14

/kernel/linux/linux-5.10/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...]
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-6.6/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()
52 /* IPv4 datagram length is stored into 16bit field (tot_len) */
57 iph->tot_len = len <= IP_MAX_MTU ? htons(len) : 0; in iph_set_totlen()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c118 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
162 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
208 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
235 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
378 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
381 .iph_inner.tot_len =
407 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
410 .iph_inner.tot_len =
435 .iph.tot_len = __bpf_constant_htons(MAGIC_BYTES),
439 .iph_inner.tot_len
[all...]
/kernel/linux/linux-6.6/net/ipv6/
H A Dseg6_iptunnel.c134 int hdrlen, tot_len, err; in seg6_do_srh_encap() local
138 tot_len = hdrlen + sizeof(*hdr); in seg6_do_srh_encap()
140 err = skb_cow_head(skb, tot_len + skb->mac_len); in seg6_do_srh_encap()
147 skb_push(skb, tot_len); in seg6_do_srh_encap()
196 skb_postpush_rcsum(skb, hdr, tot_len); in seg6_do_srh_encap()
215 int tot_len, err; in seg6_do_srh_encap_red() local
231 tot_len = red_hdrlen + sizeof(struct ipv6hdr); in seg6_do_srh_encap_red()
233 err = skb_cow_head(skb, tot_len + skb->mac_len); in seg6_do_srh_encap_red()
240 skb_push(skb, tot_len); in seg6_do_srh_encap_red()
315 skb_postpush_rcsum(skb, hdr, tot_len); in seg6_do_srh_encap_red()
[all...]
H A Dexthdrs.c1209 opt2 = sock_kmalloc(sk, opt->tot_len, GFP_ATOMIC); in ipv6_dup_options()
1212 memcpy(opt2, opt, opt->tot_len); in ipv6_dup_options()
1268 int tot_len = 0; in ipv6_renew_options() local
1274 tot_len += CMSG_ALIGN(ipv6_optlen(opt->hopopt)); in ipv6_renew_options()
1276 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst0opt)); in ipv6_renew_options()
1278 tot_len += CMSG_ALIGN(ipv6_optlen(opt->srcrt)); in ipv6_renew_options()
1280 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst1opt)); in ipv6_renew_options()
1284 tot_len += CMSG_ALIGN(ipv6_optlen(newopt)); in ipv6_renew_options()
1286 if (!tot_len) in ipv6_renew_options()
1289 tot_len in ipv6_renew_options()
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/ipv4/
H A 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()
/kernel/linux/linux-6.6/net/ipv4/
H A 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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dnat6to4.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()
/kernel/liteos_a/net/lwip-2.1/porting/src/
H A Ddriverif.c104 (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/liteos_m/components/net/lwip-2.1/porting/src/
H A Ddriverif.c128 (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/
H A Ddriverif.c110 (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-6.6/net/ipv4/netfilter/
H A 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()
100 if (pskb_trim_rcsum(oldskb, ntohs(ip_hdr(oldskb)->tot_len))) in nf_reject_skb_v4_unreach()
132 niph->tot_len = htons(nskb->len); in nf_reject_skb_v4_unreach()
300 niph->tot_len = htons(nskb->len); in nf_send_reset()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c105 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()
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()
/kernel/linux/linux-5.10/fs/btrfs/
H A Dlzo.c301 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-6.6/tools/testing/selftests/bpf/progs/
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.c125 iph_inner.tot_len = bpf_htons(sizeof(iph6_inner) + in __encap_ipv4()
186 h_outer.l4hdr.udp.len = bpf_htons(bpf_ntohs(iph_inner.tot_len) + in __encap_ipv4()
228 h_outer.ip.tot_len = bpf_htons(olen + in __encap_ipv4()
229 bpf_ntohs(h_outer.ip.tot_len)); in __encap_ipv4()
268 __u16 tot_len; in __encap_ipv6() local
316 tot_len = bpf_ntohs(iph_inner.payload_len) + sizeof(iph_inner) + in __encap_ipv6()
319 h_outer.l4hdr.udp.len = bpf_htons(tot_len); in __encap_ipv6()
407 h_outer.ip.payload_len = iph_inner.tot_len; in encap_ipv6_ipip6()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A 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 =
/kernel/linux/linux-5.10/drivers/net/slip/
H A 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()
/kernel/linux/linux-6.6/drivers/net/slip/
H A 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()
/kernel/linux/linux-5.10/net/ipv6/
H A Dexthdrs.c1185 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 in ipv6_renew_options()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_rx.c285 * length @tot_len includes optional head- and tail-rooms.
296 static int fun_gather_pkt(struct funeth_rxq *q, unsigned int tot_len, in fun_gather_pkt() argument
304 buf = get_buf(q, buf, tot_len); in fun_gather_pkt()
317 frag_len = min_t(unsigned int, tot_len, in fun_gather_pkt()
329 tot_len -= frag_len; in fun_gather_pkt()
330 if (!tot_len) in fun_gather_pkt()
368 unsigned int i, tot_len, pkt_len = be32_to_cpu(rxreq->pkt_len); in fun_handle_cqe_pkt() local
387 tot_len = pkt_len; in fun_handle_cqe_pkt()
390 tot_len += FUN_RX_TAILROOM + headroom; in fun_handle_cqe_pkt()
392 ref_ok = fun_gather_pkt(q, tot_len, frag in fun_handle_cqe_pkt()
[all...]

Completed in 21 milliseconds

12345678910>>...14