Home
last modified time | relevance | path

Searched refs:hlen (Results 1 – 25 of 148) sorted by relevance

123456

/linux/drivers/macintosh/
H A Dwindfarm_pid.c37 int i, hlen = st->param.history_len; in wf_pid_run() local
44 for (i = 0; i < hlen; i++) { in wf_pid_run()
51 st->index = (st->index + 1) % hlen; in wf_pid_run()
57 for (i = 0, integ = 0; i < hlen; i++) in wf_pid_run()
58 integ += st->errors[(st->index + hlen - i) % hlen]; in wf_pid_run()
63 st->errors[(st->index + hlen - 1) % hlen]; in wf_pid_run()
92 int i, hlen = st->param.history_len; in wf_cpu_pid_run() local
99 for (i = 0; i < hlen; i++) { in wf_cpu_pid_run()
107 st->index = (st->index + 1) % hlen; in wf_cpu_pid_run()
115 for (i = 0, integ = 0; i < hlen; i++) in wf_cpu_pid_run()
[all …]
/linux/net/core/
H A Dflow_dissector.c120 const void *data, int hlen) in skb_flow_get_ports() argument
126 hlen = skb_headlen(skb); in skb_flow_get_ports()
133 sizeof(_ports), data, hlen, &_ports); in skb_flow_get_ports()
167 const void *data, int thoff, int hlen) in skb_flow_get_icmp_tci() argument
171 ih = __skb_header_pointer(skb, thoff, sizeof(_ih), data, hlen, &_ih); in skb_flow_get_icmp_tci()
194 int thoff, int hlen) in __skb_flow_dissect_icmp() argument
205 skb_flow_get_icmp_tci(skb, key_icmp, data, thoff, hlen); in __skb_flow_dissect_icmp()
211 int nhoff, int hlen) in __skb_flow_dissect_ah() argument
219 hdr = __skb_header_pointer(skb, nhoff, sizeof(_hdr), data, hlen, &_hdr); in __skb_flow_dissect_ah()
233 int nhoff, int hlen) in __skb_flow_dissect_esp() argument
[all …]
/linux/net/ipv6/
H A Dnetfilter.c123 unsigned int mtu, hlen, nexthdr_offset; in br_ip6_fragment() local
130 hlen = err; in br_ip6_fragment()
140 if (mtu < hlen + sizeof(struct frag_hdr) + 8) in br_ip6_fragment()
142 mtu -= hlen + sizeof(struct frag_hdr); in br_ip6_fragment()
158 if (first_len - hlen > mtu) in br_ip6_fragment()
171 skb_headroom(frag2) < (hlen + hroom + sizeof(struct frag_hdr))) in br_ip6_fragment()
175 err = ip6_fraglist_init(skb, hlen, prevhdr, nexthdr, frag_id, in br_ip6_fragment()
207 ip6_frag_init(skb, hlen, mtu, skb->dev->needed_tailroom, in br_ip6_fragment()
H A Dip6_output.c724 int ip6_fraglist_init(struct sk_buff *skb, unsigned int hlen, u8 *prevhdr, in ip6_fraglist_init() argument
733 iter->tmp_hdr = kmemdup(skb_network_header(skb), hlen, GFP_ATOMIC); in ip6_fraglist_init()
741 iter->hlen = hlen; in ip6_fraglist_init()
745 __skb_pull(skb, hlen); in ip6_fraglist_init()
747 __skb_push(skb, hlen); in ip6_fraglist_init()
749 memcpy(skb_network_header(skb), iter->tmp_hdr, hlen); in ip6_fraglist_init()
769 unsigned int hlen = iter->hlen; in ip6_fraglist_prepare() local
775 __skb_push(frag, hlen); in ip6_fraglist_prepare()
790 ip6_frag_init(struct sk_buff * skb,unsigned int hlen,unsigned int mtu,unsigned short needed_tailroom,int hdr_room,u8 * prevhdr,u8 nexthdr,__be32 frag_id,struct ip6_frag_state * state) ip6_frag_init() argument
896 unsigned int mtu, hlen, nexthdr_offset; ip6_fragment() local
[all...]
H A Draw.c605 int hlen = LL_RESERVED_SPACE(rt->dst.dev); in rawv6_send_hdrinc()
618 length + hlen + tlen + 15, in rawv6_send_hdrinc()
622 skb_reserve(skb, hlen); in rawv6_send_hdrinc()
690 int hlen; in rawv6_probe_proto_opt()
699 rfv->hlen = 2; in rawv6_probe_proto_opt()
700 err = memcpy_from_msg(rfv->c, rfv->msg, rfv->hlen); in rawv6_probe_proto_opt()
707 rfv->hlen = 4; in rawv6_probe_proto_opt()
708 err = memcpy_from_msg(rfv->c, rfv->msg, rfv->hlen); in rawv6_probe_proto_opt()
720 if (offset < rfv->hlen) { in raw6_getfrag()
721 int copy = min(rfv->hlen in raw6_getfrag()
604 int hlen = LL_RESERVED_SPACE(rt->dst.dev); rawv6_send_hdrinc() local
686 int hlen; global() member
[all...]
H A Dip6_offload.c223 unsigned int hlen; in ipv6_gro_receive()
229 hlen = off + sizeof(*iph); in ipv6_gro_receive()
230 iph = skb_gro_header(skb, hlen, off); in ipv6_gro_receive()
236 flush += ntohs(iph->payload_len) != skb->len - hlen; in ipv6_gro_receive()
241 proto = ipv6_gro_pull_exthdrs(skb, hlen, proto); in ipv6_gro_receive()
215 unsigned int hlen; ipv6_gro_receive() local
/linux/tools/crypto/tcrypt/
H A Dtcrypt_speed_compare.py144 hlen = 80
145 print("="*hlen)
148 print("-"*hlen)
172 print('-'*hlen)
174 print('-'*hlen)
176 print('='*hlen)
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dvpstate.c54 h->hlen = nvbios_rd08(b, h->offset + 0x1); in nvbios_vpstate_parse()
61 if (h->hlen > 0x10) in nvbios_vpstate_parse()
65 if (h->hlen > 0x11) in nvbios_vpstate_parse()
84 offset = h->offset + h->hlen + idx * (h->elen + (h->slen * h->scount)); in nvbios_vpstate_entry()
H A Dpower_budget.c92 budget->hlen = hdr; in nvbios_power_budget_header()
112 entry_offset = budget->offset + budget->hlen + idx * budget->elen; in nvbios_power_budget_entry()
/linux/drivers/bluetooth/
H A Dhci_uart.h126 u8 hlen; /* Header length */ global() member
/linux/net/ipv4/
H A Dip_output.c598 unsigned int hlen, struct ip_fraglist_iter *iter) in ip_fraglist_init() argument
607 iter->hlen = hlen; in ip_fraglist_init()
619 unsigned int hlen = iter->hlen; in ip_fraglist_prepare() local
626 __skb_push(frag, hlen); in ip_fraglist_prepare()
628 memcpy(skb_network_header(frag), iph, hlen); in ip_fraglist_prepare()
633 iter->offset += skb->len - hlen; in ip_fraglist_prepare()
642 void ip_frag_init(struct sk_buff *skb, unsigned int hlen, in ip_frag_init() argument
649 state->hlen in ip_frag_init()
767 unsigned int mtu, hlen, ll_rs; ip_do_fragment() local
[all...]
H A Dgre_offload.c128 unsigned int hlen, grehlen; in gre_gro_receive() local
140 hlen = off + sizeof(*greh); in gre_gro_receive()
141 greh = skb_gro_header(skb, hlen, off); in gre_gro_receive()
176 hlen = off + grehlen; in gre_gro_receive()
177 if (!skb_gro_may_pull(skb, hlen)) { in gre_gro_receive()
178 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive()
H A Draw.c85 int hlen; member
346 int hlen, tlen; in raw_send_hdrinc()
359 hlen = LL_RESERVED_SPACE(rt->dst.dev); in raw_send_hdrinc()
362 length + hlen + tlen + 15, in raw_send_hdrinc()
366 skb_reserve(skb, hlen); in raw_send_hdrinc()
447 rfv->hlen = 2; in raw_probe_proto_opt()
449 err = memcpy_from_msg(rfv->hdr.c, rfv->msg, rfv->hlen); in raw_probe_proto_opt()
464 if (offset < rfv->hlen) { in raw_getfrag()
465 int copy = min(rfv->hlen - offset, len); in raw_getfrag()
485 offset -= rfv->hlen; in raw_getfrag()
345 int hlen, tlen; raw_send_hdrinc() local
[all...]
H A Dip_tunnel.c291 int hlen = LL_MAX_HEADER; in ip_tunnel_bind_dev()
293 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ip_tunnel_bind_dev()
322 hlen = tdev->hard_header_len + tdev->needed_headroom; in ip_tunnel_bind_dev()
326 dev->needed_headroom = ip_tunnel_limit_headroom(t_hlen + hlen); in ip_tunnel_bind_dev()
355 t_hlen = nt->hlen + sizeof(struct iphdr); in ip_tunnel_create()
498 int hlen; in ip_tunnel_encap_setup()
500 hlen = ip_encap_hlen(ipencap); in ip_tunnel_encap_setup()
501 if (hlen < 0) in ip_tunnel_encap_setup()
502 return hlen; in ip_tunnel_encap_setup()
509 WRITE_ONCE(t->encap_hlen, hlen); in ip_tunnel_encap_setup()
285 int hlen = LL_MAX_HEADER; ip_tunnel_bind_dev() local
492 int hlen; ip_tunnel_encap_setup() local
[all...]
/linux/drivers/infiniband/hw/hfi1/
H A Dtrace_misc.h76 __field(u32, hlen)
84 __entry->hlen = packet->hlen;
94 __entry->hlen,
/linux/tools/lib/bpf/
H A Dnlattr.c166 int hlen, alen; in libbpf_nla_dump_errormsg() local
173 hlen = sizeof(*err); in libbpf_nla_dump_errormsg()
177 hlen += nlmsg_len(&err->msg); in libbpf_nla_dump_errormsg()
179 attr = (struct nlattr *) ((void *) err + hlen); in libbpf_nla_dump_errormsg()
/linux/net/bridge/netfilter/
H A Dnf_conntrack_bridge.c35 unsigned int hlen, ll_rs, mtu; in nf_br_ip_fragment() local
56 hlen = iph->ihl * 4; in nf_br_ip_fragment()
57 frag_max_size -= hlen; in nf_br_ip_fragment()
66 if (first_len - hlen > mtu) in nf_br_ip_fragment()
78 skb_headroom(frag) < hlen + ll_rs) in nf_br_ip_fragment()
82 ip_fraglist_init(skb, iph, hlen, &iter); in nf_br_ip_fragment()
108 ip_frag_init(skb, hlen, ll_rs, frag_max_size, false, &state); in nf_br_ip_fragment()
/linux/net/sched/
H A Dsch_frag.c58 unsigned int hlen = skb_network_offset(skb); in sch_frag_prepare_frag()
71 data->l2_len = hlen; in sch_frag_prepare_frag()
72 memcpy(&data->l2_data, skb->data, hlen);
75 skb_pull(skb, hlen); in sch_frag_dst_get_mtu()
53 unsigned int hlen = skb_network_offset(skb); sch_frag_prepare_frag() local
/linux/include/net/
H A Dip6_tunnel.h63 int hlen; /* tun_hlen + encap_hlen */
93 int hlen = -EINVAL; in ip6_encap_hlen()
104 hlen = ops->encap_hlen(e); in ip6_encap_hlen()
107 return hlen; in ip6_encap_hlen()
62 int hlen; /* tun_hlen + encap_hlen */ global() member
92 int hlen = -EINVAL; ip6_encap_hlen() local
H A Dgue.h40 __u8 hlen:5, member
46 hlen:5;
/linux/net/mac802154/
H A Diface.c364 int hlen; in ieee802154_header_create() local
396 hlen = ieee802154_hdr_push(skb, &hdr); in ieee802154_header_create()
397 if (hlen < 0) in ieee802154_header_create()
401 skb->mac_len = hlen; in ieee802154_header_create()
406 return hlen; in ieee802154_header_create()
431 int hlen; in mac802154_header_create()
459 hlen = ieee802154_hdr_push(skb, &hdr); in mac802154_header_create()
460 if (hlen < 0) in mac802154_header_create()
464 skb->mac_len = hlen; in mac802154_header_create()
469 return hlen; in mac802154_header_create()
430 int hlen; mac802154_header_create() local
[all...]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_cls_redirect.h31 uint8_t hlen : 5, control : 1, variant : 2; member
33 uint8_t variant : 2, control : 1, hlen : 5;
/linux/lib/
H A Ddigsig.c65 const char *h, int hlen) in digsig_verify_rsa() argument
164 if (!m || len != hlen || memcmp(m, h, hlen)) in digsig_verify_rsa()
/linux/net/tipc/
H A Dmsg.c641 int hlen, dlen; in tipc_msg_reverse()
647 hlen = msg_hdr_sz(_hdr); in tipc_msg_reverse()
655 if (hlen == SHORT_H_SIZE) in tipc_msg_reverse()
656 hlen = BASIC_H_SIZE; in tipc_msg_reverse()
663 *skb = tipc_buf_acquire(hlen + dlen, GFP_ATOMIC); in tipc_msg_reverse()
667 memcpy((*skb)->data + hlen, msg_data(_hdr), dlen); in tipc_msg_reverse()
671 msg_set_hdr_sz(hdr, hlen); in tipc_msg_reverse()
679 msg_set_size(hdr, hlen + dlen); in tipc_msg_skb_clone()
629 int hlen, dlen; tipc_msg_reverse() local
/linux/net/ieee802154/
H A Dheader_ops.c372 int hlen = ieee802154_hdr_minlen(hdr); in ieee802154_max_payload() local
375 hlen += ieee802154_sechdr_lengths[hdr->sec.key_id_mode] - 1; in ieee802154_max_payload()
376 hlen += ieee802154_sechdr_authtag_len(&hdr->sec); in ieee802154_max_payload()
379 return IEEE802154_MTU - hlen - IEEE802154_MFR_SIZE; in ieee802154_max_payload()

123456