/Linux-v5.10/drivers/macintosh/ |
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-v5.10/net/core/ |
D | flow_dissector.c | 116 void *data, int hlen) in __skb_flow_get_ports() argument 122 hlen = skb_headlen(skb); in __skb_flow_get_ports() 129 sizeof(_ports), data, hlen, &_ports); in __skb_flow_get_ports() 163 void *data, int thoff, int hlen) in skb_flow_get_icmp_tci() argument 167 ih = __skb_header_pointer(skb, thoff, sizeof(_ih), data, hlen, &_ih); in skb_flow_get_icmp_tci() 190 void *data, int thoff, int hlen) in __skb_flow_dissect_icmp() argument 201 skb_flow_get_icmp_tci(skb, key_icmp, data, thoff, hlen); in __skb_flow_dissect_icmp() 406 void *target_container, void *data, int nhoff, int hlen, in __skb_flow_dissect_mpls() argument 421 hlen, &_hdr); in __skb_flow_dissect_mpls() 464 void *target_container, void *data, int nhoff, int hlen) in __skb_flow_dissect_arp() argument [all …]
|
/Linux-v5.10/drivers/bluetooth/ |
D | h4_recv.h | 13 u8 hlen; /* Header length */ member 22 .hlen = HCI_ACL_HDR_SIZE, \ 29 .hlen = HCI_SCO_HDR_SIZE, \ 36 .hlen = HCI_EVENT_HDR_SIZE, \ 66 hci_skb_expect(skb) = (&pkts[i])->hlen; in h4_recv_buf() 98 if (skb->len == (&pkts[i])->hlen) { in h4_recv_buf()
|
D | hci_uart.h | 118 u8 hlen; /* Header length */ member 127 .hlen = HCI_ACL_HDR_SIZE, \ 134 .hlen = HCI_SCO_HDR_SIZE, \ 141 .hlen = HCI_EVENT_HDR_SIZE, \ 148 .hlen = HCI_ISO_HDR_SIZE, \
|
/Linux-v5.10/net/ipv6/ |
D | netfilter.c | 125 unsigned int mtu, hlen; in br_ip6_fragment() local 132 hlen = err; in br_ip6_fragment() 141 if (mtu < hlen + sizeof(struct frag_hdr) + 8) in br_ip6_fragment() 143 mtu -= hlen + sizeof(struct frag_hdr); in br_ip6_fragment() 158 if (first_len - hlen > mtu || in br_ip6_fragment() 167 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()
|
D | ip6_output.c | 598 int ip6_fraglist_init(struct sk_buff *skb, unsigned int hlen, u8 *prevhdr, in ip6_fraglist_init() argument 607 iter->tmp_hdr = kmemdup(skb_network_header(skb), hlen, GFP_ATOMIC); in ip6_fraglist_init() 615 iter->hlen = hlen; in ip6_fraglist_init() 619 __skb_pull(skb, hlen); in ip6_fraglist_init() 621 __skb_push(skb, hlen); in ip6_fraglist_init() 623 memcpy(skb_network_header(skb), iter->tmp_hdr, hlen); in ip6_fraglist_init() 643 unsigned int hlen = iter->hlen; in ip6_fraglist_prepare() local 649 __skb_push(frag, hlen); in ip6_fraglist_prepare() 651 memcpy(skb_network_header(frag), iter->tmp_hdr, hlen); in ip6_fraglist_prepare() 652 iter->offset += skb->len - hlen - sizeof(struct frag_hdr); in ip6_fraglist_prepare() [all …]
|
/Linux-v5.10/drivers/net/ethernet/google/gve/ |
D | gve_tx.c | 290 int hlen; in gve_skb_fifo_bytes_required() local 292 hlen = skb_is_gso(skb) ? skb_checksum_start_offset(skb) + in gve_skb_fifo_bytes_required() 296 hlen); in gve_skb_fifo_bytes_required() 298 align_hdr_pad = L1_CACHE_ALIGN(hlen) - hlen; in gve_skb_fifo_bytes_required() 356 u16 hlen, u64 addr) in gve_tx_fill_pkt_desc() argument 374 pkt_desc->pkt.seg_len = cpu_to_be16(hlen); in gve_tx_fill_pkt_desc() 410 int pad_bytes, hlen, hdr_nfrags, payload_nfrags, l4_hdr_offset; in gve_tx_add_skb() local 429 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : in gve_tx_add_skb() 436 pad_bytes = gve_tx_fifo_pad_alloc_one_frag(&tx->tx_fifo, hlen); in gve_tx_add_skb() 437 hdr_nfrags = gve_tx_alloc_fifo(&tx->tx_fifo, hlen + pad_bytes, in gve_tx_add_skb() [all …]
|
/Linux-v5.10/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()
|
/Linux-v5.10/tools/lib/bpf/ |
D | nlattr.c | 167 int hlen, alen; in libbpf_nla_dump_errormsg() local 174 hlen = sizeof(*err); in libbpf_nla_dump_errormsg() 178 hlen += nlmsg_len(&err->msg); in libbpf_nla_dump_errormsg() 180 attr = (struct nlattr *) ((void *) err + hlen); in libbpf_nla_dump_errormsg() 181 alen = nlh->nlmsg_len - hlen; in libbpf_nla_dump_errormsg()
|
/Linux-v5.10/drivers/video/fbdev/matrox/ |
D | matroxfb_g450.c | 241 u_int32_t hlen; in computeRegs() local 288 hlen = hvis + hfp + hsl + hbp; in computeRegs() 289 over = hlen & 0x0F; in computeRegs() 291 dprintk(KERN_DEBUG "WL: vis=%u, hf=%u, hs=%u, hb=%u, total=%u\n", hvis, hfp, hsl, hbp, hlen); in computeRegs() 295 hlen -= over; in computeRegs() 299 hlen += 4; in computeRegs() 302 hlen += 16; in computeRegs() 314 …ntk(KERN_DEBUG "PG: vis=%04X, hf=%02X, hs=%02X, hb=%02X, total=%04X\n", hvis, hfp, hsl, hbp, hlen); in computeRegs() 319 hlen = hlen >> 1; in computeRegs() 321 dprintk(KERN_DEBUG "hlen=%u hvis=%u\n", hlen, hvis); in computeRegs() [all …]
|
/Linux-v5.10/net/ipv4/ |
D | gre_offload.c | 122 unsigned int hlen, grehlen; in gre_gro_receive() local 134 hlen = off + sizeof(*greh); in gre_gro_receive() 136 if (skb_gro_header_hard(skb, hlen)) { in gre_gro_receive() 137 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive() 174 hlen = off + grehlen; in gre_gro_receive() 175 if (skb_gro_header_hard(skb, hlen)) { in gre_gro_receive() 176 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive()
|
D | tcp_offload.c | 190 unsigned int hlen; in tcp_gro_receive() local 196 hlen = off + sizeof(*th); in tcp_gro_receive() 198 if (skb_gro_header_hard(skb, hlen)) { in tcp_gro_receive() 199 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive() 208 hlen = off + thlen; in tcp_gro_receive() 209 if (skb_gro_header_hard(skb, hlen)) { in tcp_gro_receive() 210 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive()
|
D | ip_output.c | 597 unsigned int hlen, struct ip_fraglist_iter *iter) in ip_fraglist_init() argument 606 iter->hlen = hlen; in ip_fraglist_init() 630 unsigned int hlen = iter->hlen; in ip_fraglist_prepare() local 637 __skb_push(frag, hlen); in ip_fraglist_prepare() 639 memcpy(skb_network_header(frag), iph, hlen); in ip_fraglist_prepare() 644 iter->offset += skb->len - hlen; in ip_fraglist_prepare() 653 void ip_frag_init(struct sk_buff *skb, unsigned int hlen, in ip_frag_init() argument 660 state->hlen = hlen; in ip_frag_init() 664 state->left = skb->len - hlen; /* Space per frame */ in ip_frag_init() 665 state->ptr = hlen; /* Where to start from */ in ip_frag_init() [all …]
|
D | ip_tunnel.c | 284 int hlen = LL_MAX_HEADER; in ip_tunnel_bind_dev() local 286 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ip_tunnel_bind_dev() 315 hlen = tdev->hard_header_len + tdev->needed_headroom; in ip_tunnel_bind_dev() 319 dev->needed_headroom = t_hlen + hlen; in ip_tunnel_bind_dev() 348 t_hlen = nt->hlen + sizeof(struct iphdr); in ip_tunnel_create() 461 int hlen; in ip_tunnel_encap_setup() local 465 hlen = ip_encap_hlen(ipencap); in ip_tunnel_encap_setup() 466 if (hlen < 0) in ip_tunnel_encap_setup() 467 return hlen; in ip_tunnel_encap_setup() 474 t->encap_hlen = hlen; in ip_tunnel_encap_setup() [all …]
|
/Linux-v5.10/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-v5.10/include/net/ |
D | ip6_tunnel.h | 61 int hlen; /* tun_hlen + encap_hlen */ member 91 int hlen = -EINVAL; in ip6_encap_hlen() local 102 hlen = ops->encap_hlen(e); in ip6_encap_hlen() 105 return hlen; in ip6_encap_hlen()
|
D | gue.h | 37 __u8 hlen:5, member 43 hlen:5;
|
/Linux-v5.10/net/bridge/netfilter/ |
D | nf_conntrack_bridge.c | 35 unsigned int hlen, ll_rs, mtu; in nf_br_ip_fragment() local 52 hlen = iph->ihl * 4; in nf_br_ip_fragment() 53 frag_max_size -= hlen; in nf_br_ip_fragment() 62 if (first_len - hlen > mtu || in nf_br_ip_fragment() 71 skb_headroom(frag) < hlen + ll_rs) in nf_br_ip_fragment() 78 ip_fraglist_init(skb, iph, hlen, &iter); in nf_br_ip_fragment() 98 ip_frag_init(skb, hlen, ll_rs, frag_max_size, false, &state); in nf_br_ip_fragment()
|
/Linux-v5.10/drivers/net/slip/ |
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-v5.10/net/mac802154/ |
D | iface.c | 372 int hlen; in ieee802154_header_create() local 404 hlen = ieee802154_hdr_push(skb, &hdr); in ieee802154_header_create() 405 if (hlen < 0) in ieee802154_header_create() 409 skb->mac_len = hlen; in ieee802154_header_create() 414 return hlen; in ieee802154_header_create() 438 int hlen; in mac802154_header_create() local 466 hlen = ieee802154_hdr_push(skb, &hdr); in mac802154_header_create() 467 if (hlen < 0) in mac802154_header_create() 471 skb->mac_len = hlen; in mac802154_header_create() 476 return hlen; in mac802154_header_create()
|
D | rx.c | 134 int hlen; in ieee802154_parse_frame_start() local 139 hlen = ieee802154_hdr_pull(skb, hdr); in ieee802154_parse_frame_start() 140 if (hlen < 0) in ieee802154_parse_frame_start() 143 skb->mac_len = hlen; in ieee802154_parse_frame_start()
|
/Linux-v5.10/tools/testing/selftests/bpf/progs/ |
D | test_cls_redirect.h | 22 uint8_t hlen : 5, control : 1, variant : 2; member 24 uint8_t variant : 2, control : 1, hlen : 5;
|
/Linux-v5.10/drivers/net/wan/ |
D | dlci.c | 70 unsigned int hlen; in dlci_header() local 78 hlen = sizeof(hdr.control) + sizeof(hdr.IP_NLPID); in dlci_header() 88 hlen = sizeof(hdr); in dlci_header() 92 dest = skb_push(skb, hlen); in dlci_header() 96 memcpy(dest, &hdr, hlen); in dlci_header() 98 return hlen; in dlci_header()
|
/Linux-v5.10/net/ieee802154/ |
D | header_ops.c | 309 int hlen = ieee802154_hdr_minlen(hdr); in ieee802154_max_payload() local 312 hlen += ieee802154_sechdr_lengths[hdr->sec.key_id_mode] - 1; in ieee802154_max_payload() 313 hlen += ieee802154_sechdr_authtag_len(&hdr->sec); in ieee802154_max_payload() 316 return IEEE802154_MTU - hlen - IEEE802154_MFR_SIZE; in ieee802154_max_payload()
|