/linux-6.6.21/net/batman-adv/ |
D | distributed-arp-table.c | 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() 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() 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() 272 static __be32 batadv_arp_ip_dst(struct sk_buff *skb, int hdr_size) in batadv_arp_ip_dst() argument 274 u8 *dst = batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN * 2 + 4; in batadv_arp_ip_dst() 424 int hdr_size, char *msg) in batadv_dbg_arp() argument 434 ip_src = batadv_arp_ip_src(skb, hdr_size); in batadv_dbg_arp() [all …]
|
D | routing.c | 346 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() 442 struct sk_buff *skb, int hdr_size) in batadv_check_unicast_packet() argument 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() 968 if (!batadv_check_unicast_ttvn(bat_priv, skb, hdr_size)) in batadv_recv_unicast_packet() [all …]
|
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
|
D | fragmentation.c | 146 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()
|
D | bridge_loop_avoidance.h | 42 int hdr_size); 77 int hdr_size) in batadv_bla_is_backbone_gw() argument
|
D | soft-interface.h | 20 struct sk_buff *skb, int hdr_size,
|
/linux-6.6.21/drivers/thunderbolt/ |
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-6.6.21/drivers/media/pci/cx18/ |
D | cx18-vbi.c | 95 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() 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() argument 138 for (i = hdr_size, buf += hdr_size; i < size; i++, buf++) { in compress_sliced_buf() 150 size -= (i - hdr_size); in compress_sliced_buf()
|
/linux-6.6.21/samples/bpf/ |
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-6.6.21/drivers/net/arcnet/ |
D | rfc1051.c | 91 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()
|
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()
|
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()
|
D | rfc1201.c | 95 int hdr_size = ARC_HDR_SIZE + RFC1201_HDR_SIZE; in type_trans() local 99 skb_pull(skb, hdr_size); in type_trans() 381 int hdr_size = ARC_HDR_SIZE + RFC1201_HDR_SIZE; in build_header() local 382 struct archdr *pkt = skb_push(skb, hdr_size); in build_header() 435 return hdr_size; in build_header() 439 return hdr_size; in build_header()
|
/linux-6.6.21/drivers/infiniband/sw/rxe/ |
D | rxe_icrc.c | 81 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()
|
/linux-6.6.21/drivers/nfc/s3fwrn5/ |
D | i2c.c | 83 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()
|
/linux-6.6.21/drivers/soc/qcom/ |
D | apr.c | 192 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() 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() 278 if (hdr_size < GPR_PKT_HEADER_WORD_SIZE) { in gpr_do_rx_callback() 279 dev_err(gpr->dev, "GPR: Wrong hdr size:%d\n", hdr_size); in gpr_do_rx_callback() [all …]
|
/linux-6.6.21/fs/xfs/libxfs/ |
D | xfs_attr_remote.c | 294 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()
|
/linux-6.6.21/drivers/net/ethernet/chelsio/libcxgb/ |
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-6.6.21/drivers/infiniband/core/ |
D | user_mad.c | 171 static int hdr_size(struct ib_umad_file *file) in hdr_size() function 251 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len; in recv_handler() 309 count < hdr_size(file) + packet->length) || in copy_recv_mad() 311 count < hdr_size(file) + seg_size)) in copy_recv_mad() 314 if (copy_to_user(buf, &packet->mad, hdr_size(file))) in copy_recv_mad() 317 buf += hdr_size(file); in copy_recv_mad() 327 if (count < hdr_size(file) + packet->length) { in copy_recv_mad() 350 return hdr_size(file) + packet->length; in copy_recv_mad() 356 ssize_t size = hdr_size(file) + packet->length; in copy_send_mad() 361 if (copy_to_user(buf, &packet->mad, hdr_size(file))) in copy_send_mad() [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
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-6.6.21/drivers/thermal/intel/ |
D | intel_hfi.c | 144 unsigned int hdr_size; member 350 hfi_instance->data = hfi_instance->hdr + hfi_features.hdr_size; in init_hfi_instance() 562 hfi_features.hdr_size = DIV_ROUND_UP(nr_capabilities, 8) * 8; in hfi_parse_features()
|
/linux-6.6.21/drivers/gpu/drm/mediatek/ |
D | mtk_drm_plane.c | 170 int hdr_size, hdr_offset; in mtk_plane_update_new_state() local 176 hdr_size = ALIGN(hdr_pitch * height_in_blocks, AFBC_HEADER_ALIGNMENT); in mtk_plane_update_new_state() 197 addr = addr + hdr_size + offset; in mtk_plane_update_new_state()
|
/linux-6.6.21/arch/powerpc/platforms/powernv/ |
D | opal-core.c | 302 u32 hdr_size, cpu_notes_size, count; in create_opalcore() local 313 hdr_size = (sizeof(Elf64_Ehdr) + in create_opalcore() 322 oc_conf->opalcorebuf_sz = PAGE_ALIGN(hdr_size + cpu_notes_size); in create_opalcore() 386 phdr->p_offset = cpu_to_be64(hdr_size); in create_opalcore()
|
/linux-6.6.21/drivers/gpu/drm/nouveau/include/nvfw/ |
D | hs.h | 15 u32 hdr_size; member
|
/linux-6.6.21/include/uapi/linux/ |
D | pfrut.h | 88 __u32 hdr_size; member
|