Home
last modified time | relevance | path

Searched refs:offsetofend (Results 1 – 25 of 115) sorted by relevance

12345

/linux-6.3-rc2/tools/lib/bpf/
A Dbpf.c384 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 Dskel_internal.h214 #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 Dlibbpf_internal.h90 #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 Dgen_loader.c420 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 Dbpf_tcp_ca.c92 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 Dsecure_seq.c71 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 Dbpf_util.h57 #ifndef offsetofend
58 #define offsetofend(TYPE, MEMBER) \ macro
/linux-6.3-rc2/drivers/gpu/drm/i915/
A Di915_vma_types.h149 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 Dvfio_iommu_spapr_tce.c788 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 Dvfio_main.c774 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 Dstddef.h32 #define offsetofend(TYPE, MEMBER) \ macro
A Dstring.h320 memset(__ptr + offsetofend(typeof(*(obj)), member), __val, \
321 sizeof(*(obj)) - offsetofend(typeof(*(obj)), member)); \
/linux-6.3-rc2/fs/crypto/
A Dfname.c69 #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 Dvfio_compat.c163 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 Dvfio_fsl_mc.c133 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 Dvfio_ccw_ops.c521 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 Dvfio_platform_common.c286 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 Dmdpy.c525 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 Dhisi_acc_vfio_pci.h53 #define QM_MATCH_SIZE offsetofend(struct acc_vf_data, qm_rsv_state)
/linux-6.3-rc2/arch/x86/kernel/
A Dasm-offsets_32.c54 offsetofend(struct cpu_entry_area, entry_stack_page.stack)); in foo()
/linux-6.3-rc2/arch/powerpc/include/asm/
A Dhvcall.h627 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 Dtest_run.c1026 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 Dinit.c144 ALIGN(offsetofend(TYPE, MEMBER), _Alignof(TYPE)))
/linux-6.3-rc2/drivers/fpga/
A Ddfl-afu-main.c657 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 Dvfio_pci_core.c888 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()

Completed in 43 milliseconds

12345