Home
last modified time | relevance | path

Searched refs:hdr_size (Results 1 - 25 of 138) sorted by relevance

123456

/kernel/linux/linux-5.10/net/batman-adv/
H A Ddistributed-arp-table.c228 * @hdr_size: size of the possible header before the ARP packet
232 static u8 *batadv_arp_hw_src(struct sk_buff *skb, int hdr_size) in batadv_arp_hw_src() argument
236 addr = (u8 *)(skb->data + hdr_size); in batadv_arp_hw_src()
245 * @hdr_size: size of the possible header before the ARP packet
249 static __be32 batadv_arp_ip_src(struct sk_buff *skb, int hdr_size) in batadv_arp_ip_src() argument
251 return *(__force __be32 *)(batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN); in batadv_arp_ip_src()
257 * @hdr_size: size of the possible header before the ARP packet
261 static u8 *batadv_arp_hw_dst(struct sk_buff *skb, int hdr_size) in batadv_arp_hw_dst() argument
263 return batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN + 4; in batadv_arp_hw_dst()
269 * @hdr_size
273 batadv_arp_ip_dst(struct sk_buff *skb, int hdr_size) batadv_arp_ip_dst() argument
425 batadv_dbg_arp(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size, char *msg) batadv_dbg_arp() argument
492 batadv_dbg_arp(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size, char *msg) batadv_dbg_arp() argument
1059 batadv_arp_get_type(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size) batadv_arp_get_type() argument
1134 batadv_dat_get_vid(struct sk_buff *skb, int *hdr_size) batadv_dat_get_vid() argument
1206 int hdr_size = 0; batadv_dat_snoop_outgoing_arp_request() local
1293 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
1365 int hdr_size = 0; batadv_dat_snoop_outgoing_arp_reply() local
1406 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
1807 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
1859 int hdr_size = sizeof(struct batadv_bcast_packet); batadv_dat_drop_broadcast_packet() local
[all...]
H A Drouting.c362 int hdr_size = sizeof(struct batadv_icmp_header); in batadv_recv_icmp_packet() local
366 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_recv_icmp_packet()
450 * @hdr_size: size of header to pull
459 struct sk_buff *skb, int hdr_size) in batadv_check_unicast_packet()
464 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_check_unicast_packet()
933 int check, hdr_size = sizeof(*unicast_packet); in batadv_recv_unhandled_unicast_packet() local
935 check = batadv_check_unicast_packet(bat_priv, skb, hdr_size); in batadv_recv_unhandled_unicast_packet()
966 int check, hdr_size = sizeof(*unicast_packet); in batadv_recv_unicast_packet() local
975 hdr_size = sizeof(*unicast_4addr_packet); in batadv_recv_unicast_packet()
978 check = batadv_check_unicast_packet(bat_priv, skb, hdr_size); in batadv_recv_unicast_packet()
458 batadv_check_unicast_packet(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size) batadv_check_unicast_packet() argument
1075 int hdr_size = sizeof(*unicast_tvlv_packet); batadv_recv_unicast_tvlv() local
1194 int hdr_size = sizeof(*bcast_packet); batadv_recv_bcast_packet() local
[all...]
H A Ddistributed-arp-table.h31 struct sk_buff *skb, int hdr_size);
35 struct sk_buff *skb, int hdr_size);
41 struct sk_buff *skb, int hdr_size);
117 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_arp_request()
131 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_arp_reply()
145 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_dhcp_ack()
116 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
130 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
144 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
H A Dfragmentation.c147 u16 seqno, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_insert_packet() local
176 chain->size = skb->len - hdr_size; in batadv_frag_insert_packet()
193 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet()
206 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet()
254 int size, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_merge_packets() local
266 size = ntohs(packet->total_size) + hdr_size; in batadv_frag_merge_packets()
279 skb_pull(skb_out, hdr_size); in batadv_frag_merge_packets()
288 size = entry->skb->len - hdr_size; in batadv_frag_merge_packets()
289 skb_put_data(skb_out, entry->skb->data + hdr_size, size); in batadv_frag_merge_packets()
/kernel/linux/linux-6.6/net/batman-adv/
H A Ddistributed-arp-table.c227 * @hdr_size: size of the possible header before the ARP packet
231 static u8 *batadv_arp_hw_src(struct sk_buff *skb, int hdr_size) in batadv_arp_hw_src() argument
235 addr = (u8 *)(skb->data + hdr_size); in batadv_arp_hw_src()
244 * @hdr_size: size of the possible header before the ARP packet
248 static __be32 batadv_arp_ip_src(struct sk_buff *skb, int hdr_size) in batadv_arp_ip_src() argument
250 return *(__force __be32 *)(batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN); in batadv_arp_ip_src()
256 * @hdr_size: size of the possible header before the ARP packet
260 static u8 *batadv_arp_hw_dst(struct sk_buff *skb, int hdr_size) in batadv_arp_hw_dst() argument
262 return batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN + 4; in batadv_arp_hw_dst()
268 * @hdr_size
272 batadv_arp_ip_dst(struct sk_buff *skb, int hdr_size) batadv_arp_ip_dst() 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
1000 batadv_arp_get_type(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size) batadv_arp_get_type() argument
1075 batadv_dat_get_vid(struct sk_buff *skb, int *hdr_size) batadv_dat_get_vid() argument
1147 int hdr_size = 0; batadv_dat_snoop_outgoing_arp_request() local
1233 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
1304 int hdr_size = 0; batadv_dat_snoop_outgoing_arp_reply() local
1345 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
1745 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
1797 int hdr_size = sizeof(struct batadv_bcast_packet); batadv_dat_drop_broadcast_packet() local
[all...]
H A Drouting.c346 int hdr_size = sizeof(struct batadv_icmp_header); in batadv_recv_icmp_packet() local
350 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_recv_icmp_packet()
433 * @hdr_size: size of header to pull
442 struct sk_buff *skb, int hdr_size) in batadv_check_unicast_packet()
447 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_check_unicast_packet()
913 int check, hdr_size = sizeof(*unicast_packet); in batadv_recv_unhandled_unicast_packet() local
915 check = batadv_check_unicast_packet(bat_priv, skb, hdr_size); in batadv_recv_unhandled_unicast_packet()
946 int check, hdr_size = sizeof(*unicast_packet); in batadv_recv_unicast_packet() local
955 hdr_size = sizeof(*unicast_4addr_packet); in batadv_recv_unicast_packet()
958 check = batadv_check_unicast_packet(bat_priv, skb, hdr_size); in batadv_recv_unicast_packet()
441 batadv_check_unicast_packet(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size) batadv_check_unicast_packet() argument
1054 int hdr_size = sizeof(*unicast_tvlv_packet); batadv_recv_unicast_tvlv() local
1172 int hdr_size = sizeof(*bcast_packet); batadv_recv_bcast_packet() local
[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()
129 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_arp_reply()
143 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_dhcp_ack()
114 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
128 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
142 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
H A Dfragmentation.c146 u16 seqno, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_insert_packet() local
175 chain->size = skb->len - hdr_size; in batadv_frag_insert_packet()
192 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet()
205 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet()
253 int size, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_merge_packets() local
265 size = ntohs(packet->total_size) + hdr_size; in batadv_frag_merge_packets()
278 skb_pull(skb_out, hdr_size); in batadv_frag_merge_packets()
287 size = entry->skb->len - hdr_size; in batadv_frag_merge_packets()
288 skb_put_data(skb_out, entry->skb->data + hdr_size, size); in batadv_frag_merge_packets()
/kernel/linux/linux-6.6/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()
226 unsigned int image_size, hdr_size; intel_retimer_nvm_validate() local
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
H A Drxe_icrc.c20 int hdr_size = sizeof(struct udphdr) + in rxe_icrc_hdr() local
36 memcpy(pshdr, ip_hdr(skb), hdr_size); in rxe_icrc_hdr()
44 memcpy(pshdr, ipv6_hdr(skb), hdr_size); in rxe_icrc_hdr()
54 bth_offset += hdr_size; in rxe_icrc_hdr()
62 length = hdr_size + RXE_BTH_BYTES; in rxe_icrc_hdr()
/kernel/linux/linux-5.10/drivers/media/pci/cx18/
H A Dcx18-vbi.c95 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) in compress_raw_buf() argument
104 buf += hdr_size; in compress_raw_buf()
115 /* last line is hdr_size bytes short - extrapolate it */ in compress_raw_buf()
116 memcpy(q, p + 4, line_size - 4 - hdr_size); in compress_raw_buf()
117 q += line_size - 4 - hdr_size; in compress_raw_buf()
118 p += line_size - hdr_size - 1; in compress_raw_buf()
119 memset(q, (int) *p, hdr_size); in compress_raw_buf()
129 const u32 hdr_size) in compress_sliced_buf()
138 for (i = hdr_size, buf += hdr_size; in compress_sliced_buf()
128 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size, const u32 hdr_size) compress_sliced_buf() argument
[all...]
/kernel/linux/linux-6.6/drivers/media/pci/cx18/
H A Dcx18-vbi.c95 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) in compress_raw_buf() argument
104 buf += hdr_size; in compress_raw_buf()
115 /* last line is hdr_size bytes short - extrapolate it */ in compress_raw_buf()
116 memcpy(q, p + 4, line_size - 4 - hdr_size); in compress_raw_buf()
117 q += line_size - 4 - hdr_size; in compress_raw_buf()
118 p += line_size - hdr_size - 1; in compress_raw_buf()
119 memset(q, (int) *p, hdr_size); in compress_raw_buf()
129 const u32 hdr_size) in compress_sliced_buf()
138 for (i = hdr_size, buf += hdr_size; in compress_sliced_buf()
128 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size, const u32 hdr_size) compress_sliced_buf() argument
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/drivers/infiniband/sw/rxe/
H A Drxe_icrc.c81 int hdr_size = sizeof(struct udphdr) + in rxe_icrc_hdr() local
97 memcpy(pshdr, ip_hdr(skb), hdr_size); in rxe_icrc_hdr()
105 memcpy(pshdr, ipv6_hdr(skb), hdr_size); in rxe_icrc_hdr()
115 bth_offset += hdr_size; in rxe_icrc_hdr()
123 length = hdr_size + RXE_BTH_BYTES; in rxe_icrc_hdr()
/kernel/linux/linux-5.10/drivers/net/arcnet/
H A Drfc1051.c91 int hdr_size = ARC_HDR_SIZE + RFC1051_HDR_SIZE; in type_trans() local
95 skb_pull(skb, hdr_size); in type_trans()
164 int hdr_size = ARC_HDR_SIZE + RFC1051_HDR_SIZE; in build_header() local
165 struct archdr *pkt = skb_push(skb, hdr_size); in build_header()
199 return hdr_size; in build_header()
204 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()
/kernel/linux/linux-5.10/drivers/nfc/s3fwrn5/
H A Di2c.c127 size_t hdr_size; in s3fwrn5_i2c_read() local
132 hdr_size = (phy->mode == S3FWRN5_MODE_NCI) ? in s3fwrn5_i2c_read()
134 ret = i2c_master_recv(phy->i2c_dev, hdr, hdr_size); in s3fwrn5_i2c_read()
138 if (ret < hdr_size) in s3fwrn5_i2c_read()
145 skb = alloc_skb(hdr_size + data_len, GFP_KERNEL); in s3fwrn5_i2c_read()
149 skb_put_data(skb, hdr, hdr_size); in s3fwrn5_i2c_read()
/kernel/linux/linux-6.6/drivers/net/arcnet/
H A Drfc1051.c91 int hdr_size = ARC_HDR_SIZE + RFC1051_HDR_SIZE; in type_trans() local
95 skb_pull(skb, hdr_size); in type_trans()
164 int hdr_size = ARC_HDR_SIZE + RFC1051_HDR_SIZE; in build_header() local
165 struct archdr *pkt = skb_push(skb, hdr_size); in build_header()
199 return hdr_size; in build_header()
204 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()
/kernel/linux/linux-6.6/drivers/nfc/s3fwrn5/
H A Di2c.c83 size_t hdr_size; in s3fwrn5_i2c_read() local
88 hdr_size = (phy->common.mode == S3FWRN5_MODE_NCI) ? in s3fwrn5_i2c_read()
90 ret = i2c_master_recv(phy->i2c_dev, hdr, hdr_size); in s3fwrn5_i2c_read()
94 if (ret < hdr_size) in s3fwrn5_i2c_read()
101 skb = alloc_skb(hdr_size + data_len, GFP_KERNEL); in s3fwrn5_i2c_read()
105 skb_put_data(skb, hdr, hdr_size); in s3fwrn5_i2c_read()
/kernel/linux/linux-6.6/drivers/soc/qcom/
H A Dapr.c192 uint16_t hdr_size, msg_type, ver, svc_id; in apr_do_rx_callback() local
207 hdr_size = APR_HDR_FIELD_SIZE_BYTES(hdr->hdr_field); in apr_do_rx_callback()
208 if (hdr_size < APR_HDR_SIZE) { in apr_do_rx_callback()
209 dev_err(apr->dev, "APR: Wrong hdr size:%d\n", hdr_size); in apr_do_rx_callback()
248 resp.payload_size = hdr->pkt_size - hdr_size; in apr_do_rx_callback()
251 * NOTE: hdr_size is not same as APR_HDR_SIZE as remote can include in apr_do_rx_callback()
255 resp.payload = buf + hdr_size; in apr_do_rx_callback()
264 uint16_t hdr_size, ver; in gpr_do_rx_callback() local
277 hdr_size = hdr->hdr_size; in gpr_do_rx_callback()
[all...]
/kernel/linux/linux-5.10/fs/xfs/libxfs/
H A Dxfs_attr_remote.c294 int hdr_size = 0; in xfs_attr_rmtval_copyout() local
307 hdr_size = sizeof(struct xfs_attr3_rmt_hdr); in xfs_attr_rmtval_copyout()
310 memcpy(*dst, src + hdr_size, byte_cnt); in xfs_attr_rmtval_copyout()
342 int hdr_size; in xfs_attr_rmtval_copyin() local
346 hdr_size = xfs_attr3_rmt_hdr_set(mp, dst, ino, *offset, in xfs_attr_rmtval_copyin()
349 memcpy(dst + hdr_size, *src, byte_cnt); in xfs_attr_rmtval_copyin()
355 if (byte_cnt + hdr_size < blksize) { in xfs_attr_rmtval_copyin()
358 memset(dst + hdr_size + byte_cnt, 0, in xfs_attr_rmtval_copyin()
359 blksize - hdr_size - byte_cnt); in xfs_attr_rmtval_copyin()
/kernel/linux/linux-6.6/fs/xfs/libxfs/
H A Dxfs_attr_remote.c294 int hdr_size = 0; in xfs_attr_rmtval_copyout() local
307 hdr_size = sizeof(struct xfs_attr3_rmt_hdr); in xfs_attr_rmtval_copyout()
310 memcpy(*dst, src + hdr_size, byte_cnt); in xfs_attr_rmtval_copyout()
342 int hdr_size; in xfs_attr_rmtval_copyin() local
346 hdr_size = xfs_attr3_rmt_hdr_set(mp, dst, ino, *offset, in xfs_attr_rmtval_copyin()
349 memcpy(dst + hdr_size, *src, byte_cnt); in xfs_attr_rmtval_copyin()
355 if (byte_cnt + hdr_size < blksize) { in xfs_attr_rmtval_copyin()
358 memset(dst + hdr_size + byte_cnt, 0, in xfs_attr_rmtval_copyin()
359 blksize - hdr_size - byte_cnt); in xfs_attr_rmtval_copyin()
/kernel/linux/linux-5.10/drivers/thunderbolt/
H A Dretimer.c103 unsigned int image_size, hdr_size; in tb_retimer_nvm_validate_and_write() local
115 hdr_size = (*(u32 *)buf) & 0xffffff; in tb_retimer_nvm_validate_and_write()
116 if (hdr_size + NVM_DEVID + 2 >= image_size) in tb_retimer_nvm_validate_and_write()
120 if (!IS_ALIGNED(hdr_size, SZ_4K)) in tb_retimer_nvm_validate_and_write()
127 ds_size = *(u16 *)(buf + hdr_size); in tb_retimer_nvm_validate_and_write()
135 device = *(u16 *)(buf + hdr_size + NVM_DEVID); in tb_retimer_nvm_validate_and_write()
140 buf += hdr_size; in tb_retimer_nvm_validate_and_write()
141 image_size -= hdr_size; in tb_retimer_nvm_validate_and_write()

Completed in 17 milliseconds

123456