| /Linux-v6.1/tools/lib/bpf/ |
| D | bpf.c | 108 const size_t attr_sz = offsetofend(union bpf_attr, attach_btf_obj_fd); in probe_memcg_account() 172 const size_t attr_sz = offsetofend(union bpf_attr, map_extra); in bpf_map_create() 235 const size_t attr_sz = offsetofend(union bpf_attr, fd_array); in bpf_prog_load() 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() [all …]
|
| 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()
|
| 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); \
|
| 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-v6.1/net/ipv4/ |
| D | bpf_tcp_ca.c | 91 end = offsetofend(struct sock, sk_pacing_rate); in bpf_tcp_ca_btf_struct_access() 94 end = offsetofend(struct sock, sk_pacing_status); in bpf_tcp_ca_btf_struct_access() 97 end = offsetofend(struct inet_connection_sock, icsk_ca_priv); in bpf_tcp_ca_btf_struct_access() 100 end = offsetofend(struct inet_connection_sock, in bpf_tcp_ca_btf_struct_access() 104 end = offsetofend(struct tcp_sock, snd_cwnd); in bpf_tcp_ca_btf_struct_access() 107 end = offsetofend(struct tcp_sock, snd_cwnd_cnt); in bpf_tcp_ca_btf_struct_access() 110 end = offsetofend(struct tcp_sock, snd_ssthresh); in bpf_tcp_ca_btf_struct_access() 113 end = offsetofend(struct tcp_sock, ecn_flags); in bpf_tcp_ca_btf_struct_access()
|
| /Linux-v6.1/net/core/ |
| 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-v6.1/tools/testing/selftests/bpf/ |
| D | bpf_util.h | 38 #ifndef offsetofend 39 #define offsetofend(TYPE, MEMBER) \ macro
|
| /Linux-v6.1/drivers/vfio/ |
| D | vfio_spapr_eeh.c | 51 minsz = offsetofend(struct vfio_eeh_pe_op, op); in vfio_spapr_iommu_eeh_ioctl() 86 minsz = offsetofend(struct vfio_eeh_pe_op, err.mask); in vfio_spapr_iommu_eeh_ioctl()
|
| D | vfio_iommu_spapr_tce.c | 822 minsz = offsetofend(struct vfio_iommu_spapr_tce_info, in tce_iommu_ioctl() 845 ddwsz = offsetofend(struct vfio_iommu_spapr_tce_info, ddw); in tce_iommu_ioctl() 864 minsz = offsetofend(struct vfio_iommu_type1_dma_map, size); in tce_iommu_ioctl() 930 minsz = offsetofend(struct vfio_iommu_type1_dma_unmap, in tce_iommu_ioctl() 972 minsz = offsetofend(struct vfio_iommu_spapr_register_memory, in tce_iommu_ioctl() 1005 minsz = offsetofend(struct vfio_iommu_spapr_register_memory, in tce_iommu_ioctl() 1070 minsz = offsetofend(struct vfio_iommu_spapr_tce_create, in tce_iommu_ioctl() 1111 minsz = offsetofend(struct vfio_iommu_spapr_tce_remove, in tce_iommu_ioctl()
|
| D | vfio_main.c | 878 unsigned long minsz = offsetofend(struct vfio_group_status, flags); in vfio_group_ioctl_get_status() 1231 offsetofend(struct vfio_device_feature_mig_state, data_fd); in vfio_ioctl_device_feature_mig_device_state() 1306 offsetofend(struct vfio_device_feature_dma_logging_control, in vfio_ioctl_device_feature_logging_start() 1418 offsetofend(struct vfio_device_feature_dma_logging_report, in vfio_ioctl_device_feature_logging_report() 1460 size_t minsz = offsetofend(struct vfio_device_feature, flags); in vfio_ioctl_device_feature() 1770 minsz = offsetofend(struct vfio_irq_set, count); in vfio_set_irqs_validate_and_prepare()
|
| /Linux-v6.1/drivers/gpu/drm/i915/ |
| 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-v6.1/drivers/s390/cio/ |
| D | vfio_ccw_ops.c | 480 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_ccw_mdev_ioctl() 498 minsz = offsetofend(struct vfio_region_info, offset); in vfio_ccw_mdev_ioctl() 516 minsz = offsetofend(struct vfio_irq_info, count); in vfio_ccw_mdev_ioctl() 539 minsz = offsetofend(struct vfio_irq_set, count); in vfio_ccw_mdev_ioctl()
|
| /Linux-v6.1/include/linux/ |
| D | stddef.h | 32 #define offsetofend(TYPE, MEMBER) \ macro
|
| D | string.h | 319 memset(__ptr + offsetofend(typeof(*(obj)), member), __val, \ 320 sizeof(*(obj)) - offsetofend(typeof(*(obj)), member)); \
|
| /Linux-v6.1/fs/crypto/ |
| 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-v6.1/drivers/vfio/platform/ |
| D | vfio_platform_common.c | 290 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_platform_ioctl() 310 minsz = offsetofend(struct vfio_region_info, offset); in vfio_platform_ioctl() 332 minsz = offsetofend(struct vfio_irq_info, count); in vfio_platform_ioctl() 355 minsz = offsetofend(struct vfio_irq_set, count); in vfio_platform_ioctl()
|
| /Linux-v6.1/drivers/vfio/fsl-mc/ |
| 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-v6.1/samples/vfio-mdev/ |
| D | mdpy.c | 526 minsz = offsetofend(struct vfio_device_info, num_irqs); in mdpy_ioctl() 551 minsz = offsetofend(struct vfio_region_info, offset); in mdpy_ioctl() 574 minsz = offsetofend(struct vfio_irq_info, count); in mdpy_ioctl() 597 minsz = offsetofend(struct vfio_device_gfx_plane_info, in mdpy_ioctl()
|
| /Linux-v6.1/drivers/vfio/pci/hisilicon/ |
| D | hisi_acc_vfio_pci.h | 53 #define QM_MATCH_SIZE offsetofend(struct acc_vf_data, qm_rsv_state)
|
| /Linux-v6.1/arch/x86/kernel/ |
| D | asm-offsets_32.c | 54 offsetofend(struct cpu_entry_area, entry_stack_page.stack)); in foo()
|
| /Linux-v6.1/arch/powerpc/include/asm/ |
| 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-v6.1/net/bpf/ |
| D | test_run.c | 995 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, mark), in convert___skb_to_skb() 1003 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, ifindex), in convert___skb_to_skb() 1009 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, cb), in convert___skb_to_skb() 1017 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_segs), in convert___skb_to_skb() 1023 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_size), in convert___skb_to_skb() 1029 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, hwtstamp), in convert___skb_to_skb() 1428 if (!range_is_zero(ctx, offsetofend(struct bpf_flow_keys, flags), in verify_user_bpf_flow_keys() 1535 if (!range_is_zero(user_ctx, offsetofend(typeof(*user_ctx), local_port), sizeof(*user_ctx))) in bpf_prog_test_run_sk_lookup()
|
| /Linux-v6.1/arch/x86/kernel/fpu/ |
| D | init.c | 146 BUILD_BUG_ON(sizeof(TYPE) != ALIGN(offsetofend(TYPE, MEMBER), \
|
| /Linux-v6.1/drivers/fpga/ |
| 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-v6.1/drivers/vfio/pci/ |
| D | vfio_pci_core.c | 880 unsigned long minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_pci_ioctl_get_info() 887 capsz = offsetofend(struct vfio_iommu_type1_info, cap_offset); in vfio_pci_ioctl_get_info() 937 unsigned long minsz = offsetofend(struct vfio_region_info, offset); in vfio_pci_ioctl_get_region_info() 1078 unsigned long minsz = offsetofend(struct vfio_irq_info, count); in vfio_pci_ioctl_get_irq_info() 1115 unsigned long minsz = offsetofend(struct vfio_irq_set, count); in vfio_pci_ioctl_set_irqs() 1180 offsetofend(struct vfio_pci_hot_reset_info, count); in vfio_pci_ioctl_get_pci_hot_reset_info() 1253 unsigned long minsz = offsetofend(struct vfio_pci_hot_reset, count); in vfio_pci_ioctl_pci_hot_reset() 1347 unsigned long minsz = offsetofend(struct vfio_device_ioeventfd, fd); in vfio_pci_ioctl_ioeventfd()
|