Home
last modified time | relevance | path

Searched refs:hdr_size (Results 1 – 25 of 56) sorted by relevance

123

/linux/net/batman-adv/
H A Ddistributed-arp-table.c230 static u8 *batadv_arp_hw_src(struct sk_buff *skb, int hdr_size) in batadv_arp_hw_src() argument
234 addr = (u8 *)(skb->data + hdr_size); in batadv_arp_hw_src()
247 static __be32 batadv_arp_ip_src(struct sk_buff *skb, int hdr_size) in batadv_arp_ip_src() argument
249 return *(__force __be32 *)(batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN); in batadv_arp_ip_src()
259 static u8 *batadv_arp_hw_dst(struct sk_buff *skb, int hdr_size) in batadv_arp_hw_dst() argument
261 return batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN + 4; in batadv_arp_hw_dst()
271 static __be32 batadv_arp_ip_dst(struct sk_buff *skb, int hdr_size) in batadv_arp_ip_dst() argument
273 u8 *dst = batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN * 2 + 4; in batadv_arp_ip_dst()
423 int hdr_size, char *msg) in batadv_dbg_arp() argument
433 ip_src = batadv_arp_ip_src(skb, hdr_size); in batadv_dbg_arp()
[all …]
H A Ddistributed-arp-table.h30 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 Dfragmentation.c145 u16 seqno, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_insert_packet() local
174 chain->size = skb->len - hdr_size; in batadv_frag_insert_packet()
191 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet()
204 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet()
252 int size, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_merge_packets() local
264 size = ntohs(packet->total_size) + hdr_size; in batadv_frag_merge_packets()
277 skb_pull(skb_out, hdr_size); in batadv_frag_merge_packets()
286 size = entry->skb->len - hdr_size; in batadv_frag_merge_packets()
287 skb_put_data(skb_out, entry->skb->data + hdr_size, size); in batadv_frag_merge_packets()
H A Dbridge_loop_avoidance.h42 int hdr_size);
77 int hdr_size) in batadv_bla_is_backbone_gw() argument
H A Dmulticast_forw.c1090 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 Dnvm.c59 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 Dtcp_tos_reflect_kern.c29 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 Dfeatures.c83 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 + feat_data_size <= cxl_mbox->payload_size) { in cxl_set_feature()
[all …]
/linux/drivers/net/arcnet/
H A Drfc1051.c92 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 Darc-rawmode.c87 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 Dcapmode.c103 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 Drfc1201.c96 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 Dovmf-debug-log.c18 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 Dlibcxgb_cm.h68 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 Duser_mad.c174 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 Dmad_rmpp.c430 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 Dbpf_flow.c93 __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 Ddynptr_fail.c1547 __u32 hdr_size = sizeof(struct ethhdr); in clone_invalidate3()
1560 hdr = bpf_dynptr_slice(&ptr, 0, buffer, hdr_size);
1578 if (hdr_size <= sizeof(buffer)) { in clone_invalidate4()
1580 hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, hdr_size); in clone_invalidate4()
1312 __u32 hdr_size = sizeof(struct ethhdr); global() variable
/linux/drivers/gpu/drm/mediatek/
H A Dmtk_plane.c150 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/net/
H A Damt.c2254 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()
[all …]
/linux/include/uapi/linux/
H A Dpfrut.h88 __u32 hdr_size; member
/linux/arch/powerpc/kernel/
H A Dnvram_64.c502 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 Dhs.c37 nvkm_debug(subdev, "\thdrSize : 0x%x\n", hdr->hdr_size); in nvfw_hs_header()
/linux/drivers/scsi/qla4xxx/
H A Dql4_83xx.c810 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()
/linux/net/netfilter/
H A Dnf_flow_table_ip.c154 u32 hdr_size; member
339 ctx->tun.hdr_size = size; in nf_flow_ip4_tunnel_proto()
369 ctx->tun.hdr_size = hdrlen; in nf_flow_ip6_tunnel_proto()
372 ctx->offset += ctx->tun.hdr_size; in nf_flow_ip6_tunnel_proto()
387 skb_pull(skb, ctx->tun.hdr_size); in nf_flow_ip_tunnel_pop()

123