| /linux/net/batman-adv/ |
| H A D | distributed-arp-table.c | 230 * @hdr_size: size of the possible header before the ARP packet in batadv_arp_hw_src() argument 234 static u8 *batadv_arp_hw_src(struct sk_buff *skb, int hdr_size) in batadv_arp_hw_src() 238 addr = (u8 *)(skb->data + hdr_size); in batadv_arp_hw_src() 247 * @hdr_size: size of the possible header before the ARP packet in batadv_arp_ip_src() argument 251 static __be32 batadv_arp_ip_src(struct sk_buff *skb, int hdr_size) 253 return *(__force __be32 *)(batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN); 259 * @hdr_size: size of the possible header before the ARP packet in batadv_arp_hw_dst() argument 263 static u8 *batadv_arp_hw_dst(struct sk_buff *skb, int hdr_size) 265 return batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN + 4; 271 * @hdr_size argument 423 batadv_dbg_arp(struct batadv_priv * bat_priv,struct sk_buff * skb,int hdr_size,char * msg) batadv_dbg_arp() argument 490 batadv_dbg_arp(struct batadv_priv * bat_priv,struct sk_buff * skb,int hdr_size,char * msg) batadv_dbg_arp() argument 992 batadv_arp_get_type(struct batadv_priv * bat_priv,struct sk_buff * skb,int hdr_size) batadv_arp_get_type() argument 1066 batadv_dat_get_vid(struct sk_buff * skb,int * hdr_size) batadv_dat_get_vid() argument 1138 int hdr_size = 0; batadv_dat_snoop_outgoing_arp_request() local 1225 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 1295 int hdr_size = 0; batadv_dat_snoop_outgoing_arp_reply() local 1337 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 1737 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 1788 int hdr_size = sizeof(struct batadv_bcast_packet); batadv_dat_drop_broadcast_packet() local [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 | 147 u16 seqno, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_insert_packet() 160 data_len = skb->len - hdr_size; in batadv_frag_insert_packet() 264 int size, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_merge_packets() 276 size = ntohs(packet->total_size) + hdr_size; in batadv_frag_merge_packets() 289 skb_pull(skb_out, hdr_size); in batadv_frag_merge_packets() 298 size = entry->skb->len - hdr_size; in batadv_frag_merge_packets() 299 skb_put_data(skb_out, entry->skb->data + hdr_size, size); in batadv_frag_merge_packets() 146 u16 seqno, hdr_size = sizeof(struct batadv_frag_packet); batadv_frag_insert_packet() local 263 int size, hdr_size = sizeof(struct batadv_frag_packet); batadv_frag_merge_packets() local
|
| H A D | bridge_loop_avoidance.h | 42 int hdr_size); 77 int hdr_size) in batadv_bla_is_backbone_gw() argument
|
| H A D | multicast_forw.c | 1090 int hdr_size = VLAN_ETH_HLEN + IPV6_MIN_MTU - skb->len; in batadv_mcast_forw_expand_head() local 1096 if (hdr_size < 0) { in batadv_mcast_forw_expand_head() 1104 if (skb_headroom(skb) < hdr_size && in batadv_mcast_forw_expand_head() 1105 pskb_expand_head(skb, hdr_size, 0, GFP_ATOMIC) < 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/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() 285 size_t hdr_size; in cxl_set_feature() local 299 hdr_size = sizeof(pi->hdr); in cxl_set_feature() 304 if (hdr_size + FEAT_DATA_MIN_PAYLOAD_SIZE > cxl_mbox->payload_size) in cxl_set_feature() 307 if (hdr_size in cxl_set_feature() [all...] |
| /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()
|
| H A D | rfc1201.c | 96 int hdr_size = ARC_HDR_SIZE + RFC1201_HDR_SIZE; in type_trans() local 100 skb_pull(skb, hdr_size); in type_trans() 382 int hdr_size = ARC_HDR_SIZE + RFC1201_HDR_SIZE; in build_header() local 383 struct archdr *pkt = skb_push(skb, hdr_size); in build_header() 436 return hdr_size; in build_header() 440 return hdr_size; in build_header()
|
| /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()
|
| H A D | dynptr_fail.c | 1589 __u32 hdr_size = sizeof(struct ethhdr); 1602 hdr = bpf_dynptr_slice(&ptr, 0, buffer, hdr_size); in clone_invalidate5() 1620 if (hdr_size <= sizeof(buffer)) { in clone_invalidate6() 1622 hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, hdr_size); in clone_invalidate6() 1312 __u32 hdr_size = sizeof(struct ethhdr); global() variable
|
| /linux/drivers/gpu/drm/mediatek/ |
| H A D | mtk_plane.c | 150 int hdr_size, hdr_offset; in mtk_plane_update_new_state() local 156 hdr_size = ALIGN(hdr_pitch * height_in_blocks, AFBC_HEADER_ALIGNMENT); in mtk_plane_update_new_state() 177 addr = addr + hdr_size + offset; in mtk_plane_update_new_state()
|
| /linux/drivers/gpu/drm/hyperv/ |
| H A D | hyperv_drm_proto.c | 427 size_t hdr_size; in hyperv_receive_sub() local 433 hdr_size = sizeof(struct pipe_msg_hdr) + in hyperv_receive_sub() 435 if (bytes_recvd < hdr_size) { in hyperv_receive_sub() 443 need = hdr_size; in hyperv_receive_sub()
|
| /linux/drivers/net/ |
| H A D | amt.c | 2254 int hdr_size; in amt_advertisement_handler() local 2256 hdr_size = sizeof(*amta) + sizeof(struct udphdr); in amt_advertisement_handler() 2257 if (!pskb_may_pull(skb, hdr_size)) in amt_advertisement_handler() 2286 int hdr_size, len, err; in amt_multicast_data_handler() local 2293 hdr_size = sizeof(*amtmd) + sizeof(struct udphdr); in amt_multicast_data_handler() 2294 if (!pskb_may_pull(skb, hdr_size)) in amt_multicast_data_handler() 2301 if (iptunnel_pull_header(skb, hdr_size, htons(ETH_P_IP), false)) in amt_multicast_data_handler() 2357 int hdr_size, len; in amt_membership_query_handler() local 2359 hdr_size = sizeof(*amtmq) + sizeof(struct udphdr); in amt_membership_query_handler() 2360 if (!pskb_may_pull(skb, hdr_size)) in amt_membership_query_handler() 2457 int len, hdr_size; amt_update_handler() local [all...] |
| /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/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/drivers/scsi/qla4xxx/ |
| H A D | ql4_83xx.c | 810 tmplt_hdr_size = ha->reset_tmplt.hdr->hdr_size/sizeof(uint32_t); in qla4_83xx_read_reset_template() 818 addr = QLA83XX_RESET_TEMPLATE_ADDR + ha->reset_tmplt.hdr->hdr_size; in qla4_83xx_read_reset_template() 819 p_buff = ha->reset_tmplt.buff + ha->reset_tmplt.hdr->hdr_size; in qla4_83xx_read_reset_template() 821 ha->reset_tmplt.hdr->hdr_size) / sizeof(uint32_t); in qla4_83xx_read_reset_template() 852 ha->reset_tmplt.hdr->hdr_size; in qla4_83xx_read_reset_template()
|