/linux-6.3-rc2/tools/lib/bpf/ |
A D | bpf.c | 384 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_update_elem() 400 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_elem() 415 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_elem_flags() 431 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_and_delete_elem() 446 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_and_delete_elem_flags() 462 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_delete_elem() 476 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_delete_elem_flags() 522 const size_t attr_sz = offsetofend(union bpf_attr, batch); in bpf_map_batch_common() 824 const size_t attr_sz = offsetofend(union bpf_attr, query); in bpf_prog_query_opts() 869 const size_t attr_sz = offsetofend(union bpf_attr, test); in bpf_prog_test_run_opts() [all …]
|
A D | skel_internal.h | 214 #ifndef offsetofend 215 #define offsetofend(TYPE, MEMBER) \ macro 225 const size_t attr_sz = offsetofend(union bpf_attr, map_extra); in skel_map_create() 242 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_update_elem() 256 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_delete_elem() 268 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_get_fd_by_id() 279 const size_t attr_sz = offsetofend(union bpf_attr, raw_tracepoint.prog_fd); in skel_raw_tracepoint_open() 292 const size_t attr_sz = offsetofend(union bpf_attr, link_create.iter_info_len); in skel_link_create() 311 const size_t prog_load_attr_sz = offsetofend(union bpf_attr, fd_array); in bpf_load_and_run() 312 const size_t test_run_attr_sz = offsetofend(union bpf_attr, test); in bpf_load_and_run()
|
A D | libbpf_internal.h | 90 #ifndef offsetofend 91 # define offsetofend(TYPE, FIELD) \ macro 298 offsetofend(struct type, \ 302 ((opts) && opts->sz >= offsetofend(typeof(*(opts)), field)) 313 ssize_t __off = offsetofend(typeof(*(opts)), last_nonzero_field); \
|
A D | gen_loader.c | 420 int attr_size = offsetofend(union bpf_attr, btf_log_level); in bpf_gen__load_btf() 454 int attr_size = offsetofend(union bpf_attr, map_extra); in bpf_gen__map_create() 742 emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code))); in emit_ksym_relo_log() 838 emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code))); in emit_relo_ksym_btf() 840 emit(gen, BPF_STX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, offsetofend(struct bpf_insn, code))); in emit_relo_ksym_btf() 938 int attr_size = offsetofend(union bpf_attr, core_relo_rec_size); in bpf_gen__prog_load() 1035 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__map_update_elem() 1082 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__populate_outer_map() 1108 int attr_size = offsetofend(union bpf_attr, map_fd); in bpf_gen__map_freeze()
|
/linux-6.3-rc2/net/ipv4/ |
A D | bpf_tcp_ca.c | 92 end = offsetofend(struct sock, sk_pacing_rate); in bpf_tcp_ca_btf_struct_access() 95 end = offsetofend(struct sock, sk_pacing_status); in bpf_tcp_ca_btf_struct_access() 98 end = offsetofend(struct inet_connection_sock, icsk_ca_priv); in bpf_tcp_ca_btf_struct_access() 101 end = offsetofend(struct inet_connection_sock, in bpf_tcp_ca_btf_struct_access() 105 end = offsetofend(struct tcp_sock, snd_cwnd); in bpf_tcp_ca_btf_struct_access() 108 end = offsetofend(struct tcp_sock, snd_cwnd_cnt); in bpf_tcp_ca_btf_struct_access() 111 end = offsetofend(struct tcp_sock, snd_ssthresh); in bpf_tcp_ca_btf_struct_access() 114 end = offsetofend(struct tcp_sock, ecn_flags); in bpf_tcp_ca_btf_struct_access()
|
/linux-6.3-rc2/net/core/ |
A D | secure_seq.c | 71 return siphash(&combined, offsetofend(typeof(combined), daddr), in secure_tcpv6_ts_off() 93 hash = siphash(&combined, offsetofend(typeof(combined), dport), in secure_tcpv6_seq() 114 return siphash(&combined, offsetofend(typeof(combined), dport), in secure_ipv6_port_ephemeral() 192 seq = siphash(&combined, offsetofend(typeof(combined), dport), in secure_dccpv6_sequence_number()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | bpf_util.h | 57 #ifndef offsetofend 58 #define offsetofend(TYPE, MEMBER) \ macro
|
/linux-6.3-rc2/drivers/gpu/drm/i915/ |
A D | i915_vma_types.h | 149 BUILD_BUG_ON(offsetofend(struct intel_remapped_info, plane[1]) != in assert_i915_gem_gtt_types() 150 offsetofend(struct intel_rotation_info, plane[1])); in assert_i915_gem_gtt_types()
|
/linux-6.3-rc2/drivers/vfio/ |
A D | vfio_iommu_spapr_tce.c | 788 minsz = offsetofend(struct vfio_eeh_pe_op, op); in vfio_spapr_ioctl_eeh_pe_op() 815 minsz = offsetofend(struct vfio_eeh_pe_op, err.mask); in vfio_spapr_ioctl_eeh_pe_op() 872 minsz = offsetofend(struct vfio_iommu_spapr_tce_info, in tce_iommu_ioctl() 895 ddwsz = offsetofend(struct vfio_iommu_spapr_tce_info, ddw); in tce_iommu_ioctl() 914 minsz = offsetofend(struct vfio_iommu_type1_dma_map, size); in tce_iommu_ioctl() 980 minsz = offsetofend(struct vfio_iommu_type1_dma_unmap, in tce_iommu_ioctl() 1022 minsz = offsetofend(struct vfio_iommu_spapr_register_memory, in tce_iommu_ioctl() 1055 minsz = offsetofend(struct vfio_iommu_spapr_register_memory, in tce_iommu_ioctl() 1119 minsz = offsetofend(struct vfio_iommu_spapr_tce_create, in tce_iommu_ioctl() 1160 minsz = offsetofend(struct vfio_iommu_spapr_tce_remove, in tce_iommu_ioctl()
|
A D | vfio_main.c | 774 offsetofend(struct vfio_device_feature_mig_state, data_fd); in vfio_ioctl_device_feature_mig_device_state() 877 offsetofend(struct vfio_device_feature_dma_logging_control, in vfio_ioctl_device_feature_logging_start() 989 offsetofend(struct vfio_device_feature_dma_logging_report, in vfio_ioctl_device_feature_logging_report() 1031 size_t minsz = offsetofend(struct vfio_device_feature, flags); in vfio_ioctl_device_feature() 1233 minsz = offsetofend(struct vfio_irq_set, count); in vfio_set_irqs_validate_and_prepare()
|
/linux-6.3-rc2/include/linux/ |
A D | stddef.h | 32 #define offsetofend(TYPE, MEMBER) \ macro
|
A D | string.h | 320 memset(__ptr + offsetofend(typeof(*(obj)), member), __val, \ 321 sizeof(*(obj)) - offsetofend(typeof(*(obj)), member)); \
|
/linux-6.3-rc2/fs/crypto/ |
A D | fname.c | 69 #define FSCRYPT_NOKEY_NAME_MAX offsetofend(struct fscrypt_nokey_name, sha256) 395 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, dirhash) != in fscrypt_fname_disk_to_usr() 397 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, bytes) != in fscrypt_fname_disk_to_usr()
|
/linux-6.3-rc2/drivers/iommu/iommufd/ |
A D | vfio_compat.c | 163 size_t minsz = offsetofend(struct vfio_iommu_type1_dma_map, size); in iommufd_vfio_map_dma() 200 size_t minsz = offsetofend(struct vfio_iommu_type1_dma_unmap, size); in iommufd_vfio_unmap_dma() 449 size_t minsz = offsetofend(struct vfio_iommu_type1_info, iova_pgsizes); in iommufd_vfio_iommu_get_info()
|
/linux-6.3-rc2/drivers/vfio/fsl-mc/ |
A D | vfio_fsl_mc.c | 133 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_fsl_mc_ioctl() 156 minsz = offsetofend(struct vfio_region_info, offset); in vfio_fsl_mc_ioctl() 180 minsz = offsetofend(struct vfio_irq_info, count); in vfio_fsl_mc_ioctl() 204 minsz = offsetofend(struct vfio_irq_set, count); in vfio_fsl_mc_ioctl()
|
/linux-6.3-rc2/drivers/s390/cio/ |
A D | vfio_ccw_ops.c | 521 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_ccw_mdev_ioctl() 539 minsz = offsetofend(struct vfio_region_info, offset); in vfio_ccw_mdev_ioctl() 557 minsz = offsetofend(struct vfio_irq_info, count); in vfio_ccw_mdev_ioctl() 580 minsz = offsetofend(struct vfio_irq_set, count); in vfio_ccw_mdev_ioctl()
|
/linux-6.3-rc2/drivers/vfio/platform/ |
A D | vfio_platform_common.c | 286 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_platform_ioctl() 306 minsz = offsetofend(struct vfio_region_info, offset); in vfio_platform_ioctl() 328 minsz = offsetofend(struct vfio_irq_info, count); in vfio_platform_ioctl() 351 minsz = offsetofend(struct vfio_irq_set, count); in vfio_platform_ioctl()
|
/linux-6.3-rc2/samples/vfio-mdev/ |
A D | mdpy.c | 525 minsz = offsetofend(struct vfio_device_info, num_irqs); in mdpy_ioctl() 550 minsz = offsetofend(struct vfio_region_info, offset); in mdpy_ioctl() 573 minsz = offsetofend(struct vfio_irq_info, count); in mdpy_ioctl() 596 minsz = offsetofend(struct vfio_device_gfx_plane_info, in mdpy_ioctl()
|
/linux-6.3-rc2/drivers/vfio/pci/hisilicon/ |
A D | hisi_acc_vfio_pci.h | 53 #define QM_MATCH_SIZE offsetofend(struct acc_vf_data, qm_rsv_state)
|
/linux-6.3-rc2/arch/x86/kernel/ |
A D | asm-offsets_32.c | 54 offsetofend(struct cpu_entry_area, entry_stack_page.stack)); in foo()
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | hvcall.h | 627 return offsetofend(struct hv_guest_state, ppr); in hv_guest_state_size() 629 return offsetofend(struct hv_guest_state, dawrx1); in hv_guest_state_size()
|
/linux-6.3-rc2/net/bpf/ |
A D | test_run.c | 1026 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, mark), in convert___skb_to_skb() 1034 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, ifindex), in convert___skb_to_skb() 1040 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, cb), in convert___skb_to_skb() 1048 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_segs), in convert___skb_to_skb() 1054 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_size), in convert___skb_to_skb() 1060 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, hwtstamp), in convert___skb_to_skb() 1462 if (!range_is_zero(ctx, offsetofend(struct bpf_flow_keys, flags), in verify_user_bpf_flow_keys() 1569 if (!range_is_zero(user_ctx, offsetofend(typeof(*user_ctx), local_port), sizeof(*user_ctx))) in bpf_prog_test_run_sk_lookup()
|
/linux-6.3-rc2/arch/x86/kernel/fpu/ |
A D | init.c | 144 ALIGN(offsetofend(TYPE, MEMBER), _Alignof(TYPE)))
|
/linux-6.3-rc2/drivers/fpga/ |
A D | dfl-afu-main.c | 657 minsz = offsetofend(struct dfl_fpga_port_info, num_umsgs); in afu_ioctl_get_info() 686 minsz = offsetofend(struct dfl_fpga_port_region_info, offset); in afu_ioctl_get_region_info() 715 minsz = offsetofend(struct dfl_fpga_port_dma_map, iova); in afu_ioctl_dma_map() 746 minsz = offsetofend(struct dfl_fpga_port_dma_unmap, iova); in afu_ioctl_dma_unmap()
|
/linux-6.3-rc2/drivers/vfio/pci/ |
A D | vfio_pci_core.c | 888 unsigned long minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_pci_ioctl_get_info() 895 capsz = offsetofend(struct vfio_iommu_type1_info, cap_offset); in vfio_pci_ioctl_get_info() 945 unsigned long minsz = offsetofend(struct vfio_region_info, offset); in vfio_pci_ioctl_get_region_info() 1086 unsigned long minsz = offsetofend(struct vfio_irq_info, count); in vfio_pci_ioctl_get_irq_info() 1123 unsigned long minsz = offsetofend(struct vfio_irq_set, count); in vfio_pci_ioctl_set_irqs() 1188 offsetofend(struct vfio_pci_hot_reset_info, count); in vfio_pci_ioctl_get_pci_hot_reset_info() 1261 unsigned long minsz = offsetofend(struct vfio_pci_hot_reset, count); in vfio_pci_ioctl_pci_hot_reset() 1355 unsigned long minsz = offsetofend(struct vfio_device_ioeventfd, fd); in vfio_pci_ioctl_ioeventfd()
|