| /linux/drivers/macintosh/ |
| H A D | windfarm_pid.c | 37 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 D | flow_dissector.c | 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() 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 …]
|
| H A D | gro.c | 727 unsigned int hlen = sizeof(*eth); in napi_frags_skb() local 732 skb_gro_reset_offset(skb, hlen); in napi_frags_skb() 734 if (unlikely(!skb_gro_may_pull(skb, hlen))) { in napi_frags_skb() 735 eth = skb_gro_header_slow(skb, hlen, 0); in napi_frags_skb() 746 gro_pull_from_frag0(skb, hlen); in napi_frags_skb() 748 NAPI_GRO_CB(skb)->frag0 += hlen; in napi_frags_skb() 749 NAPI_GRO_CB(skb)->frag0_len -= hlen; in napi_frags_skb() 751 __skb_pull(skb, hlen); in napi_frags_skb()
|
| /linux/tools/crypto/tcrypt/ |
| H A D | tcrypt_speed_compare.py | 144 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 D | vpstate.c | 54 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 D | power_budget.c | 92 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 D | hci_uart.h | 126 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 D | gre_offload.c | 128 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 D | ip_output.c | 599 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 D | ip_tunnel.c | 285 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 D | trace_misc.h | 76 __field(u32, hlen) 84 __entry->hlen = packet->hlen; 94 __entry->hlen,
|
| /linux/tools/lib/bpf/ |
| H A D | nlattr.c | 166 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/bridge/netfilter/ |
| H A D | nf_conntrack_bridge.c | 36 unsigned int hlen, ll_rs, mtu; in nf_br_ip_fragment() local 53 hlen = iph->ihl * 4; in nf_br_ip_fragment() 54 frag_max_size -= hlen; in nf_br_ip_fragment() 63 if (first_len - hlen > mtu) in nf_br_ip_fragment() 75 skb_headroom(frag) < hlen + ll_rs) in nf_br_ip_fragment() 79 ip_fraglist_init(skb, iph, hlen, &iter); in nf_br_ip_fragment() 105 ip_frag_init(skb, hlen, ll_rs, frag_max_size, false, &state); in nf_br_ip_fragment()
|
| /linux/net/sched/ |
| H A D | sch_frag.c | 57 unsigned int hlen = skb_network_offset(skb); in sch_frag_prepare_frag() 70 data->l2_len = hlen; in sch_frag_prepare_frag() 71 memcpy(&data->l2_data, skb->data, hlen); in sch_frag_prepare_frag() 74 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 D | ip6_tunnel.h | 62 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 D | gue.h | 40 __u8 hlen:5, member 46 hlen:5;
|
| /linux/drivers/net/slip/ |
| H A D | slhc.c | 235 int nlen, hlen; in slhc_compress() local 270 hlen = nlen + th->doff * 4; in slhc_compress() 276 if(hlen > isize || th->syn || th->fin || th->rst || 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() 466 memcpy(cp+deltaS,icp+hlen,isize-hlen); in slhc_compress() 469 return isize - hlen + deltaS + (cp - ocp); in slhc_compress()
|
| /linux/net/mac802154/ |
| H A D | iface.c | 364 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 D | test_cls_redirect.h | 31 uint8_t hlen : 5, control : 1, variant : 2; member 33 uint8_t variant : 2, control : 1, hlen : 5;
|
| /linux/lib/ |
| H A D | digsig.c | 65 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 D | msg.c | 629 int hlen, dlen; in tipc_msg_reverse() local 635 hlen = msg_hdr_sz(_hdr); in tipc_msg_reverse() 643 if (hlen == SHORT_H_SIZE) in tipc_msg_reverse() 644 hlen = BASIC_H_SIZE; in tipc_msg_reverse() 651 *skb = tipc_buf_acquire(hlen + dlen, GFP_ATOMIC); in tipc_msg_reverse() 655 memcpy((*skb)->data + hlen, msg_data(_hdr), dlen); in tipc_msg_reverse() 659 msg_set_hdr_sz(hdr, hlen); in tipc_msg_reverse() 667 msg_set_size(hdr, hlen + dlen); in tipc_msg_reverse()
|
| /linux/net/ieee802154/ |
| H A D | header_ops.c | 369 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/ipv6/ |
| H A D | ip6_offload.c | 230 unsigned int hlen; in ipv6_gro_receive() local 236 hlen = off + sizeof(*iph); in ipv6_gro_receive() 237 iph = skb_gro_header(skb, hlen, off); in ipv6_gro_receive() 243 flush += ntohs(iph->payload_len) != skb->len - hlen; in ipv6_gro_receive() 248 proto = ipv6_gro_pull_exthdrs(skb, hlen, proto); in ipv6_gro_receive()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_tx.c | 694 unsigned int hlen = skb_headlen(skb); in build_inline_wqe() local 704 skb_copy_from_linear_data(skb, inl->data, hlen); in build_inline_wqe() 706 memcpy(inl->data + hlen, fragptr, in build_inline_wqe() 711 if (hlen <= spc) { in build_inline_wqe() 712 skb_copy_from_linear_data(skb, inl->data, hlen); in build_inline_wqe() 713 if (hlen < spc) { in build_inline_wqe() 714 memcpy(inl->data + hlen, in build_inline_wqe() 715 fragptr, spc - hlen); in build_inline_wqe() 716 fragptr += spc - hlen; in build_inline_wqe() 724 hlen - spc); in build_inline_wqe() [all …]
|
| /linux/net/llc/ |
| H A D | llc_sap.c | 51 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()
|