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

123

/linux-master/samples/bpf/
H A Dtcp_tos_reflect_kern.c29 int hdr_size = 0; local
47 hdr_size = sizeof(struct iphdr);
49 hdr_size = sizeof(struct ipv6hdr);
51 header, hdr_size);
/linux-master/net/batman-adv/
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)
129 struct sk_buff *skb, int hdr_size)
143 struct sk_buff *skb, int hdr_size)
114 batadv_dat_snoop_incoming_arp_request(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size) argument
128 batadv_dat_snoop_incoming_arp_reply(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size) argument
142 batadv_dat_snoop_incoming_dhcp_ack(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size) argument
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) argument
235 addr = (u8 *)(skb->data + hdr_size);
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) argument
250 return *(__force __be32 *)(batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN);
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) argument
262 return batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN + 4;
268 * @hdr_size
272 batadv_arp_ip_dst(struct sk_buff *skb, int hdr_size) argument
423 batadv_dbg_arp(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size, char *msg) argument
490 batadv_dbg_arp(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size, char *msg) argument
999 batadv_arp_get_type(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size) argument
1074 batadv_dat_get_vid(struct sk_buff *skb, int *hdr_size) argument
1146 int hdr_size = 0; local
1232 batadv_dat_snoop_incoming_arp_request(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size) argument
1303 int hdr_size = 0; local
1344 batadv_dat_snoop_incoming_arp_reply(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size) argument
1744 batadv_dat_snoop_incoming_dhcp_ack(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size) argument
1796 int hdr_size = sizeof(struct batadv_bcast_packet); local
[all...]
H A Dsoft-interface.h20 struct sk_buff *skb, int hdr_size,
H A Drouting.c346 int hdr_size = sizeof(struct batadv_icmp_header); local
350 if (unlikely(!pskb_may_pull(skb, hdr_size)))
433 * @hdr_size: size of header to pull
442 struct sk_buff *skb, int hdr_size)
447 if (unlikely(!pskb_may_pull(skb, hdr_size)))
913 int check, hdr_size = sizeof(*unicast_packet); local
915 check = batadv_check_unicast_packet(bat_priv, skb, hdr_size);
946 int check, hdr_size = sizeof(*unicast_packet); local
955 hdr_size = sizeof(*unicast_4addr_packet);
958 check = batadv_check_unicast_packet(bat_priv, skb, hdr_size);
441 batadv_check_unicast_packet(struct batadv_priv *bat_priv, struct sk_buff *skb, int hdr_size) argument
1054 int hdr_size = sizeof(*unicast_tvlv_packet); local
1172 int hdr_size = sizeof(*bcast_packet); local
1291 int hdr_size = sizeof(*mcast_packet); local
[all...]
H A Dbridge_loop_avoidance.h42 int hdr_size);
77 int hdr_size)
75 batadv_bla_is_backbone_gw(struct sk_buff *skb, struct batadv_orig_node *orig_node, int hdr_size) argument
H A Dfragmentation.c145 u16 seqno, hdr_size = sizeof(struct batadv_frag_packet); local
174 chain->size = skb->len - hdr_size;
191 chain->size += skb->len - hdr_size;
204 chain->size += skb->len - hdr_size;
252 int size, hdr_size = sizeof(struct batadv_frag_packet); local
264 size = ntohs(packet->total_size) + hdr_size;
277 skb_pull(skb_out, hdr_size);
286 size = entry->skb->len - hdr_size;
287 skb_put_data(skb_out, entry->skb->data + hdr_size, size);
/linux-master/drivers/thunderbolt/
H A Dnvm.c59 u32 val, nvm_size, hdr_size; local
74 hdr_size = sw->generation < 3 ? SZ_8K : SZ_16K;
76 nvm_size = (nvm_size - hdr_size) / 2;
92 unsigned int image_size, hdr_size; local
102 hdr_size = (*(u32 *)buf) & 0xffffff;
103 if (hdr_size + INTEL_NVM_DEVID + 2 >= image_size)
107 if (!IS_ALIGNED(hdr_size, SZ_4K))
114 ds_size = *(u16 *)(buf + hdr_size);
125 device_id = *(u16 *)(buf + hdr_size + INTEL_NVM_DEVID);
130 nvm->buf_data_start = buf + hdr_size;
226 unsigned int image_size, hdr_size; local
[all...]
/linux-master/drivers/media/pci/cx18/
H A Dcx18-vbi.c95 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) argument
104 buf += hdr_size;
115 /* last line is hdr_size bytes short - extrapolate it */
116 memcpy(q, p + 4, line_size - 4 - hdr_size);
117 q += line_size - 4 - hdr_size;
118 p += line_size - hdr_size - 1;
119 memset(q, (int) *p, hdr_size);
129 const u32 hdr_size)
138 for (i = hdr_size, buf += hdr_size;
128 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size, const u32 hdr_size) argument
[all...]
/linux-master/drivers/infiniband/sw/rxe/
H A Drxe_icrc.c81 int hdr_size = sizeof(struct udphdr) + local
97 memcpy(pshdr, ip_hdr(skb), hdr_size);
105 memcpy(pshdr, ipv6_hdr(skb), hdr_size);
115 bth_offset += hdr_size;
123 length = hdr_size + RXE_BTH_BYTES;
/linux-master/drivers/net/arcnet/
H A Darc-rawmode.c87 int hdr_size = ARC_HDR_SIZE; local
88 struct archdr *pkt = skb_push(skb, hdr_size);
105 return hdr_size;
110 return hdr_size; /* success */
H A Drfc1051.c92 int hdr_size = ARC_HDR_SIZE + RFC1051_HDR_SIZE; local
96 skb_pull(skb, hdr_size);
165 int hdr_size = ARC_HDR_SIZE + RFC1051_HDR_SIZE; local
166 struct archdr *pkt = skb_push(skb, hdr_size);
200 return hdr_size;
205 return hdr_size; /* success */
H A Dcapmode.c103 int hdr_size = ARC_HDR_SIZE; local
104 struct archdr *pkt = skb_push(skb, hdr_size);
124 return hdr_size;
129 return hdr_size; /* success */
H A Drfc1201.c96 int hdr_size = ARC_HDR_SIZE + RFC1201_HDR_SIZE; local
100 skb_pull(skb, hdr_size);
382 int hdr_size = ARC_HDR_SIZE + RFC1201_HDR_SIZE; local
383 struct archdr *pkt = skb_push(skb, hdr_size);
436 return hdr_size;
440 return hdr_size;
/linux-master/drivers/nfc/s3fwrn5/
H A Di2c.c83 size_t hdr_size; local
88 hdr_size = (phy->common.mode == S3FWRN5_MODE_NCI) ?
90 ret = i2c_master_recv(phy->i2c_dev, hdr, hdr_size);
94 if (ret < hdr_size)
101 skb = alloc_skb(hdr_size + data_len, GFP_KERNEL);
105 skb_put_data(skb, hdr, hdr_size);
/linux-master/drivers/soc/qcom/
H A Dapr.c192 uint16_t hdr_size, msg_type, ver, svc_id; local
207 hdr_size = APR_HDR_FIELD_SIZE_BYTES(hdr->hdr_field);
208 if (hdr_size < APR_HDR_SIZE) {
209 dev_err(apr->dev, "APR: Wrong hdr size:%d\n", hdr_size);
248 resp.payload_size = hdr->pkt_size - hdr_size;
251 * NOTE: hdr_size is not same as APR_HDR_SIZE as remote can include
255 resp.payload = buf + hdr_size;
264 uint16_t hdr_size, ver; local
277 hdr_size = hdr->hdr_size;
[all...]
/linux-master/drivers/net/ethernet/chelsio/libcxgb/
H A Dlibcxgb_cm.h68 unsigned short hdr_size = (ipv6 ? local
74 unsigned short data_size = mtu - hdr_size;
76 cxgb4_best_aligned_mtu(mtus, hdr_size, data_size, 8, idx);
/linux-master/drivers/gpu/drm/nouveau/include/nvfw/
H A Dhs.h15 u32 hdr_size; member in struct:nvfw_hs_header
/linux-master/fs/xfs/libxfs/
H A Dxfs_attr_remote.c296 int hdr_size = 0; local
310 hdr_size = sizeof(struct xfs_attr3_rmt_hdr);
313 memcpy(*dst, src + hdr_size, byte_cnt);
345 int hdr_size; local
349 hdr_size = xfs_attr3_rmt_hdr_set(mp, dst, ino, *offset,
352 memcpy(dst + hdr_size, *src, byte_cnt);
358 if (byte_cnt + hdr_size < blksize) {
361 memset(dst + hdr_size + byte_cnt, 0,
362 blksize - hdr_size - byte_cnt);
/linux-master/include/uapi/linux/
H A Dpfrut.h79 * @hdr_size: Size of this header, including the OemHeader bytes.
88 __u32 hdr_size; member in struct:pfru_payload_hdr
/linux-master/drivers/gpu/drm/mediatek/
H A Dmtk_drm_plane.c170 int hdr_size, hdr_offset; local
176 hdr_size = ALIGN(hdr_pitch * height_in_blocks, AFBC_HEADER_ALIGNMENT);
197 addr = addr + hdr_size + offset;
/linux-master/drivers/thermal/intel/
H A Dintel_hfi.c137 * @hdr_size: Size of the table header
144 unsigned int hdr_size; member in struct:hfi_features
350 hfi_instance->data = hfi_instance->hdr + hfi_features.hdr_size;
565 hfi_features.hdr_size = DIV_ROUND_UP(nr_capabilities, 8) * 8;
/linux-master/drivers/gpu/drm/nouveau/nvkm/nvfw/
H A Dhs.c37 nvkm_debug(subdev, "\thdrSize : 0x%x\n", hdr->hdr_size);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_flow.c93 __u16 hdr_size,
102 if (thoff > (USHRT_MAX - hdr_size))
106 if (hdr + hdr_size <= data_end)
109 if (bpf_skb_load_bytes(skb, thoff, buffer, hdr_size))
92 bpf_flow_dissect_get_header(struct __sk_buff *skb, __u16 hdr_size, void *buffer) argument
/linux-master/drivers/infiniband/core/
H A Duser_mad.c171 static int hdr_size(struct ib_umad_file *file) function
251 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len;
309 count < hdr_size(file) + packet->length) ||
311 count < hdr_size(file) + seg_size))
314 if (copy_to_user(buf, &packet->mad, hdr_size(file)))
317 buf += hdr_size(file);
327 if (count < hdr_size(file) + packet->length) {
350 return hdr_size(file) + packet->length;
356 ssize_t size = hdr_size(file) + packet->length;
361 if (copy_to_user(buf, &packet->mad, hdr_size(fil
[all...]

Completed in 254 milliseconds

123