/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; in wf_cpu_pid_run() [all...] |
/linux/net/core/ |
H A D | flow_dissector.c | 114 * @hlen: packet header length, if @data is NULL use skb_headlen(skb) 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() 163 * @hlen: packet header length 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 233 __skb_flow_dissect_esp(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,int nhoff,int hlen) __skb_flow_dissect_esp() argument 255 __skb_flow_dissect_l2tpv3(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,int nhoff,int hlen) __skb_flow_dissect_l2tpv3() argument 518 __skb_flow_dissect_mpls(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,int nhoff,int hlen,int lse_index,bool * entropy_label) __skb_flow_dissect_mpls() argument 576 __skb_flow_dissect_arp(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,int nhoff,int hlen) __skb_flow_dissect_arp() argument 632 __skb_flow_dissect_cfm(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,int nhoff,int hlen) __skb_flow_dissect_cfm() argument 797 __skb_flow_dissect_batadv(const struct sk_buff * skb,struct flow_dissector_key_control * key_control,const void * data,__be16 * p_proto,int * p_nhoff,int hlen,unsigned int flags) __skb_flow_dissect_batadv() argument 829 __skb_flow_dissect_tcp(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,int thoff,int hlen) __skb_flow_dissect_tcp() argument 854 __skb_flow_dissect_ports(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,int nhoff,u8 ip_proto,int hlen) __skb_flow_dissect_ports() argument 1005 bpf_flow_dissect(struct bpf_prog * prog,struct bpf_flow_dissector * ctx,__be16 proto,int nhoff,int hlen,unsigned int flags) bpf_flow_dissect() argument 1061 __skb_flow_dissect(const struct net * net,const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,const void * data,__be16 proto,int nhoff,int hlen,unsigned int flags) __skb_flow_dissect() argument 1920 __skb_get_poff(const struct sk_buff * skb,const void * data,const struct flow_keys_basic * keys,int hlen) __skb_get_poff() argument [all...] |
/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, \ 43 .hlen = HCI_ISO_HDR_SIZE, \ 73 hci_skb_expect(skb) = (&pkts[i])->hlen; in h4_recv_buf() 105 if (skb->len == (&pkts[i])->hlen) { in h4_recv_buf()
|
/linux/net/ipv6/ |
H A D | netfilter.c | 134 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() 180 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 D | ip6_output.c | 703 int ip6_fraglist_init(struct sk_buff *skb, unsigned int hlen, u8 *prevhdr, in ip6_fraglist_init() argument 712 iter->tmp_hdr = kmemdup(skb_network_header(skb), hlen, GFP_ATOMIC); in ip6_fraglist_init() 720 iter->hlen = hlen; in ip6_fraglist_init() 724 __skb_pull(skb, hlen); in ip6_fraglist_init() 726 __skb_push(skb, hlen); in ip6_fraglist_init() 728 memcpy(skb_network_header(skb), iter->tmp_hdr, hlen); in ip6_fraglist_init() 748 unsigned int hlen = iter->hlen; in ip6_fraglist_prepare() local 754 __skb_push(frag, hlen); in ip6_fraglist_prepare() 769 ip6_frag_init(struct sk_buff * skb,unsigned int hlen,unsigned int mtu,unsigned short needed_tailroom,int hdr_room,u8 * prevhdr,u8 nexthdr,__be32 frag_id,struct ip6_frag_state * state) ip6_frag_init() argument 875 unsigned int mtu, hlen, nexthdr_offset; ip6_fragment() local [all...] |
H A D | raw.c | 602 int hlen = LL_RESERVED_SPACE(rt->dst.dev); in rawv6_send_hdrinc() local 615 length + hlen + tlen + 15, in rawv6_send_hdrinc() 619 skb_reserve(skb, hlen); in rawv6_send_hdrinc() 684 int hlen; member 693 rfv->hlen = 2; in rawv6_probe_proto_opt() 694 err = memcpy_from_msg(rfv->c, rfv->msg, rfv->hlen); in rawv6_probe_proto_opt() 701 rfv->hlen = 4; in rawv6_probe_proto_opt() 702 err = memcpy_from_msg(rfv->c, rfv->msg, rfv->hlen); in rawv6_probe_proto_opt() 714 if (offset < rfv->hlen) { in raw6_getfrag() 715 int copy = min(rfv->hlen in raw6_getfrag() [all...] |
/linux/drivers/video/fbdev/matrox/ |
H A D | matroxfb_g450.c | 243 u_int32_t hlen; in computeRegs() local 290 hlen = hvis + hfp + hsl + hbp; in computeRegs() 291 over = hlen & 0x0F; in computeRegs() 293 dprintk(KERN_DEBUG "WL: vis=%u, hf=%u, hs=%u, hb=%u, total=%u\n", hvis, hfp, hsl, hbp, hlen); in computeRegs() 297 hlen -= over; in computeRegs() 301 hlen += 4; in computeRegs() 304 hlen += 16; in computeRegs() 308 /* maybe cve2 has requirement 800 < hlen < 1184 */ in computeRegs() 316 dprintk(KERN_DEBUG "PG: vis=%04X, hf=%02X, hs=%02X, hb=%02X, total=%04X\n", hvis, hfp, hsl, hbp, hlen); in computeRegs() 321 hlen in computeRegs() [all...] |
/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/tools/hv/ |
H A D | vmbus_bufring.c | 183 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 D | gve_tx.c | 406 int hlen; in gve_skb_fifo_bytes_required() local 408 hlen = skb_is_gso(skb) ? skb_checksum_start_offset(skb) + tcp_hdrlen(skb) : in gve_skb_fifo_bytes_required() 412 hlen); in gve_skb_fifo_bytes_required() 414 align_hdr_pad = L1_CACHE_ALIGN(hlen) - hlen; in gve_skb_fifo_bytes_required() 500 u16 hlen, u64 addr, u16 pkt_len) in gve_tx_fill_pkt_desc() argument 518 pkt_desc->pkt.seg_len = cpu_to_be16(hlen); in gve_tx_fill_pkt_desc() 564 int pad_bytes, hlen, hdr_nfrags, payload_nfrags, l4_hdr_offset; in gve_tx_add_skb_copy() local 582 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : in gve_tx_add_skb_copy() 589 pad_bytes = gve_tx_fifo_pad_alloc_one_frag(&tx->tx_fifo, hlen); in gve_tx_add_skb_copy() 640 int hlen, num_descriptors, l4_hdr_offset; gve_tx_add_skb_no_copy() local [all...] |
/linux/tools/lib/bpf/ |
H A D | nlattr.c | 166 int hlen, alen; in libbpf_nla_dump_errormsg() local 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()
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | trace_misc.h | 76 __field(u32, hlen) 84 __entry->hlen = packet->hlen; 90 "[%s] ctxt %d eflags 0x%llx hlen %d tlen %d updegr %d etail %d", 94 __entry->hlen,
|
H A D | trace_rx.h | 31 __field(u32, hlen) 40 __entry->hlen = packet->hlen; 46 "[%s] ctxt %d eflags 0x%llx etype %d,%s hlen %d tlen %d updegr %d etail %d", 51 __entry->hlen,
|
/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 | raw.c | 85 int hlen; member 338 int hlen, tlen; in raw_send_hdrinc() local 351 hlen = LL_RESERVED_SPACE(rt->dst.dev); in raw_send_hdrinc() 354 length + hlen + tlen + 15, in raw_send_hdrinc() 358 skb_reserve(skb, hlen); in raw_send_hdrinc() 439 rfv->hlen = 2; in raw_probe_proto_opt() 441 err = memcpy_from_msg(rfv->hdr.c, rfv->msg, rfv->hlen); in raw_probe_proto_opt() 456 if (offset < rfv->hlen) { in raw_getfrag() 457 int copy = min(rfv->hlen - offset, len); in raw_getfrag() 477 offset -= rfv->hlen; in raw_getfrag() [all...] |
/linux/include/net/ |
H A D | gro.h | 161 unsigned int hlen) in skb_gro_may_pull() argument 163 return likely(hlen <= NAPI_GRO_CB(skb)->frag0_len); in skb_gro_may_pull() 166 static inline void *skb_gro_header_slow(struct sk_buff *skb, unsigned int hlen, in skb_gro_header_slow() argument 169 if (!pskb_may_pull(skb, hlen)) in skb_gro_header_slow() 175 static inline void *skb_gro_header(struct sk_buff *skb, unsigned int hlen, in skb_gro_header() argument 181 if (!skb_gro_may_pull(skb, hlen)) in skb_gro_header() 182 ptr = skb_gro_header_slow(skb, hlen, offset); in skb_gro_header() 429 unsigned int hlen, off; in udp_gro_udphdr() local 432 hlen = off + sizeof(*uh); in udp_gro_udphdr() 433 uh = skb_gro_header(skb, hlen, of in udp_gro_udphdr() [all...] |
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; 88 * the flags exceeds the options length specific in hlen of the GUE header.
|
/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() local 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_prepare_frag()
|
/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/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 in ccs_data_block_parse_header() [all...] |
/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() [all...] |
/linux/lib/ |
H A D | digsig.c | 69 const char *h, int hlen) in digsig_verify_rsa() argument 169 if (!m || len != hlen || memcmp(m, h, hlen)) in digsig_verify_rsa()
|