Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/macintosh/
Dwindfarm_pid.c38 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-4.1.27/net/core/
Dflow_dissector.c41 void *data, int hlen) in __skb_flow_get_ports() argument
47 hlen = skb_headlen(skb); in __skb_flow_get_ports()
54 sizeof(_ports), data, hlen, &_ports); in __skb_flow_get_ports()
75 void *data, __be16 proto, int nhoff, int hlen) in __skb_flow_dissect() argument
83 hlen = skb_headlen(skb); in __skb_flow_dissect()
94 iph = __skb_header_pointer(skb, nhoff, sizeof(_iph), data, hlen, &_iph); in __skb_flow_dissect()
118 iph = __skb_header_pointer(skb, nhoff, sizeof(_iph), data, hlen, &_iph); in __skb_flow_dissect()
154 vlan = __skb_header_pointer(skb, nhoff, sizeof(_vlan), data, hlen, &_vlan); in __skb_flow_dissect()
167 hdr = __skb_header_pointer(skb, nhoff, sizeof(_hdr), data, hlen, &_hdr); in __skb_flow_dissect()
186 hdr = __skb_header_pointer(skb, nhoff, sizeof(_hdr), data, hlen, &_hdr); in __skb_flow_dissect()
[all …]
Ddatagram.c707 int hlen, struct msghdr *msg) in skb_copy_and_csum_datagram_msg() argument
710 int chunk = skb->len - hlen; in skb_copy_and_csum_datagram_msg()
718 if (skb_copy_datagram_msg(skb, hlen, msg, chunk)) in skb_copy_and_csum_datagram_msg()
721 csum = csum_partial(skb->data, hlen, skb->csum); in skb_copy_and_csum_datagram_msg()
722 if (skb_copy_and_csum_datagram(skb, hlen, &msg->msg_iter, in skb_copy_and_csum_datagram_msg()
Dskbuff.c2242 unsigned int hlen = 0; in skb_zerocopy_headlen() local
2247 hlen = skb_headlen(from); in skb_zerocopy_headlen()
2250 hlen = from->len; in skb_zerocopy_headlen()
2252 return hlen; in skb_zerocopy_headlen()
2275 skb_zerocopy(struct sk_buff *to, struct sk_buff *from, int len, int hlen) in skb_zerocopy() argument
2283 BUG_ON(!from->head_frag && !hlen); in skb_zerocopy()
2289 if (hlen) { in skb_zerocopy()
2290 ret = skb_copy_bits(from, 0, skb_put(to, hlen), hlen); in skb_zerocopy()
2293 len -= hlen; in skb_zerocopy()
Ddev.c4270 unsigned int hlen = sizeof(*eth); in napi_frags_skb() local
4278 if (unlikely(skb_gro_header_hard(skb, hlen))) { in napi_frags_skb()
4279 eth = skb_gro_header_slow(skb, hlen, 0); in napi_frags_skb()
4285 gro_pull_from_frag0(skb, hlen); in napi_frags_skb()
4286 NAPI_GRO_CB(skb)->frag0 += hlen; in napi_frags_skb()
4287 NAPI_GRO_CB(skb)->frag0_len -= hlen; in napi_frags_skb()
4289 __skb_pull(skb, hlen); in napi_frags_skb()
/linux-4.1.27/net/ipv4/
Dgre_offload.c125 unsigned int hlen, grehlen; in gre_gro_receive() local
132 hlen = off + sizeof(*greh); in gre_gro_receive()
134 if (skb_gro_header_hard(skb, hlen)) { in gre_gro_receive()
135 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive()
164 hlen = off + grehlen; in gre_gro_receive()
165 if (skb_gro_header_hard(skb, hlen)) { in gre_gro_receive()
166 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive()
Dtcp_offload.c188 unsigned int hlen; in tcp_gro_receive() local
194 hlen = off + sizeof(*th); in tcp_gro_receive()
196 if (skb_gro_header_hard(skb, hlen)) { in tcp_gro_receive()
197 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive()
206 hlen = off + thlen; in tcp_gro_receive()
207 if (skb_gro_header_hard(skb, hlen)) { in tcp_gro_receive()
208 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive()
Dgeneve.c156 unsigned int hlen, gh_len, off_gnv; in geneve_gro_receive() local
162 hlen = off_gnv + sizeof(*gh); in geneve_gro_receive()
164 if (skb_gro_header_hard(skb, hlen)) { in geneve_gro_receive()
165 gh = skb_gro_header_slow(skb, hlen, off_gnv); in geneve_gro_receive()
174 hlen = off_gnv + gh_len; in geneve_gro_receive()
175 if (skb_gro_header_hard(skb, hlen)) { in geneve_gro_receive()
176 gh = skb_gro_header_slow(skb, hlen, off_gnv); in geneve_gro_receive()
Dip_tunnel.c360 int hlen = LL_MAX_HEADER; in ip_tunnel_bind_dev() local
362 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ip_tunnel_bind_dev()
389 hlen = tdev->hard_header_len + tdev->needed_headroom; in ip_tunnel_bind_dev()
393 dev->needed_headroom = t_hlen + hlen; in ip_tunnel_bind_dev()
493 int hlen = -EINVAL; in ip_encap_hlen() local
504 hlen = ops->encap_hlen(e); in ip_encap_hlen()
507 return hlen; in ip_encap_hlen()
546 int hlen; in ip_tunnel_encap_setup() local
550 hlen = ip_encap_hlen(ipencap); in ip_tunnel_encap_setup()
551 if (hlen < 0) in ip_tunnel_encap_setup()
[all …]
Dip_output.c496 unsigned int mtu, hlen, left, len, ll_rs; in ip_fragment() local
525 hlen = iph->ihl * 4; in ip_fragment()
526 mtu = mtu - hlen; /* Size of data space */ in ip_fragment()
544 if (first_len - hlen > mtu || in ip_fragment()
545 ((first_len - hlen) & 7) || in ip_fragment()
554 skb_headroom(frag) < hlen) in ip_fragment()
587 __skb_push(frag, hlen); in ip_fragment()
589 memcpy(skb_network_header(frag), iph, hlen); in ip_fragment()
595 offset += skb->len - hlen; in ip_fragment()
644 left = skb->len - hlen; /* Space per frame */ in ip_fragment()
[all …]
Draw.c89 int hlen; member
350 int hlen, tlen; in raw_send_hdrinc() local
360 hlen = LL_RESERVED_SPACE(rt->dst.dev); in raw_send_hdrinc()
363 length + hlen + tlen + 15, in raw_send_hdrinc()
367 skb_reserve(skb, hlen); in raw_send_hdrinc()
440 rfv->hlen = 2; in raw_probe_proto_opt()
442 err = memcpy_from_msg(rfv->hdr.c, rfv->msg, rfv->hlen); in raw_probe_proto_opt()
457 if (offset < rfv->hlen) { in raw_getfrag()
458 int copy = min(rfv->hlen - offset, len); in raw_getfrag()
478 offset -= rfv->hlen; in raw_getfrag()
[all …]
Dip_gre.c258 (tunnel->hlen + sizeof(struct iphdr)))) in ipgre_xmit()
266 skb_pull(skb, tunnel->hlen + sizeof(struct iphdr)); in ipgre_xmit()
377 iph = (struct iphdr *)skb_push(skb, t->hlen + sizeof(*iph)); in ipgre_header()
390 return t->hlen + sizeof(*iph); in ipgre_header()
392 return -(t->hlen + sizeof(*iph)); in ipgre_header()
483 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in __gre_tunnel_init()
485 t_hlen = tunnel->hlen + sizeof(struct iphdr); in __gre_tunnel_init()
Dfou.c119 optlen = guehdr->hlen << 2; in gue_udp_recv()
282 optlen = guehdr->hlen << 2; in gue_gro_receive()
345 if (guehdr->hlen && memcmp(&guehdr[1], &guehdr2[1], in gue_gro_receive()
346 guehdr->hlen << 2)) { in gue_gro_receive()
381 guehlen = sizeof(*guehdr) + (guehdr->hlen << 2); in gue_gro_complete()
846 guehdr->hlen = optlen >> 2; in gue_build_header()
Dipconfig.c620 u8 hlen; /* HW address length */ member
799 int hlen = LL_RESERVED_SPACE(dev); in ic_bootp_send_if() local
803 skb = alloc_skb(sizeof(struct bootp_pkt) + hlen + tlen + 15, in ic_bootp_send_if()
807 skb_reserve(skb, hlen); in ic_bootp_send_if()
841 b->hlen = dev->addr_len; in ic_bootp_send_if()
Desp4.c282 int hlen = sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead); in esp_input_done2() local
283 int elen = skb->len - hlen; in esp_input_done2()
344 __skb_pull(skb, hlen); in esp_input_done2()
Daf_inet.c1301 unsigned int hlen; in inet_gro_receive() local
1308 hlen = off + sizeof(*iph); in inet_gro_receive()
1310 if (skb_gro_header_hard(skb, hlen)) { in inet_gro_receive()
1311 iph = skb_gro_header_slow(skb, hlen, off); in inet_gro_receive()
Darp.c490 int hlen = LL_RESERVED_SPACE(dev); in arp_create() local
497 skb = alloc_skb(arp_hdr_len(dev) + hlen + tlen, GFP_ATOMIC); in arp_create()
501 skb_reserve(skb, hlen); in arp_create()
Digmp.c330 int hlen = LL_RESERVED_SPACE(dev); in igmpv3_newpack() local
335 skb = alloc_skb(size + hlen + tlen, in igmpv3_newpack()
358 skb_reserve(skb, hlen); in igmpv3_newpack()
677 int hlen, tlen; in igmp_send_report() local
692 hlen = LL_RESERVED_SPACE(dev); in igmp_send_report()
694 skb = alloc_skb(IGMP_SIZE + hlen + tlen, GFP_ATOMIC); in igmp_send_report()
703 skb_reserve(skb, hlen); in igmp_send_report()
Dipip.c307 tunnel->hlen = tunnel->tun_hlen + tunnel->encap_hlen; in ipip_tunnel_init()
Dudp.c725 int hlen = len; in udp4_hwcsum() local
746 hlen -= frags->len; in udp4_hwcsum()
749 csum = skb_checksum(skb, offset, hlen, csum); in udp4_hwcsum()
Dtcp_input.c5036 static int tcp_copy_to_iovec(struct sock *sk, struct sk_buff *skb, int hlen) in tcp_copy_to_iovec() argument
5039 int chunk = skb->len - hlen; in tcp_copy_to_iovec()
5044 err = skb_copy_datagram_msg(skb, hlen, tp->ucopy.msg, chunk); in tcp_copy_to_iovec()
5046 err = skb_copy_and_csum_datagram_msg(skb, hlen, tp->ucopy.msg); in tcp_copy_to_iovec()
/linux-4.1.27/drivers/video/fbdev/matrox/
Dmatroxfb_g450.c240 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 …]
Dmatroxfb_maven.c830 int hlen; in maven_compute_timming() local
846 hlen = 98304 - 128 - ((lmargin + mt->HDisplay - 8) * hdec); in maven_compute_timming()
847 if (hlen < 0) in maven_compute_timming()
848 hlen = 0; in maven_compute_timming()
849 hlen = hlen >> 8; in maven_compute_timming()
850 if (hlen > 0xFF) in maven_compute_timming()
851 hlen = 0xFF; in maven_compute_timming()
877 m->regs[0xC2] = hlen; in maven_compute_timming()
/linux-4.1.27/drivers/bluetooth/
Dhci_uart.h106 u8 hlen; /* Header length */ member
115 .hlen = HCI_ACL_HDR_SIZE, \
122 .hlen = HCI_SCO_HDR_SIZE, \
129 .hlen = HCI_EVENT_HDR_SIZE, \
Dhci_h4.c187 bt_cb(skb)->expect = (&pkts[i])->hlen; in h4_recv_buf()
219 if (skb->len == (&pkts[i])->hlen) { in h4_recv_buf()
/linux-4.1.27/arch/s390/kernel/
Dearly.c87 int hlen; in create_kernel_nss() local
118 hlen = snprintf(defsys_cmd, DEFSYS_CMD_SIZE, in create_kernel_nss()
128 hlen += snprintf(defsys_cmd + hlen, DEFSYS_CMD_SIZE - hlen, in create_kernel_nss()
133 snprintf(defsys_cmd + hlen, DEFSYS_CMD_SIZE - hlen, in create_kernel_nss()
/linux-4.1.27/drivers/net/slip/
Dslhc.c235 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-4.1.27/include/net/
Dgue.h36 __u8 hlen:5, member
42 hlen:5;
Dudp.h168 unsigned int hlen, off; in udp_gro_udphdr() local
171 hlen = off + sizeof(*uh); in udp_gro_udphdr()
173 if (skb_gro_header_hard(skb, hlen)) in udp_gro_udphdr()
174 uh = skb_gro_header_slow(skb, hlen, off); in udp_gro_udphdr()
Dflow_keys.h31 void *data, __be16 proto, int nhoff, int hlen);
Dip6_tunnel.h51 int hlen; /* Precalculated GRE header length */ member
Dllc_pdu.h233 const int hlen = type == LLC_PDU_TYPE_U ? 3 : 4; in llc_pdu_header_init() local
236 skb_push(skb, hlen); in llc_pdu_header_init()
Dip_tunnels.h77 int hlen; /* tun_hlen + encap_hlen */ member
/linux-4.1.27/arch/x86/net/
Dbpf_jit.S35 mov %r9d,%eax # hlen
36 sub %esi,%eax # hlen - offset
53 sub %esi,%eax # hlen - offset
/linux-4.1.27/drivers/net/wan/
Ddlci.c74 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-4.1.27/net/ipv6/
Dip6_output.c555 unsigned int mtu, hlen, left, len; in ip6_fragment() local
562 hlen = ip6_find_1stfragopt(skb, &prevhdr); in ip6_fragment()
588 mtu -= hlen + sizeof(struct frag_hdr); in ip6_fragment()
594 if (first_len - hlen > mtu || in ip6_fragment()
595 ((first_len - hlen) & 7) || in ip6_fragment()
603 skb_headroom(frag) < hlen) in ip6_fragment()
625 tmp_hdr = kmemdup(skb_network_header(skb), hlen, GFP_ATOMIC); in ip6_fragment()
632 __skb_pull(skb, hlen); in ip6_fragment()
634 __skb_push(skb, hlen); in ip6_fragment()
636 memcpy(skb_network_header(skb), tmp_hdr, hlen); in ip6_fragment()
[all …]
Dip6_offload.c174 unsigned int hlen; in ipv6_gro_receive() local
180 hlen = off + sizeof(*iph); in ipv6_gro_receive()
182 if (skb_gro_header_hard(skb, hlen)) { in ipv6_gro_receive()
183 iph = skb_gro_header_slow(skb, hlen, off); in ipv6_gro_receive()
Draw.c620 int hlen = LL_RESERVED_SPACE(rt->dst.dev); in rawv6_send_hdrinc() local
631 length + hlen + tlen + 15, in rawv6_send_hdrinc()
635 skb_reserve(skb, hlen); in rawv6_send_hdrinc()
676 int hlen; member
685 rfv->hlen = 2; in rawv6_probe_proto_opt()
686 err = memcpy_from_msg(rfv->c, rfv->msg, rfv->hlen); in rawv6_probe_proto_opt()
693 rfv->hlen = 4; in rawv6_probe_proto_opt()
694 err = memcpy_from_msg(rfv->c, rfv->msg, rfv->hlen); in rawv6_probe_proto_opt()
706 if (offset < rfv->hlen) { in raw6_getfrag()
707 int copy = min(rfv->hlen - offset, len); in raw6_getfrag()
[all …]
Desp6.c273 int hlen = sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead); in esp_input_done2() local
274 int elen = skb->len - hlen; in esp_input_done2()
298 __skb_pull(skb, hlen); in esp_input_done2()
Dip6_gre.c632 gre_hlen = tunnel->hlen; in ip6gre_xmit2()
744 __be32 *ptr = (__be32 *)(((u8 *)ipv6h) + tunnel->hlen - 4); in ip6gre_xmit2()
974 t->hlen = addend; in ip6gre_tnl_link_config()
1181 struct ipv6hdr *ipv6h = (struct ipv6hdr *)skb_push(skb, t->hlen); in ip6gre_header()
1204 return t->hlen; in ip6gre_header()
1206 return -t->hlen; in ip6gre_header()
1278 tunnel->hlen = sizeof(struct ipv6hdr) + 4; in ip6gre_fb_tunnel_init()
Dmcast.c1560 int hlen = LL_RESERVED_SPACE(dev); in mld_newpack() local
1562 unsigned int size = mtu + hlen + tlen; in mld_newpack()
1579 skb_reserve(skb, hlen); in mld_newpack()
1940 int hlen = LL_RESERVED_SPACE(dev); in igmp6_send() local
1963 skb = sock_alloc_send_skb(sk, hlen + tlen + full_len, 1, &err); in igmp6_send()
1973 skb_reserve(skb, hlen); in igmp6_send()
Dsit.c825 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ipip6_tunnel_xmit()
1072 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ipip6_tunnel_bind_dev()
1323 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ipip6_tunnel_change_mtu()
1359 int t_hlen = tunnel->hlen + sizeof(struct iphdr); in ipip6_tunnel_setup()
Dndisc.c381 int hlen = LL_RESERVED_SPACE(dev); in ndisc_alloc_skb() local
386 skb = alloc_skb(hlen + sizeof(struct ipv6hdr) + len + tlen, GFP_ATOMIC); in ndisc_alloc_skb()
396 skb_reserve(skb, hlen + sizeof(struct ipv6hdr)); in ndisc_alloc_skb()
/linux-4.1.27/tools/net/
Dbpf_jit_disasm.c108 static int get_last_jit_image(char *haystack, size_t hlen, in get_last_jit_image() argument
118 if (hlen == 0) in get_last_jit_image()
133 assert(off < hlen); in get_last_jit_image()
/linux-4.1.27/net/ieee802154/
Dheader_ops.c317 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()
Dsocket.c263 int hlen, tlen; in raw_sendmsg() local
293 hlen = LL_RESERVED_SPACE(dev); in raw_sendmsg()
295 skb = sock_alloc_send_skb(sk, hlen + tlen + size, in raw_sendmsg()
300 skb_reserve(skb, hlen); in raw_sendmsg()
625 int hlen, tlen; in dgram_sendmsg() local
657 hlen = LL_RESERVED_SPACE(dev); in dgram_sendmsg()
659 skb = sock_alloc_send_skb(sk, hlen + tlen + size, in dgram_sendmsg()
665 skb_reserve(skb, hlen); in dgram_sendmsg()
/linux-4.1.27/net/mac802154/
Drx.c138 int hlen; in ieee802154_parse_frame_start() local
143 hlen = ieee802154_hdr_pull(skb, hdr); in ieee802154_parse_frame_start()
144 if (hlen < 0) in ieee802154_parse_frame_start()
147 skb->mac_len = hlen; in ieee802154_parse_frame_start()
Diface.c368 int hlen; in mac802154_header_create() local
404 hlen = ieee802154_hdr_push(skb, &hdr); in mac802154_header_create()
405 if (hlen < 0) in mac802154_header_create()
409 skb->mac_len = hlen; in mac802154_header_create()
414 return hlen; in mac802154_header_create()
Dllsec.c708 int rc, authlen, hlen; in mac802154_llsec_encrypt() local
712 hlen = ieee802154_hdr_pull(skb, &hdr); in mac802154_llsec_encrypt()
714 if (hlen < 0 || hdr.fc.type != IEEE802154_FC_TYPE_DATA) in mac802154_llsec_encrypt()
718 skb_push(skb, hlen); in mac802154_llsec_encrypt()
724 if (skb->len + hlen + authlen + IEEE802154_MFR_SIZE > IEEE802154_MTU) in mac802154_llsec_encrypt()
/linux-4.1.27/net/ethernet/
Deth.c399 unsigned int hlen, off_eth; in eth_gro_receive() local
405 hlen = off_eth + sizeof(*eh); in eth_gro_receive()
407 if (skb_gro_header_hard(skb, hlen)) { in eth_gro_receive()
408 eh = skb_gro_header_slow(skb, hlen, off_eth); in eth_gro_receive()
/linux-4.1.27/lib/
Ddigsig.c72 const char *h, int hlen) in digsig_verify_rsa() argument
159 if (!m || len != hlen || memcmp(m, h, hlen)) in digsig_verify_rsa()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c641 unsigned int hlen = skb_headlen(skb); in build_inline_wqe() local
651 skb_copy_from_linear_data(skb, inl + 1, hlen); in build_inline_wqe()
653 memcpy(((void *)(inl + 1)) + hlen, fragptr, in build_inline_wqe()
658 if (hlen <= spc) { in build_inline_wqe()
659 skb_copy_from_linear_data(skb, inl + 1, hlen); in build_inline_wqe()
660 if (hlen < spc) { in build_inline_wqe()
661 memcpy(((void *)(inl + 1)) + hlen, in build_inline_wqe()
662 fragptr, spc - hlen); in build_inline_wqe()
663 fragptr += spc - hlen; in build_inline_wqe()
671 hlen - spc); in build_inline_wqe()
[all …]
/linux-4.1.27/net/llc/
Dllc_sap.c50 int hlen = type == LLC_PDU_TYPE_U ? 3 : 4; in llc_alloc_frame() local
53 hlen += llc_mac_header_len(dev->type); in llc_alloc_frame()
54 skb = alloc_skb(hlen + data_size, GFP_ATOMIC); in llc_alloc_frame()
58 skb_reserve(skb, hlen); in llc_alloc_frame()
/linux-4.1.27/net/xfrm/
Dxfrm_input.c131 int hlen; in xfrm_parse_spi() local
135 hlen = sizeof(struct ip_auth_hdr); in xfrm_parse_spi()
140 hlen = sizeof(struct ip_esp_hdr); in xfrm_parse_spi()
154 if (!pskb_may_pull(skb, hlen)) in xfrm_parse_spi()
/linux-4.1.27/net/hsr/
Dhsr_device.c269 int hlen, tlen; in send_hsr_supervision_frame() local
274 hlen = LL_RESERVED_SPACE(master->dev); in send_hsr_supervision_frame()
276 skb = alloc_skb(hsr_pad(sizeof(struct hsr_sup_payload)) + hlen + tlen, in send_hsr_supervision_frame()
282 skb_reserve(skb, hlen); in send_hsr_supervision_frame()
/linux-4.1.27/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c514 void *head, int hlen) in post_send() argument
542 priv->tx_wr.wr.ud.hlen = hlen; in post_send()
555 int hlen, rc; in ipoib_send() local
559 hlen = skb_transport_offset(skb) + tcp_hdrlen(skb); in ipoib_send()
561 if (unlikely(!skb_pull(skb, hlen))) { in ipoib_send()
578 hlen = 0; in ipoib_send()
615 address->ah, qpn, tx_req, phead, hlen); in ipoib_send()
/linux-4.1.27/drivers/net/ethernet/sun/
Dcassini.c1956 int dlen, hlen, len, i, alloclen; in cas_rx_process_pkt() local
1964 hlen = CAS_VAL(RX_COMP2_HDR_SIZE, words[1]); in cas_rx_process_pkt()
1966 len = hlen + dlen; in cas_rx_process_pkt()
1971 alloclen = max(hlen, RX_COPY_MIN); in cas_rx_process_pkt()
1982 if (hlen) { /* always copy header pages */ in cas_rx_process_pkt()
1988 i = hlen; in cas_rx_process_pkt()
1999 p += hlen; in cas_rx_process_pkt()
2004 if (alloclen < (hlen + dlen)) { in cas_rx_process_pkt()
2012 hlen = min(cp->page_size - off, dlen); in cas_rx_process_pkt()
2013 if (hlen < 0) { in cas_rx_process_pkt()
[all …]
Dsunvnet.c1155 int hlen = skb_transport_header(skb) - skb_mac_header(skb); in vnet_handle_offloads() local
1164 hlen += tcp_hdr(skb)->doff * 4; in vnet_handle_offloads()
1166 hlen += sizeof(struct udphdr); in vnet_handle_offloads()
1170 hlen = 128; /* XXX */ in vnet_handle_offloads()
1172 datalen = port->tsolen - hlen; in vnet_handle_offloads()
1179 gso_segs = DIV_ROUND_UP(skb->len - hlen, datalen); in vnet_handle_offloads()
1219 DIV_ROUND_UP(curr->len - hlen, gso_size); in vnet_handle_offloads()
/linux-4.1.27/fs/xfs/
Dxfs_ioctl.h75 u32 hlen);
Dxfs_ioctl.c156 u32 hlen) in xfs_handle_to_dentry() argument
167 if (hlen != sizeof(xfs_handle_t)) in xfs_handle_to_dentry()
169 if (copy_from_user(&handle, uhandle, hlen)) in xfs_handle_to_dentry()
Dxfs_log_recover.c4088 int hlen; in xlog_valid_rec_header() local
4104 hlen = be32_to_cpu(rhead->h_len); in xlog_valid_rec_header()
4105 if (unlikely( hlen <= 0 || hlen > INT_MAX )) { in xlog_valid_rec_header()
/linux-4.1.27/drivers/video/fbdev/
Docfb.c108 u32 hlen; in ocfb_setupfb() local
133 hlen = var->left_margin + var->right_margin + var->hsync_len + in ocfb_setupfb()
139 ocfb_writereg(fbdev, OCFB_HVLEN, (hlen - 1) << 16 | (vlen - 1)); in ocfb_setupfb()
/linux-4.1.27/fs/pstore/
Dram.c260 size_t hlen; in ramoops_pstore_write_buf() local
306 hlen = ramoops_write_kmsg_hdr(prz, compressed); in ramoops_pstore_write_buf()
307 if (size + hlen > prz->buffer_size) in ramoops_pstore_write_buf()
308 size = prz->buffer_size - hlen; in ramoops_pstore_write_buf()
/linux-4.1.27/drivers/scsi/
Dgdth_proc.c141 int hlen; in gdth_show_info() local
180 hlen = sprintf(hrec, "%d", reserve_list[0]); in gdth_show_info()
184 hlen += snprintf(hrec + hlen , 161 - hlen, ",%d", reserve_list[i]); in gdth_show_info()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3274 struct eth_tx_start_bd **tx_bd, u16 hlen, in bnx2x_tx_split() argument
3283 h_tx_bd->nbytes = cpu_to_le16(hlen); in bnx2x_tx_split()
3294 le32_to_cpu(h_tx_bd->addr_lo)) + hlen; in bnx2x_tx_split()
3298 d_tx_bd->nbytes = cpu_to_le16(old_len - hlen); in bnx2x_tx_split()
3385 int hlen = 0; in bnx2x_pkt_req_lin() local
3403 hlen = (int)(skb_transport_header(skb) - skb->data) + in bnx2x_pkt_req_lin()
3407 first_bd_sz = skb_headlen(skb) - hlen; in bnx2x_pkt_req_lin()
3451 skb_shinfo(skb)->nr_frags, hlen, first_bd_sz); in bnx2x_pkt_req_lin()
3580 u8 hlen = (skb_network_header(skb) - skb->data) >> 1; in bnx2x_set_pbd_csum() local
3584 cpu_to_le16(hlen | in bnx2x_set_pbd_csum()
[all …]
/linux-4.1.27/net/netfilter/
Dnfnetlink_queue_core.c288 unsigned int hlen = 0; in nfqnl_build_packet_message() local
340 hlen = skb_zerocopy_headlen(entskb); in nfqnl_build_packet_message()
341 hlen = min_t(unsigned int, hlen, data_len); in nfqnl_build_packet_message()
342 size += sizeof(struct nlattr) + hlen; in nfqnl_build_packet_message()
495 if (skb_tailroom(skb) < sizeof(*nla) + hlen) in nfqnl_build_packet_message()
502 if (skb_zerocopy(skb, entskb, data_len, hlen)) in nfqnl_build_packet_message()
/linux-4.1.27/arch/s390/net/
Dbpf_jit.S79 clg %r3,STK_OFF_HLEN(%r15) # Offset >= hlen?
/linux-4.1.27/drivers/net/vmxnet3/
Dvmxnet3_defs.h137 u32 hlen:10; /* header len */ member
139 u32 hlen:10; /* header len */ member
Dvmxnet3_drv.c1034 gdesc->txd.hlen = ctx.eth_ip_hdr_size + ctx.l4_hdr_size; in vmxnet3_tq_xmit()
1038 gdesc->txd.hlen + ctx.mss - 1) / ctx.mss); in vmxnet3_tq_xmit()
1041 gdesc->txd.hlen = ctx.eth_ip_hdr_size; in vmxnet3_tq_xmit()
/linux-4.1.27/net/decnet/
Ddn_nsp_out.c301 …*dn_mk_ack_header(struct sock *sk, struct sk_buff *skb, unsigned char msgflag, int hlen, int other) in dn_mk_ack_header() argument
308 BUG_ON(hlen < 9); in dn_mk_ack_header()
325 ptr = dn_mk_common_header(scp, skb, msgflag, hlen); in dn_mk_ack_header()
/linux-4.1.27/drivers/staging/vt6655/
Drxtx.h51 __be16 hlen; member
Drxtx.c1254 mic_hdr->hlen = cpu_to_be16(28); in vnt_fill_txkey()
1256 mic_hdr->hlen = cpu_to_be16(22); in vnt_fill_txkey()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Dcfg80211.c658 size_t hlen = offsetof(struct ieee80211_mgmt, u.probe_resp.variable); in wil_fix_bcon() local
661 if (bcon->probe_resp_len <= hlen) in wil_fix_bcon()
666 bcon->proberesp_ies_len = bcon->probe_resp_len - hlen; in wil_fix_bcon()
671 bcon->assocresp_ies_len = bcon->probe_resp_len - hlen; in wil_fix_bcon()
/linux-4.1.27/fs/ubifs/
Djournal.c1289 int err, xlen, hlen, len, lnum, xent_offs, aligned_xlen; in ubifs_jnl_delete_xattr() local
1308 hlen = host_ui->data_len + UBIFS_INO_NODE_SZ; in ubifs_jnl_delete_xattr()
1309 len = aligned_xlen + UBIFS_INO_NODE_SZ + ALIGN(hlen, 8); in ubifs_jnl_delete_xattr()
1369 err = ubifs_tnc_add(c, &key1, lnum, xent_offs + len - hlen, hlen); in ubifs_jnl_delete_xattr()
/linux-4.1.27/drivers/staging/vt6656/
Drxtx.h46 __be16 hlen; member
Drxtx.c754 mic_hdr->hlen = cpu_to_be16(28); in vnt_fill_txkey()
756 mic_hdr->hlen = cpu_to_be16(22); in vnt_fill_txkey()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlge/
Dqlge_main.c1550 size_t hlen = ETH_HLEN; in ql_process_mac_rx_page() local
1569 ql_update_mac_hdr_len(qdev, ib_mac_rsp, addr, &hlen); in ql_process_mac_rx_page()
1574 if (skb->len > ndev->mtu + hlen) { in ql_process_mac_rx_page()
1580 memcpy(skb_put(skb, hlen), addr, hlen); in ql_process_mac_rx_page()
1585 lbq_desc->p.pg_chunk.offset + hlen, in ql_process_mac_rx_page()
1586 length - hlen); in ql_process_mac_rx_page()
1587 skb->len += length - hlen; in ql_process_mac_rx_page()
1588 skb->data_len += length - hlen; in ql_process_mac_rx_page()
1589 skb->truesize += length - hlen; in ql_process_mac_rx_page()
1607 (struct iphdr *)((u8 *)addr + hlen); in ql_process_mac_rx_page()
[all …]
/linux-4.1.27/net/bluetooth/
Dl2cap_core.c1030 int hlen = __ertm_hdr_size(chan); in l2cap_create_sframe_pdu() local
1033 hlen += L2CAP_FCS_SIZE; in l2cap_create_sframe_pdu()
1035 skb = bt_skb_alloc(hlen, GFP_KERNEL); in l2cap_create_sframe_pdu()
1041 lh->len = cpu_to_le16(hlen - L2CAP_HDR_SIZE); in l2cap_create_sframe_pdu()
2164 int err, count, hlen = L2CAP_HDR_SIZE + L2CAP_PSMLEN_SIZE; in l2cap_create_connless_pdu() local
2170 count = min_t(unsigned int, (conn->mtu - hlen), len); in l2cap_create_connless_pdu()
2172 skb = chan->ops->alloc_skb(chan, hlen, count, in l2cap_create_connless_pdu()
2227 int err, count, hlen; in l2cap_create_iframe_pdu() local
2235 hlen = __ertm_hdr_size(chan); in l2cap_create_iframe_pdu()
2238 hlen += L2CAP_SDULEN_SIZE; in l2cap_create_iframe_pdu()
[all …]
/linux-4.1.27/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c1097 unsigned int hlen, dlen, plen; in do_rx_iscsi_hdr() local
1113 hlen = ntohs(cpl->len); in do_rx_iscsi_hdr()
1120 if ((hlen + dlen) != plen) { in do_rx_iscsi_hdr()
1123 csk->tid, plen, hlen, dlen, in do_rx_iscsi_hdr()
1128 cxgbi_skcb_rx_pdulen(skb) = (hlen + dlen + 3) & (~0x3); in do_rx_iscsi_hdr()
1135 csk, skb, *bhs, hlen, dlen, in do_rx_iscsi_hdr()
/linux-4.1.27/net/packet/
Daf_packet.c2135 __be16 proto, unsigned char *addr, int hlen) in tpacket_fill_skb() argument
2166 skb_reserve(skb, hlen); in tpacket_fill_skb()
2268 int hlen, tlen; in tpacket_snd() local
2314 hlen = LL_RESERVED_SPACE(dev); in tpacket_snd()
2317 hlen + tlen + sizeof(struct sockaddr_ll), in tpacket_snd()
2327 addr, hlen); in tpacket_snd()
2431 int hlen, tlen; in packet_snd() local
2526 hlen = LL_RESERVED_SPACE(dev); in packet_snd()
2528 skb = packet_alloc_skb(sk, hlen + tlen, hlen, len, in packet_snd()
/linux-4.1.27/drivers/media/dvb-core/
Ddvb_net.c235 unsigned char hlen = (p->ule_sndu_type & 0x0700) >> 8; in handle_one_ule_extension() local
239 if (hlen == 0) { in handle_one_ule_extension()
258 ext_len = hlen << 1; in handle_one_ule_extension()
Ddvb_ca_en50221.c178 static char *findstr(char * haystack, int hlen, char * needle, int nlen) in findstr() argument
182 if (hlen < nlen) in findstr()
185 for (i = 0; i <= hlen - nlen; i++) { in findstr()
/linux-4.1.27/include/linux/
Dskbuff.h2683 int skb_copy_and_csum_datagram_msg(struct sk_buff *skb, int hlen,
2701 int len, int hlen);
2733 int len, void *data, int hlen, void *buffer) in __skb_header_pointer() argument
2735 if (hlen - offset >= len) in __skb_header_pointer()
3425 const struct flow_keys *keys, int hlen);
Dnetdevice.h2229 static inline int skb_gro_header_hard(struct sk_buff *skb, unsigned int hlen) in skb_gro_header_hard() argument
2231 return NAPI_GRO_CB(skb)->frag0_len < hlen; in skb_gro_header_hard()
2234 static inline void *skb_gro_header_slow(struct sk_buff *skb, unsigned int hlen, in skb_gro_header_slow() argument
2237 if (!pskb_may_pull(skb, hlen)) in skb_gro_header_slow()
/linux-4.1.27/net/openvswitch/
Ddatapath.c413 unsigned int hlen; in queue_userspace_packet() local
447 hlen = skb_zerocopy_headlen(skb); in queue_userspace_packet()
449 hlen = skb->len; in queue_userspace_packet()
451 len = upcall_msg_size(upcall_info, hlen); in queue_userspace_packet()
486 err = skb_zerocopy(user_skb, skb, skb->len, hlen); in queue_userspace_packet()
/linux-4.1.27/net/wireless/
Dutil.c692 unsigned int hlen = ALIGN(extra_headroom, 4); in ieee80211_amsdu_to_8023s() local
697 frame = dev_alloc_skb(hlen + subframe_len + 2); in ieee80211_amsdu_to_8023s()
701 skb_reserve(frame, hlen + sizeof(struct ethhdr) + 2); in ieee80211_amsdu_to_8023s()
/linux-4.1.27/drivers/net/ethernet/intel/igbvf/
Dnetdev.c277 u32 length, hlen, staterr; in igbvf_clean_rx_irq() local
296 hlen = (le16_to_cpu(rx_desc->wb.lower.lo_dword.hs_rss.hdr_info) in igbvf_clean_rx_irq()
299 if (hlen > adapter->rx_ps_hdr_size) in igbvf_clean_rx_irq()
300 hlen = adapter->rx_ps_hdr_size; in igbvf_clean_rx_irq()
322 skb_put(skb, hlen); in igbvf_clean_rx_irq()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c1942 unsigned int hlen; in i40e_atr() local
1966 hlen = (hdr.network[0] & 0x0F) << 2; in i40e_atr()
1971 hlen = sizeof(struct ipv6hdr); in i40e_atr()
1976 th = (struct tcphdr *)(hdr.network + hlen); in i40e_atr()
/linux-4.1.27/drivers/net/ethernet/myricom/myri10ge/
Dmyri10ge.c1494 int hlen; in myri10ge_rx_done() local
1499 hlen = MYRI10GE_HLEN > skb->len ? skb->len : MYRI10GE_HLEN; in myri10ge_rx_done()
1503 skb_copy_to_linear_data(skb, va, hlen); in myri10ge_rx_done()
1504 rx_frags[0].page_offset += hlen; in myri10ge_rx_done()
1505 rx_frags[0].size -= hlen; in myri10ge_rx_done()
1506 skb->data_len -= hlen; in myri10ge_rx_done()
1507 skb->tail += hlen; in myri10ge_rx_done()
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
Dbase.c1217 unsigned int keyix, hlen; in ath5k_rx_decrypted() local
1226 hlen = ieee80211_hdrlen(hdr->frame_control); in ath5k_rx_decrypted()
1229 skb->len >= hlen + 4) { in ath5k_rx_decrypted()
1230 keyix = skb->data[hlen + 3] >> 6; in ath5k_rx_decrypted()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c707 int hlen = ip_hdrlen(skb); in fm10k_gre_is_nvgre() local
714 nvgre_hdr = (struct fm10k_nvgre_hdr *)(skb_network_header(skb) + hlen); in fm10k_gre_is_nvgre()
/linux-4.1.27/drivers/scsi/fcoe/
Dfcoe.c1595 unsigned int hlen; /* header length implies the version */ in fcoe_xmit() local
1623 hlen = sizeof(struct fcoe_hdr); in fcoe_xmit()
1662 skb_push(skb, elen + hlen); in fcoe_xmit()
/linux-4.1.27/mm/
Dmemory.c2411 pgoff_t hlen = (holelen + PAGE_SIZE - 1) >> PAGE_SHIFT; in unmap_mapping_range() local
2414 if (sizeof(holelen) > sizeof(hlen)) { in unmap_mapping_range()
2418 hlen = ULONG_MAX - hba + 1; in unmap_mapping_range()
2423 details.last_index = hba + hlen - 1; in unmap_mapping_range()
/linux-4.1.27/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c258 unsigned int hlen, tlen, elen; in bnx2fc_xmit() local
315 hlen = sizeof(struct fcoe_hdr); in bnx2fc_xmit()
344 skb_push(skb, elen + hlen); in bnx2fc_xmit()
/linux-4.1.27/drivers/net/
Dvxlan.c591 unsigned int hlen, off_vx; in vxlan_gro_receive() local
601 hlen = off_vx + sizeof(*vh); in vxlan_gro_receive()
603 if (skb_gro_header_hard(skb, hlen)) { in vxlan_gro_receive()
604 vh = skb_gro_header_slow(skb, hlen, off_vx); in vxlan_gro_receive()
/linux-4.1.27/drivers/staging/gdm724x/
Dgdm_lte.c599 u8 hlen; /* hardware address length */ in gdm_lte_netif_rx() member
/linux-4.1.27/tools/power/cpupower/po/
Dde.po560 " ausw�hlen darf\n"
569 " ausw�hlen darf\n"
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dqp.c2601 unsigned halign = ALIGN(sizeof *wqe + wr->wr.ud.hlen, 16); in build_lso_seg()
2610 memcpy(wqe->header, wr->wr.ud.header, wr->wr.ud.hlen); in build_lso_seg()
2612 *lso_hdr_sz = cpu_to_be32(wr->wr.ud.mss << 16 | wr->wr.ud.hlen); in build_lso_seg()
/linux-4.1.27/include/rdma/
Dib_verbs.h1055 int hlen; member
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
Dcm.c2225 u32 hlen = ntohl(req->hdr_len); in accept_cr() local
2227 tcph = (const void *)(req + 1) + ETH_HDR_LEN_G(hlen) + in accept_cr()
2228 IP_HDR_LEN_G(hlen); in accept_cr()