/Linux-v4.19/drivers/macintosh/ |
D | windfarm_pid.c | 38 int i, hlen = st->param.history_len; in wf_pid_run() local 45 for (i = 0; i < hlen; i++) { in wf_pid_run() 52 st->index = (st->index + 1) % hlen; in wf_pid_run() 58 for (i = 0, integ = 0; i < hlen; i++) in wf_pid_run() 59 integ += st->errors[(st->index + hlen - i) % hlen]; in wf_pid_run() 64 st->errors[(st->index + hlen - 1) % hlen]; in wf_pid_run() 93 int i, hlen = st->param.history_len; in wf_cpu_pid_run() local 100 for (i = 0; i < hlen; i++) { in wf_cpu_pid_run() 108 st->index = (st->index + 1) % hlen; in wf_cpu_pid_run() 116 for (i = 0, integ = 0; i < hlen; i++) in wf_cpu_pid_run() [all …]
|
/Linux-v4.19/net/core/ |
D | flow_dissector.c | 76 void *data, int hlen) in skb_flow_get_be16() argument 80 u = __skb_header_pointer(skb, poff, sizeof(_u), data, hlen, &_u); in skb_flow_get_be16() 99 void *data, int hlen) in __skb_flow_get_ports() argument 105 hlen = skb_headlen(skb); in __skb_flow_get_ports() 112 sizeof(_ports), data, hlen, &_ports); in __skb_flow_get_ports() 250 void *target_container, void *data, int nhoff, int hlen) in __skb_flow_dissect_mpls() argument 262 hlen, &_hdr); in __skb_flow_dissect_mpls() 296 void *target_container, void *data, int nhoff, int hlen) in __skb_flow_dissect_arp() argument 312 hlen, &_arp); in __skb_flow_dissect_arp() 326 hlen, &_arp_eth); in __skb_flow_dissect_arp() [all …]
|
/Linux-v4.19/drivers/bluetooth/ |
D | h4_recv.h | 28 u8 hlen; /* Header length */ member 37 .hlen = HCI_ACL_HDR_SIZE, \ 44 .hlen = HCI_SCO_HDR_SIZE, \ 51 .hlen = HCI_EVENT_HDR_SIZE, \ 80 hci_skb_expect(skb) = (&pkts[i])->hlen; in h4_recv_buf() 112 if (skb->len == (&pkts[i])->hlen) { in h4_recv_buf()
|
D | hci_uart.h | 131 u8 hlen; /* Header length */ member 140 .hlen = HCI_ACL_HDR_SIZE, \ 147 .hlen = HCI_SCO_HDR_SIZE, \ 154 .hlen = HCI_EVENT_HDR_SIZE, \
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
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()
|
D | power_budget.c | 93 budget->hlen = hdr; in nvbios_power_budget_header() 113 entry_offset = budget->offset + budget->hlen + idx * budget->elen; in nvbios_power_budget_entry()
|
/Linux-v4.19/tools/lib/bpf/ |
D | nlattr.c | 159 int hlen, alen; in nla_dump_errormsg() local 166 hlen = sizeof(*err); in nla_dump_errormsg() 170 hlen += nlmsg_len(&err->msg); in nla_dump_errormsg() 172 attr = (struct nlattr *) ((void *) err + hlen); in nla_dump_errormsg() 173 alen = nlh->nlmsg_len - hlen; in nla_dump_errormsg()
|
/Linux-v4.19/drivers/video/fbdev/matrox/ |
D | matroxfb_g450.c | 240 u_int32_t hlen; in computeRegs() local 287 hlen = hvis + hfp + hsl + hbp; in computeRegs() 288 over = hlen & 0x0F; in computeRegs() 290 dprintk(KERN_DEBUG "WL: vis=%u, hf=%u, hs=%u, hb=%u, total=%u\n", hvis, hfp, hsl, hbp, hlen); in computeRegs() 294 hlen -= over; in computeRegs() 298 hlen += 4; in computeRegs() 301 hlen += 16; in computeRegs() 313 …ntk(KERN_DEBUG "PG: vis=%04X, hf=%02X, hs=%02X, hb=%02X, total=%04X\n", hvis, hfp, hsl, hbp, hlen); in computeRegs() 318 hlen = hlen >> 1; in computeRegs() 320 dprintk(KERN_DEBUG "hlen=%u hvis=%u\n", hlen, hvis); in computeRegs() [all …]
|
/Linux-v4.19/net/ipv4/ |
D | gre_offload.c | 117 unsigned int hlen, grehlen; in gre_gro_receive() local 129 hlen = off + sizeof(*greh); in gre_gro_receive() 131 if (skb_gro_header_hard(skb, hlen)) { in gre_gro_receive() 132 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive() 169 hlen = off + grehlen; in gre_gro_receive() 170 if (skb_gro_header_hard(skb, hlen)) { in gre_gro_receive() 171 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive()
|
D | tcp_offload.c | 193 unsigned int hlen; in tcp_gro_receive() local 199 hlen = off + sizeof(*th); in tcp_gro_receive() 201 if (skb_gro_header_hard(skb, hlen)) { in tcp_gro_receive() 202 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive() 211 hlen = off + thlen; in tcp_gro_receive() 212 if (skb_gro_header_hard(skb, hlen)) { in tcp_gro_receive() 213 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive()
|
D | ip_tunnel.c | 299 int hlen = LL_MAX_HEADER; in ip_tunnel_bind_dev() local 301 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ip_tunnel_bind_dev() 330 hlen = tdev->hard_header_len + tdev->needed_headroom; in ip_tunnel_bind_dev() 334 dev->needed_headroom = t_hlen + hlen; in ip_tunnel_bind_dev() 363 t_hlen = nt->hlen + sizeof(struct iphdr); in ip_tunnel_create() 482 int hlen; in ip_tunnel_encap_setup() local 486 hlen = ip_encap_hlen(ipencap); in ip_tunnel_encap_setup() 487 if (hlen < 0) in ip_tunnel_encap_setup() 488 return hlen; in ip_tunnel_encap_setup() 495 t->encap_hlen = hlen; in ip_tunnel_encap_setup() [all …]
|
D | ip_output.c | 577 unsigned int mtu, hlen, left, len, ll_rs; in ip_do_fragment() local 602 hlen = iph->ihl * 4; in ip_do_fragment() 603 mtu = mtu - hlen; /* Size of data space */ in ip_do_fragment() 618 if (first_len - hlen > mtu || in ip_do_fragment() 619 ((first_len - hlen) & 7) || in ip_do_fragment() 629 skb_headroom(frag) < hlen + ll_rs) in ip_do_fragment() 662 __skb_push(frag, hlen); in ip_do_fragment() 664 memcpy(skb_network_header(frag), iph, hlen); in ip_do_fragment() 670 offset += skb->len - hlen; in ip_do_fragment() 716 left = skb->len - hlen; /* Space per frame */ in ip_do_fragment() [all …]
|
D | raw.c | 89 int hlen; member 360 int hlen, tlen; in raw_send_hdrinc() local 373 hlen = LL_RESERVED_SPACE(rt->dst.dev); in raw_send_hdrinc() 376 length + hlen + tlen + 15, in raw_send_hdrinc() 380 skb_reserve(skb, hlen); in raw_send_hdrinc() 460 rfv->hlen = 2; in raw_probe_proto_opt() 462 err = memcpy_from_msg(rfv->hdr.c, rfv->msg, rfv->hlen); in raw_probe_proto_opt() 477 if (offset < rfv->hlen) { in raw_getfrag() 478 int copy = min(rfv->hlen - offset, len); in raw_getfrag() 498 offset -= rfv->hlen; in raw_getfrag() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/hfi1/ |
D | trace_misc.h | 117 __field(u32, hlen) 125 __entry->hlen = packet->hlen; 135 __entry->hlen,
|
D | trace_rx.h | 72 __field(u32, hlen) 81 __entry->hlen = packet->hlen; 92 __entry->hlen,
|
/Linux-v4.19/include/net/ |
D | ip6_tunnel.h | 61 int hlen; /* tun_hlen + encap_hlen */ member 89 int hlen = -EINVAL; in ip6_encap_hlen() local 100 hlen = ops->encap_hlen(e); in ip6_encap_hlen() 103 return hlen; in ip6_encap_hlen()
|
D | gue.h | 37 __u8 hlen:5, member 43 hlen:5;
|
/Linux-v4.19/drivers/net/slip/ |
D | slhc.c | 235 int hlen; in slhc_compress() local 264 hlen = ip->ihl*4 + th->doff*4; in slhc_compress() 270 if(hlen > isize || th->syn || th->fin || th->rst || in slhc_compress() 400 ntohs(cs->cs_ip.tot_len) == hlen) in slhc_compress() 411 deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress() 418 if(deltaS == ntohs(cs->cs_ip.tot_len) - hlen){ in slhc_compress() 460 memcpy(cp+deltaS,icp+hlen,isize-hlen); in slhc_compress() 463 return isize - hlen + deltaS + (cp - ocp); in slhc_compress()
|
/Linux-v4.19/net/mac802154/ |
D | iface.c | 380 int hlen; in ieee802154_header_create() local 412 hlen = ieee802154_hdr_push(skb, &hdr); in ieee802154_header_create() 413 if (hlen < 0) in ieee802154_header_create() 417 skb->mac_len = hlen; in ieee802154_header_create() 422 return hlen; in ieee802154_header_create() 446 int hlen; in mac802154_header_create() local 474 hlen = ieee802154_hdr_push(skb, &hdr); in mac802154_header_create() 475 if (hlen < 0) in mac802154_header_create() 479 skb->mac_len = hlen; in mac802154_header_create() 484 return hlen; in mac802154_header_create()
|
D | rx.c | 142 int hlen; in ieee802154_parse_frame_start() local 147 hlen = ieee802154_hdr_pull(skb, hdr); in ieee802154_parse_frame_start() 148 if (hlen < 0) in ieee802154_parse_frame_start() 151 skb->mac_len = hlen; in ieee802154_parse_frame_start()
|
/Linux-v4.19/drivers/net/wan/ |
D | dlci.c | 74 unsigned int hlen; in dlci_header() local 82 hlen = sizeof(hdr.control) + sizeof(hdr.IP_NLPID); in dlci_header() 92 hlen = sizeof(hdr); in dlci_header() 96 dest = skb_push(skb, hlen); in dlci_header() 100 memcpy(dest, &hdr, hlen); in dlci_header() 102 return hlen; in dlci_header()
|
/Linux-v4.19/net/ipv6/ |
D | ip6_output.c | 589 unsigned int mtu, hlen, left, len; in ip6_fragment() local 598 hlen = err; in ip6_fragment() 623 if (mtu < hlen + sizeof(struct frag_hdr) + 8) in ip6_fragment() 625 mtu -= hlen + sizeof(struct frag_hdr); in ip6_fragment() 639 if (first_len - hlen > mtu || in ip6_fragment() 640 ((first_len - hlen) & 7) || in ip6_fragment() 649 skb_headroom(frag) < (hlen + hroom + sizeof(struct frag_hdr))) in ip6_fragment() 669 tmp_hdr = kmemdup(skb_network_header(skb), hlen, GFP_ATOMIC); in ip6_fragment() 677 __skb_pull(skb, hlen); in ip6_fragment() 679 __skb_push(skb, hlen); in ip6_fragment() [all …]
|
/Linux-v4.19/net/ieee802154/ |
D | header_ops.c | 317 int hlen = ieee802154_hdr_minlen(hdr); in ieee802154_max_payload() local 320 hlen += ieee802154_sechdr_lengths[hdr->sec.key_id_mode] - 1; in ieee802154_max_payload() 321 hlen += ieee802154_sechdr_authtag_len(&hdr->sec); in ieee802154_max_payload() 324 return IEEE802154_MTU - hlen - IEEE802154_MFR_SIZE; in ieee802154_max_payload()
|
/Linux-v4.19/lib/ |
D | digsig.c | 72 const char *h, int hlen) in digsig_verify_rsa() argument 172 if (!m || len != hlen || memcmp(m, h, hlen)) in digsig_verify_rsa()
|
/Linux-v4.19/drivers/rpmsg/ |
D | qcom_glink_rpm.c | 150 const void *hdr, size_t hlen, in glink_rpm_tx_write() argument 154 size_t tlen = hlen + dlen; in glink_rpm_tx_write() 161 if (WARN(hlen % 4, "Glink Header length must be 4 bytes aligned\n")) in glink_rpm_tx_write() 173 head = glink_rpm_tx_write_one(pipe, head, hdr, hlen); in glink_rpm_tx_write()
|