Home
last modified time | relevance | path

Searched refs:hlen (Results 1 – 25 of 180) sorted by relevance

12345678

/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.c126 hlen = skb_headlen(skb); in __skb_flow_get_ports()
194 int thoff, int hlen) in __skb_flow_dissect_icmp() argument
211 int nhoff, int hlen) in __skb_flow_dissect_ah() argument
233 int nhoff, int hlen) in __skb_flow_dissect_esp() argument
516 hlen, &_hdr); in __skb_flow_dissect_mpls()
576 hlen, &_arp); in __skb_flow_dissect_arp()
856 data, hlen); in __skb_flow_dissect_ports()
1074 hlen -= offset; in __skb_flow_dissect()
1136 hlen, flags); in __skb_flow_dissect()
1451 hlen, &_hdr); in __skb_flow_dissect()
[all …]
/linux/drivers/bluetooth/
H A Dh4_recv.h13 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 Dhci_uart.h128 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, \
/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/net/ipv6/
H A Dnetfilter.c134 unsigned int mtu, hlen; in br_ip6_fragment() local
141 hlen = err; in br_ip6_fragment()
150 if (mtu < hlen + sizeof(struct frag_hdr) + 8) in br_ip6_fragment()
152 mtu -= hlen + sizeof(struct frag_hdr); in br_ip6_fragment()
167 if (first_len - hlen > mtu || in br_ip6_fragment()
176 skb_headroom(frag2) < (hlen + hroom + sizeof(struct frag_hdr))) in br_ip6_fragment()
184 err = ip6_fraglist_init(skb, hlen, prevhdr, nexthdr, frag_id, in br_ip6_fragment()
216 ip6_frag_init(skb, hlen, mtu, skb->dev->needed_tailroom, in br_ip6_fragment()
H A Dip6_output.c709 iter->hlen = hlen; in ip6_fraglist_init()
713 __skb_pull(skb, hlen); in ip6_fraglist_init()
715 __skb_push(skb, hlen); in ip6_fraglist_init()
737 unsigned int hlen = iter->hlen; in ip6_fraglist_prepare() local
743 __skb_push(frag, hlen); in ip6_fraglist_prepare()
766 state->hlen = hlen; in ip6_frag_init()
864 unsigned int mtu, hlen, nexthdr_offset; in ip6_fragment() local
873 hlen = err; in ip6_fragment()
903 mtu -= hlen + sizeof(struct frag_hdr); in ip6_fragment()
919 if (first_len - hlen > mtu || in ip6_fragment()
[all …]
/linux/drivers/video/fbdev/matrox/
H A Dmatroxfb_g450.c241 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()
319 hlen = hlen >> 1; in computeRegs()
321 dprintk(KERN_DEBUG "hlen=%u hvis=%u\n", hlen, hvis); in computeRegs()
327 mt->HSyncEnd = (hlen & ~7) - 8; in computeRegs()
[all …]
/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()
/linux/tools/hv/
H A Dvmbus_bufring.c183 const uint32_t hlen = sizeof(pkt); in rte_vmbus_chan_send() local
188 pktlen = hlen + dlen; in rte_vmbus_chan_send()
193 pkt.hdr.hlen = hlen >> VMBUS_CHANPKT_SIZE_SHIFT; in rte_vmbus_chan_send()
198 iov[0].iov_len = hlen; in rte_vmbus_chan_send()
296 if (unlikely(pkt.hlen < VMBUS_CHANPKT_HLEN_MIN)) in rte_vmbus_chan_recv_raw()
300 if (unlikely(pkt.hlen > pkt.tlen)) in rte_vmbus_chan_recv_raw()
/linux/drivers/net/ethernet/google/gve/
H A Dgve_tx.c409 int hlen; in gve_skb_fifo_bytes_required() local
415 hlen); in gve_skb_fifo_bytes_required()
417 align_hdr_pad = L1_CACHE_ALIGN(hlen) - hlen; in gve_skb_fifo_bytes_required()
503 u16 hlen, u64 addr, u16 pkt_len) in gve_tx_fill_pkt_desc() argument
606 hlen); in gve_tx_add_skb_copy()
610 copy_offset = hlen; in gve_tx_add_skb_copy()
643 int hlen, num_descriptors, l4_hdr_offset; in gve_tx_add_skb_no_copy() local
676 if (hlen < len) in gve_tx_add_skb_no_copy()
691 if (hlen < len) { in gve_tx_add_skb_no_copy()
695 len -= hlen; in gve_tx_add_skb_no_copy()
[all …]
/linux/include/net/
H A Dgro.h158 unsigned int hlen) in skb_gro_may_pull() argument
160 return likely(hlen <= NAPI_GRO_CB(skb)->frag0_len); in skb_gro_may_pull()
163 static inline void *skb_gro_header_slow(struct sk_buff *skb, unsigned int hlen, in skb_gro_header_slow() argument
166 if (!pskb_may_pull(skb, hlen)) in skb_gro_header_slow()
172 static inline void *skb_gro_header(struct sk_buff *skb, unsigned int hlen, in skb_gro_header() argument
178 if (!skb_gro_may_pull(skb, hlen)) in skb_gro_header()
179 ptr = skb_gro_header_slow(skb, hlen, offset); in skb_gro_header()
426 unsigned int hlen, off; in udp_gro_udphdr() local
429 hlen = off + sizeof(*uh); in udp_gro_udphdr()
430 uh = skb_gro_header(skb, hlen, off); in udp_gro_udphdr()
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;
/linux/tools/lib/bpf/
H A Dnlattr.c167 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()
/linux/drivers/infiniband/hw/hfi1/
H A Dtrace_misc.h76 __field(u32, hlen)
84 __entry->hlen = packet->hlen;
94 __entry->hlen,
H A Dtrace_rx.h31 __field(u32, hlen)
40 __entry->hlen = packet->hlen;
51 __entry->hlen,
/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.c609 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()
635 iter->offset += skb->len - hlen; in ip_fraglist_prepare()
651 state->hlen = hlen; in ip_frag_init()
705 skb_put(skb2, len + state->hlen); in ip_frag_next()
747 iph->tot_len = htons(len + state->hlen); in ip_frag_next()
769 unsigned int mtu, hlen, ll_rs; in ip_do_fragment() local
794 hlen = iph->ihl * 4; in ip_do_fragment()
810 if (first_len - hlen > mtu || in ip_do_fragment()
[all …]
/linux/net/sched/
H A Dsch_frag.c53 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()
/linux/net/bridge/netfilter/
H A Dnf_conntrack_bridge.c36 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()
/linux/drivers/net/slip/
H A Dslhc.c235 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/drivers/media/i2c/ccs/
H A Dccs-data.c66 size_t hlen, plen; in ccs_data_parse_length_specifier() local
73 hlen = sizeof(*__len); in ccs_data_parse_length_specifier()
83 hlen = sizeof(*__len2); in ccs_data_parse_length_specifier()
96 hlen = sizeof(*__len3); in ccs_data_parse_length_specifier()
107 if (!has_headroom(__len, hlen + plen, endp)) in ccs_data_parse_length_specifier()
110 *__hlen = hlen; in ccs_data_parse_length_specifier()
178 size_t plen, hlen; in ccs_data_block_parse_header() local
195 block_id, hlen, plen); in ccs_data_block_parse_header()
197 if (!has_headroom(&block->length, hlen + plen, endp)) in ccs_data_block_parse_header()
204 *payload = (void *)&block->length + hlen; in ccs_data_block_parse_header()
[all …]
/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;

12345678