| /linux/net/batman-adv/ |
| H A D | distributed-arp-table.c | 296 * @hdr_size: size of the possible header before the ARP packet 300 static u8 *batadv_arp_hw_src(struct sk_buff *skb, int hdr_size) in batadv_arp_hw_src() argument 304 addr = (u8 *)(skb->data + hdr_size); in batadv_arp_hw_src() 313 * @hdr_size: size of the possible header before the ARP packet 317 static __be32 batadv_arp_ip_src(struct sk_buff *skb, int hdr_size) in batadv_arp_ip_src() argument 319 u8 *src = batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN; in batadv_arp_ip_src() 328 * @hdr_size: size of the possible header before the ARP packet 332 static u8 *batadv_arp_hw_dst(struct sk_buff *skb, int hdr_size) in batadv_arp_hw_dst() 334 return batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN + 4; 340 * @hdr_size 329 batadv_arp_hw_dst(struct sk_buff * skb,int hdr_size) batadv_arp_hw_dst() argument 341 batadv_arp_ip_dst(struct sk_buff * skb,int hdr_size) batadv_arp_ip_dst() argument 498 batadv_dbg_arp(struct batadv_priv * bat_priv,struct sk_buff * skb,int hdr_size,char * msg) batadv_dbg_arp() argument 566 batadv_dbg_arp(struct batadv_priv * bat_priv,struct sk_buff * skb,int hdr_size,char * msg) batadv_dbg_arp() argument 1075 batadv_arp_get_type(struct batadv_priv * bat_priv,struct sk_buff * skb,int hdr_size) batadv_arp_get_type() argument 1159 batadv_dat_get_vid(struct sk_buff * skb,int * hdr_size) batadv_dat_get_vid() argument 1234 int hdr_size = 0; batadv_dat_snoop_outgoing_arp_request() local 1333 batadv_dat_snoop_incoming_arp_request(struct batadv_priv * bat_priv,struct sk_buff * skb,int hdr_size) batadv_dat_snoop_incoming_arp_request() argument 1403 int hdr_size = 0; batadv_dat_snoop_outgoing_arp_reply() local 1458 batadv_dat_snoop_incoming_arp_reply(struct batadv_priv * bat_priv,struct sk_buff * skb,int hdr_size) batadv_dat_snoop_incoming_arp_reply() argument 1868 batadv_dat_snoop_incoming_dhcp_ack(struct batadv_priv * bat_priv,struct sk_buff * skb,int hdr_size) batadv_dat_snoop_incoming_dhcp_ack() argument 1924 int hdr_size = sizeof(struct batadv_bcast_packet); batadv_dat_drop_broadcast_packet() local [all...] |
| H A D | routing.c | 411 int hdr_size = sizeof(struct batadv_icmp_header); in batadv_recv_icmp_packet() local 420 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_recv_icmp_packet() 512 struct sk_buff *skb, int hdr_size) in batadv_check_unicast_packet() argument 517 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_check_unicast_packet() 1013 int hdr_size = sizeof(*unicast_packet); in batadv_recv_unhandled_unicast_packet() local 1016 check = batadv_check_unicast_packet(bat_priv, skb, hdr_size); in batadv_recv_unhandled_unicast_packet() 1047 int hdr_size = sizeof(*unicast_packet); in batadv_recv_unicast_packet() local 1060 hdr_size = sizeof(*unicast_4addr_packet); in batadv_recv_unicast_packet() 1063 check = batadv_check_unicast_packet(bat_priv, skb, hdr_size); in batadv_recv_unicast_packet() 1067 if (!batadv_check_unicast_ttvn(bat_priv, skb, hdr_size)) in batadv_recv_unicast_packet() [all …]
|
| H A D | distributed-arp-table.h | 30 struct sk_buff *skb, int hdr_size); 34 struct sk_buff *skb, int hdr_size); 40 struct sk_buff *skb, int hdr_size); 115 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_arp_request() argument 129 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_arp_reply() argument 143 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_dhcp_ack() argument
|
| H A D | fragmentation.c | 144 u16 hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_insert_packet() local 162 data_len = skb->len - hdr_size; in batadv_frag_insert_packet() 263 int hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_merge_packets() local 279 size = ntohs(packet->total_size) + hdr_size; in batadv_frag_merge_packets() 292 skb_pull(skb_out, hdr_size); in batadv_frag_merge_packets() 301 size = entry->skb->len - hdr_size; in batadv_frag_merge_packets() 302 skb_put_data(skb_out, entry->skb->data + hdr_size, size); in batadv_frag_merge_packets()
|
| H A D | mesh-interface.h | 19 struct sk_buff *skb, int hdr_size,
|
| H A D | multicast_forw.c | 1094 int hdr_size = VLAN_ETH_HLEN + IPV6_MIN_MTU - skb->len; in batadv_mcast_forw_expand_head() local 1100 if (hdr_size < 0) { in batadv_mcast_forw_expand_head() 1108 if (skb_cow(skb, hdr_size) < 0) in batadv_mcast_forw_expand_head()
|
| /linux/drivers/thunderbolt/ |
| H A D | nvm.c | 59 u32 val, nvm_size, hdr_size; in intel_switch_nvm_version() local 74 hdr_size = sw->generation < 3 ? SZ_8K : SZ_16K; in intel_switch_nvm_version() 76 nvm_size = (nvm_size - hdr_size) / 2; in intel_switch_nvm_version() 92 unsigned int image_size, hdr_size; in intel_switch_nvm_validate() local 102 hdr_size = (*(u32 *)buf) & 0xffffff; in intel_switch_nvm_validate() 103 if (hdr_size + INTEL_NVM_DEVID + 2 >= image_size) in intel_switch_nvm_validate() 107 if (!IS_ALIGNED(hdr_size, SZ_4K)) in intel_switch_nvm_validate() 114 ds_size = *(u16 *)(buf + hdr_size); in intel_switch_nvm_validate() 125 device_id = *(u16 *)(buf + hdr_size + INTEL_NVM_DEVID); in intel_switch_nvm_validate() 130 nvm->buf_data_start = buf + hdr_size; in intel_switch_nvm_validate() [all …]
|
| /linux/samples/bpf/ |
| H A D | tcp_tos_reflect_kern.c | 29 int hdr_size = 0; in bpf_basertt() local 47 hdr_size = sizeof(struct iphdr); in bpf_basertt() 49 hdr_size = sizeof(struct ipv6hdr); in bpf_basertt() 51 header, hdr_size); in bpf_basertt()
|
| /linux/drivers/net/arcnet/ |
| H A D | rfc1051.c | 92 int hdr_size = ARC_HDR_SIZE + RFC1051_HDR_SIZE; in type_trans() local 96 skb_pull(skb, hdr_size); in type_trans() 165 int hdr_size = ARC_HDR_SIZE + RFC1051_HDR_SIZE; in build_header() local 166 struct archdr *pkt = skb_push(skb, hdr_size); in build_header() 200 return hdr_size; in build_header() 205 return hdr_size; /* success */ in build_header()
|
| H A D | arc-rawmode.c | 87 int hdr_size = ARC_HDR_SIZE; in build_header() local 88 struct archdr *pkt = skb_push(skb, hdr_size); in build_header() 105 return hdr_size; in build_header() 110 return hdr_size; /* success */ in build_header()
|
| H A D | capmode.c | 103 int hdr_size = ARC_HDR_SIZE; in build_header() local 104 struct archdr *pkt = skb_push(skb, hdr_size); in build_header() 124 return hdr_size; in build_header() 129 return hdr_size; /* success */ in build_header()
|
| /linux/drivers/nfc/s3fwrn5/ |
| H A D | i2c.c | 81 size_t hdr_size; in s3fwrn5_i2c_read() local 86 hdr_size = (phy->common.mode == S3FWRN5_MODE_NCI) ? in s3fwrn5_i2c_read() 88 ret = i2c_master_recv(phy->i2c_dev, hdr, hdr_size); in s3fwrn5_i2c_read() 92 if (ret < hdr_size) in s3fwrn5_i2c_read() 99 skb = alloc_skb(hdr_size + data_len, GFP_KERNEL); in s3fwrn5_i2c_read() 103 skb_put_data(skb, hdr, hdr_size); in s3fwrn5_i2c_read()
|
| /linux/drivers/cxl/core/ |
| H A D | features.c | 83 int remain_feats, max_size, max_feats, start, rc, hdr_size; in get_supported_features() local 106 hdr_size = struct_size(mbox_out, ents, 0); in get_supported_features() 107 max_size = cxl_mbox->payload_size - hdr_size; in get_supported_features() 138 .min_out = hdr_size, in get_supported_features() 144 if (mbox_cmd.size_out <= hdr_size) in get_supported_features() 151 retrieved = mbox_cmd.size_out - hdr_size; in get_supported_features() 286 size_t hdr_size; in cxl_set_feature() local 300 hdr_size = sizeof(pi->hdr); in cxl_set_feature() 305 if (hdr_size + FEAT_DATA_MIN_PAYLOAD_SIZE > cxl_mbox->payload_size) in cxl_set_feature() 308 if (hdr_size + feat_data_size <= cxl_mbox->payload_size) { in cxl_set_feature() [all …]
|
| /linux/drivers/firmware/efi/ |
| H A D | ovmf-debug-log.c | 18 u64 hdr_size; member 85 size = hdr->hdr_size + hdr->log_size; in ovmf_log_probe() 96 logbuf = (void *)hdr + hdr->hdr_size; in ovmf_log_probe()
|
| /linux/drivers/net/ethernet/chelsio/libcxgb/ |
| H A D | libcxgb_cm.h | 68 unsigned short hdr_size = (ipv6 ? in cxgb_best_mtu() local 74 unsigned short data_size = mtu - hdr_size; in cxgb_best_mtu() 76 cxgb4_best_aligned_mtu(mtus, hdr_size, data_size, 8, idx); in cxgb_best_mtu()
|
| /linux/drivers/infiniband/core/ |
| H A D | user_mad.c | 174 static int hdr_size(struct ib_umad_file *file) in hdr_size() function 258 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len; in recv_handler() 316 count < hdr_size(file) + packet->length) || in copy_recv_mad() 318 count < hdr_size(file) + seg_size)) in copy_recv_mad() 321 if (copy_to_user(buf, &packet->mad, hdr_size(file))) in copy_recv_mad() 324 buf += hdr_size(file); in copy_recv_mad() 334 if (count < hdr_size(file) + packet->length) { in copy_recv_mad() 357 return hdr_size(file) + packet->length; in copy_recv_mad() 363 ssize_t size = hdr_size(file) + packet->length; in copy_send_mad() 368 if (copy_to_user(buf, &packet->mad, hdr_size(file))) in copy_send_mad() [all …]
|
| H A D | mad_rmpp.c | 430 int hdr_size, data_size, pad; in get_mad_len() local 436 hdr_size = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); in get_mad_len() 438 data_size = sizeof(struct opa_rmpp_mad) - hdr_size; in get_mad_len() 443 data_size = sizeof(struct ib_rmpp_mad) - hdr_size; in get_mad_len() 449 return hdr_size + rmpp_recv->seg_num * data_size - pad; in get_mad_len()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_flow.c | 93 __u16 hdr_size, in bpf_flow_dissect_get_header() argument 102 if (thoff > (USHRT_MAX - hdr_size)) in bpf_flow_dissect_get_header() 106 if (hdr + hdr_size <= data_end) in bpf_flow_dissect_get_header() 109 if (bpf_skb_load_bytes(skb, thoff, buffer, hdr_size)) in bpf_flow_dissect_get_header()
|
| /linux/include/uapi/linux/io_uring/ |
| H A D | query.h | 79 __u64 hdr_size; member
|
| /linux/include/uapi/linux/ |
| H A D | pfrut.h | 88 __u32 hdr_size; member
|
| /linux/arch/powerpc/kernel/ |
| H A D | nvram_64.c | 502 size_t length, hdr_size; in nvram_pstore_read() local 507 hdr_size = sizeof(u16); in nvram_pstore_read() 512 hdr_size = sizeof(*oops_hdr); in nvram_pstore_read() 517 record->buf = kmemdup(buff + hdr_size, length, GFP_KERNEL); in nvram_pstore_read()
|
| /linux/drivers/net/ |
| H A D | amt.c | 2271 int hdr_size; in amt_advertisement_handler() local 2273 hdr_size = sizeof(*amta) + sizeof(struct udphdr); in amt_advertisement_handler() 2274 if (!pskb_may_pull(skb, hdr_size)) in amt_advertisement_handler() 2303 int hdr_size, len, err; in amt_multicast_data_handler() local 2310 hdr_size = sizeof(*amtmd) + sizeof(struct udphdr); in amt_multicast_data_handler() 2311 if (!pskb_may_pull(skb, hdr_size)) in amt_multicast_data_handler() 2318 if (iptunnel_pull_header(skb, hdr_size, htons(ETH_P_IP), false)) in amt_multicast_data_handler() 2379 int hdr_size, len; in amt_membership_query_handler() local 2382 hdr_size = sizeof(*amtmq) + sizeof(struct udphdr); in amt_membership_query_handler() 2383 if (!pskb_may_pull(skb, hdr_size)) in amt_membership_query_handler() [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/nvfw/ |
| H A D | hs.c | 37 nvkm_debug(subdev, "\thdrSize : 0x%x\n", hdr->hdr_size); in nvfw_hs_header()
|
| /linux/net/netfilter/ |
| H A D | nf_flow_table_ip.c | 155 u32 hdr_size; member 331 ctx->tun.hdr_size = size; in nf_flow_ip4_tunnel_proto() 332 ctx->offset += ctx->tun.hdr_size; in nf_flow_ip4_tunnel_proto() 356 ctx->tun.hdr_size = sizeof(*ip6h); in nf_flow_ip6_tunnel_proto() 357 ctx->offset += ctx->tun.hdr_size; in nf_flow_ip6_tunnel_proto() 373 skb_pull(skb, ctx->tun.hdr_size); in nf_flow_ip_tunnel_pop()
|
| /linux/drivers/s390/crypto/ |
| H A D | zcrypt_ep11misc.c | 895 size_t hdr_size, pl_size; in ep11_genaeskey() local 908 &hdr, &hdr_size, &pl, &pl_size); in ep11_genaeskey() 917 *keybufsize = hdr_size + pl_size; in ep11_genaeskey() 1213 size_t hdr_size, pl_size; in ep11_unwrapkey() local 1218 &hdr, &hdr_size, &pl, &pl_size); in ep11_unwrapkey() 1228 *keybufsize = hdr_size + pl_size; in ep11_unwrapkey()
|