Home
last modified time | relevance | path

Searched refs:hlen (Results 1 – 25 of 139) 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.c114 * @hlen: packet header length, if @data is NULL use skb_headlen(skb)
120 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()
163 * @hlen: packet header length
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
233 __skb_flow_dissect_esp(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,int nhoff,int hlen) __skb_flow_dissect_esp() argument
255 __skb_flow_dissect_l2tpv3(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,int nhoff,int hlen) __skb_flow_dissect_l2tpv3() argument
518 __skb_flow_dissect_mpls(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,int nhoff,int hlen,int lse_index,bool * entropy_label) __skb_flow_dissect_mpls() argument
576 __skb_flow_dissect_arp(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,int nhoff,int hlen) __skb_flow_dissect_arp() argument
632 __skb_flow_dissect_cfm(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,int nhoff,int hlen) __skb_flow_dissect_cfm() argument
797 __skb_flow_dissect_batadv(const struct sk_buff * skb,struct flow_dissector_key_control * key_control,const void * data,__be16 * p_proto,int * p_nhoff,int hlen,unsigned int flags) __skb_flow_dissect_batadv() argument
829 __skb_flow_dissect_tcp(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,int thoff,int hlen) __skb_flow_dissect_tcp() argument
854 __skb_flow_dissect_ports(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,int nhoff,u8 ip_proto,int hlen) __skb_flow_dissect_ports() argument
1005 bpf_flow_dissect(struct bpf_prog * prog,struct bpf_flow_dissector * ctx,__be16 proto,int nhoff,int hlen,unsigned int flags) bpf_flow_dissect() argument
1061 __skb_flow_dissect(const struct net * net,const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,__be16 proto,int nhoff,int hlen,unsigned int flags) __skb_flow_dissect() argument
1920 __skb_get_poff(const struct sk_buff * skb,const void * data,const struct flow_keys_basic * keys,int hlen) __skb_get_poff() argument
[all...]
H A Dgro.c734 unsigned int hlen = sizeof(*eth); in napi_frags_skb() local
739 skb_gro_reset_offset(skb, hlen); in napi_frags_skb()
741 if (unlikely(!skb_gro_may_pull(skb, hlen))) { in napi_frags_skb()
742 eth = skb_gro_header_slow(skb, hlen, 0); in napi_frags_skb()
753 gro_pull_from_frag0(skb, hlen); in napi_frags_skb()
755 NAPI_GRO_CB(skb)->frag0 += hlen; in napi_frags_skb()
756 NAPI_GRO_CB(skb)->frag0_len -= hlen; in napi_frags_skb()
758 __skb_pull(skb, hlen); in napi_frags_skb()
/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 */ member
135 .hlen = HCI_ACL_HDR_SIZE, \
142 .hlen = HCI_SCO_HDR_SIZE, \
149 .hlen = HCI_EVENT_HDR_SIZE, \
156 .hlen = HCI_ISO_HDR_SIZE, \
/linux/net/ipv4/
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 Dip_output.c599 unsigned int hlen, struct ip_fraglist_iter *iter) in ip_fraglist_init() argument
608 iter->hlen = hlen; in ip_fraglist_init()
620 unsigned int hlen = iter->hlen; in ip_fraglist_prepare() local
627 __skb_push(frag, hlen); in ip_fraglist_prepare()
629 memcpy(skb_network_header(frag), iph, hlen); in ip_fraglist_prepare()
634 iter->offset += skb->len - hlen; in ip_fraglist_prepare()
643 void ip_frag_init(struct sk_buff *skb, unsigned int hlen, in ip_frag_init() argument
650 state->hlen = hlen; in ip_frag_init()
654 state->left = skb->len - hlen; /* Space per frame */ in ip_frag_init()
655 state->ptr = hlen; /* Where to start from */ in ip_frag_init()
[all …]
H A Draw.c85 int hlen; member
339 int hlen, tlen; in raw_send_hdrinc() local
352 hlen = LL_RESERVED_SPACE(rt->dst.dev); in raw_send_hdrinc()
355 length + hlen + tlen + 15, in raw_send_hdrinc()
359 skb_reserve(skb, hlen); in raw_send_hdrinc()
440 rfv->hlen = 2; in raw_probe_proto_opt()
442 err = memcpy_from_msg(rfv->hdr.c, rfv->msg, rfv->hlen); in raw_probe_proto_opt()
457 if (offset < rfv->hlen) { in raw_getfrag()
458 int copy = min(rfv->hlen - offset, len); in raw_getfrag()
478 offset -= rfv->hlen; in raw_getfrag()
[all …]
H A Dip_tunnel.c285 int hlen = LL_MAX_HEADER; in ip_tunnel_bind_dev() local
287 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ip_tunnel_bind_dev()
316 hlen = tdev->hard_header_len + tdev->needed_headroom; in ip_tunnel_bind_dev()
320 dev->needed_headroom = t_hlen + hlen; in ip_tunnel_bind_dev()
349 t_hlen = nt->hlen + sizeof(struct iphdr); in ip_tunnel_create()
492 int hlen; in ip_tunnel_encap_setup() local
496 hlen = ip_encap_hlen(ipencap); in ip_tunnel_encap_setup()
497 if (hlen < 0) in ip_tunnel_encap_setup()
498 return hlen; in ip_tunnel_encap_setup()
505 t->encap_hlen = hlen; in ip_tunnel_encap_setup()
[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()
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()
167 int hlen, alen; libbpf_nla_dump_errormsg() local
/linux/net/ipv6/
H A Dip6_output.c722 int ip6_fraglist_init(struct sk_buff *skb, unsigned int hlen, u8 *prevhdr, in ip6_fraglist_init() argument
731 iter->tmp_hdr = kmemdup(skb_network_header(skb), hlen, GFP_ATOMIC); in ip6_fraglist_init()
739 iter->hlen = hlen; in ip6_fraglist_init()
743 __skb_pull(skb, hlen); in ip6_fraglist_init()
745 __skb_push(skb, hlen); in ip6_fraglist_init()
747 memcpy(skb_network_header(skb), iter->tmp_hdr, hlen); in ip6_fraglist_init()
767 unsigned int hlen = iter->hlen; in ip6_fraglist_prepare() local
773 __skb_push(frag, hlen); in ip6_fraglist_prepare()
775 memcpy(skb_network_header(frag), iter->tmp_hdr, hlen); in ip6_fraglist_prepare()
776 iter->offset += skb->len - hlen - sizeof(struct frag_hdr); in ip6_fraglist_prepare()
[all …]
/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.h62 int hlen; /* tun_hlen + encap_hlen */ member
92 int hlen = -EINVAL; in ip6_encap_hlen() local
103 hlen = ops->encap_hlen(e); in ip6_encap_hlen()
106 return hlen; in ip6_encap_hlen()
H A Dgue.h40 __u8 hlen:5, member
46 hlen:5;
H A Dllc_pdu.h236 int hlen = 4; /* default value for I and S types */ in llc_pdu_header_init() local
241 hlen = 3; in llc_pdu_header_init()
244 hlen = 6; in llc_pdu_header_init()
248 skb_push(skb, hlen); in llc_pdu_header_init()
/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()
430 int hlen; in mac802154_header_create() local
458 hlen = ieee802154_hdr_push(skb, &hdr); in mac802154_header_create()
459 if (hlen < 0) in mac802154_header_create()
463 skb->mac_len = hlen; in mac802154_header_create()
468 return hlen; in mac802154_header_create()
/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.c369 int hlen = ieee802154_hdr_minlen(hdr); in ieee802154_max_payload() local
372 hlen += ieee802154_sechdr_lengths[hdr->sec.key_id_mode] - 1; in ieee802154_max_payload()
373 hlen += ieee802154_sechdr_authtag_len(&hdr->sec); in ieee802154_max_payload()
376 return IEEE802154_MTU - hlen - IEEE802154_MFR_SIZE; in ieee802154_max_payload()
/linux/net/llc/
H A Dllc_sap.c51 int hlen = type == LLC_PDU_TYPE_U ? 3 : 4; in llc_alloc_frame() local
54 hlen += llc_mac_header_len(dev->type); in llc_alloc_frame()
55 skb = alloc_skb(hlen + data_size, GFP_ATOMIC); in llc_alloc_frame()
59 skb_reserve(skb, hlen); in llc_alloc_frame()
/linux/drivers/video/fbdev/matrox/
H A Dmatroxfb_maven.c831 int hlen; in maven_compute_timming() local
847 hlen = 98304 - 128 - ((lmargin + mt->HDisplay - 8) * hdec); in maven_compute_timming()
848 if (hlen < 0) in maven_compute_timming()
849 hlen = 0; in maven_compute_timming()
850 hlen = hlen >> 8; in maven_compute_timming()
851 if (hlen > 0xFF) in maven_compute_timming()
852 hlen = 0xFF; in maven_compute_timming()
878 m->regs[0xC2] = hlen; in maven_compute_timming()

123456