/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/drivers/bluetooth/ |
H A 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()
|
H A D | hci_uart.h | 128 u8 hlen; /* Header length */ member 137 .hlen = HCI_ACL_HDR_SIZE, \ 144 .hlen = HCI_SCO_HDR_SIZE, \ 151 .hlen = HCI_EVENT_HDR_SIZE, \ 158 .hlen = HCI_ISO_HDR_SIZE, \
|
/openbmc/qemu/crypto/ |
H A D | x509-utils.c | 35 int hlen; in qcrypto_get_x509_cert_fingerprint() local 56 hlen = gnutls_hash_get_len(qcrypto_to_gnutls_hash_alg_map[alg]); in qcrypto_get_x509_cert_fingerprint() 57 if (*resultlen < hlen) { in qcrypto_get_x509_cert_fingerprint() 60 *resultlen, hlen); in qcrypto_get_x509_cert_fingerprint()
|
/openbmc/linux/net/ipv6/ |
H A D | netfilter.c | 133 unsigned int mtu, hlen; in br_ip6_fragment() local 140 hlen = err; in br_ip6_fragment() 149 if (mtu < hlen + sizeof(struct frag_hdr) + 8) in br_ip6_fragment() 151 mtu -= hlen + sizeof(struct frag_hdr); in br_ip6_fragment() 166 if (first_len - hlen > mtu || in br_ip6_fragment() 175 skb_headroom(frag2) < (hlen + hroom + sizeof(struct frag_hdr))) in br_ip6_fragment() 183 err = ip6_fraglist_init(skb, hlen, prevhdr, nexthdr, frag_id, in br_ip6_fragment() 215 ip6_frag_init(skb, hlen, mtu, skb->dev->needed_tailroom, in br_ip6_fragment()
|
H A D | ip6_output.c | 697 int ip6_fraglist_init(struct sk_buff *skb, unsigned int hlen, u8 *prevhdr, in ip6_fraglist_init() argument 706 iter->tmp_hdr = kmemdup(skb_network_header(skb), hlen, GFP_ATOMIC); in ip6_fraglist_init() 714 iter->hlen = hlen; in ip6_fraglist_init() 718 __skb_pull(skb, hlen); in ip6_fraglist_init() 720 __skb_push(skb, hlen); in ip6_fraglist_init() 722 memcpy(skb_network_header(skb), iter->tmp_hdr, hlen); in ip6_fraglist_init() 742 unsigned int hlen = iter->hlen; in ip6_fraglist_prepare() local 748 __skb_push(frag, hlen); in ip6_fraglist_prepare() 750 memcpy(skb_network_header(frag), iter->tmp_hdr, hlen); in ip6_fraglist_prepare() 751 iter->offset += skb->len - hlen - sizeof(struct frag_hdr); in ip6_fraglist_prepare() [all …]
|
/openbmc/linux/drivers/video/fbdev/matrox/ |
H A 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 …]
|
/openbmc/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()
|
/openbmc/linux/include/net/ |
H A D | gro.h | 157 static inline int skb_gro_header_hard(struct sk_buff *skb, unsigned int hlen) in skb_gro_header_hard() argument 159 return NAPI_GRO_CB(skb)->frag0_len < hlen; in skb_gro_header_hard() 168 static inline void *skb_gro_header_slow(struct sk_buff *skb, unsigned int hlen, in skb_gro_header_slow() argument 171 if (!pskb_may_pull(skb, hlen)) in skb_gro_header_slow() 179 unsigned int hlen, unsigned int offset) in skb_gro_header() argument 184 if (skb_gro_header_hard(skb, hlen)) in skb_gro_header() 185 ptr = skb_gro_header_slow(skb, hlen, offset); in skb_gro_header() 424 unsigned int hlen, off; in udp_gro_udphdr() local 427 hlen = off + sizeof(*uh); in udp_gro_udphdr() 428 uh = skb_gro_header(skb, hlen, off); in udp_gro_udphdr()
|
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()
|
/openbmc/linux/drivers/net/ethernet/google/gve/ |
H A D | gve_tx.c | 353 int hlen; in gve_skb_fifo_bytes_required() local 355 hlen = skb_is_gso(skb) ? skb_checksum_start_offset(skb) + tcp_hdrlen(skb) : in gve_skb_fifo_bytes_required() 359 hlen); in gve_skb_fifo_bytes_required() 361 align_hdr_pad = L1_CACHE_ALIGN(hlen) - hlen; in gve_skb_fifo_bytes_required() 447 u16 hlen, u64 addr, u16 pkt_len) in gve_tx_fill_pkt_desc() argument 465 pkt_desc->pkt.seg_len = cpu_to_be16(hlen); in gve_tx_fill_pkt_desc() 511 int pad_bytes, hlen, hdr_nfrags, payload_nfrags, l4_hdr_offset; in gve_tx_add_skb_copy() local 529 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : in gve_tx_add_skb_copy() 536 pad_bytes = gve_tx_fifo_pad_alloc_one_frag(&tx->tx_fifo, hlen); in gve_tx_add_skb_copy() 537 hdr_nfrags = gve_tx_alloc_fifo(&tx->tx_fifo, hlen + pad_bytes, in gve_tx_add_skb_copy() [all …]
|
/openbmc/qemu/bsd-user/freebsd/ |
H A D | os-sys.c | 160 int hlen, glen; in h2g_old_sysctl() local 171 hlen = host_ctl_size[kind & CTLTYPE]; in h2g_old_sysctl() 178 if (hlen == 0) { in h2g_old_sysctl() 183 if (hlen == glen) { in h2g_old_sysctl() 184 switch (hlen) { in h2g_old_sysctl() 223 hp += hlen; in h2g_old_sysctl() 224 len += hlen; in h2g_old_sysctl() 227 if (hlen != glen) { in h2g_old_sysctl() 228 *holdlen = (*holdlen / hlen) * glen; in h2g_old_sysctl()
|
/openbmc/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_header_hard(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 | 600 unsigned int hlen, struct ip_fraglist_iter *iter) in ip_fraglist_init() argument 609 iter->hlen = hlen; in ip_fraglist_init() 621 unsigned int hlen = iter->hlen; in ip_fraglist_prepare() local 628 __skb_push(frag, hlen); in ip_fraglist_prepare() 630 memcpy(skb_network_header(frag), iph, hlen); in ip_fraglist_prepare() 635 iter->offset += skb->len - hlen; in ip_fraglist_prepare() 644 void ip_frag_init(struct sk_buff *skb, unsigned int hlen, in ip_frag_init() argument 651 state->hlen = hlen; in ip_frag_init() 655 state->left = skb->len - hlen; /* Space per frame */ in ip_frag_init() 656 state->ptr = hlen; /* Where to start from */ in ip_frag_init() [all …]
|
H A D | tcp_offload.c | 194 unsigned int hlen; in tcp_gro_receive() local 200 hlen = off + sizeof(*th); in tcp_gro_receive() 201 th = skb_gro_header(skb, hlen, off); in tcp_gro_receive() 209 hlen = off + thlen; in tcp_gro_receive() 210 if (skb_gro_header_hard(skb, hlen)) { in tcp_gro_receive() 211 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive()
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | trace_misc.h | 76 __field(u32, hlen) 84 __entry->hlen = packet->hlen; 94 __entry->hlen,
|
H A D | trace_rx.h | 31 __field(u32, hlen) 40 __entry->hlen = packet->hlen; 51 __entry->hlen,
|
/openbmc/linux/tools/lib/bpf/ |
H A 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()
|
/openbmc/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() 72 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()
|
/openbmc/linux/net/sched/ |
H A D | sch_frag.c | 53 unsigned int hlen = skb_network_offset(skb); in sch_frag_prepare_frag() local 66 data->l2_len = hlen; in sch_frag_prepare_frag() 67 memcpy(&data->l2_data, skb->data, hlen); in sch_frag_prepare_frag() 70 skb_pull(skb, hlen); in sch_frag_prepare_frag()
|
/openbmc/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()
|
/openbmc/linux/drivers/media/i2c/ccs/ |
H A D | ccs-data.c | 67 size_t hlen, plen; in ccs_data_parse_length_specifier() local 74 hlen = sizeof(*__len); in ccs_data_parse_length_specifier() 84 hlen = sizeof(*__len2); in ccs_data_parse_length_specifier() 97 hlen = sizeof(*__len3); in ccs_data_parse_length_specifier() 108 if (!has_headroom(__len, hlen + plen, endp)) in ccs_data_parse_length_specifier() 111 *__hlen = hlen; in ccs_data_parse_length_specifier() 179 size_t plen, hlen; in ccs_data_block_parse_header() local 186 rval = ccs_data_parse_length_specifier(&block->length, &hlen, &plen, in ccs_data_block_parse_header() 196 block_id, hlen, plen); in ccs_data_block_parse_header() 198 if (!has_headroom(&block->length, hlen + plen, endp)) in ccs_data_block_parse_header() [all …]
|
/openbmc/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()
|
/openbmc/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;
|