/openbmc/linux/net/ipv4/ |
H A D | bpf_tcp_ca.c | 86 end = offsetofend(struct sock, sk_pacing_rate); in bpf_tcp_ca_btf_struct_access() 89 end = offsetofend(struct sock, sk_pacing_status); in bpf_tcp_ca_btf_struct_access() 92 end = offsetofend(struct inet_connection_sock, icsk_ca_priv); in bpf_tcp_ca_btf_struct_access() 95 end = offsetofend(struct inet_connection_sock, in bpf_tcp_ca_btf_struct_access() 99 end = offsetofend(struct tcp_sock, snd_cwnd); in bpf_tcp_ca_btf_struct_access() 102 end = offsetofend(struct tcp_sock, snd_cwnd_cnt); in bpf_tcp_ca_btf_struct_access() 105 end = offsetofend(struct tcp_sock, snd_ssthresh); in bpf_tcp_ca_btf_struct_access() 108 end = offsetofend(struct tcp_sock, ecn_flags); in bpf_tcp_ca_btf_struct_access() 111 end = offsetofend(struct tcp_sock, app_limited); in bpf_tcp_ca_btf_struct_access()
|
/openbmc/linux/tools/lib/bpf/ |
H 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()
|
H A 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, log_true_size); in bpf_prog_load() 383 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_update_elem() 399 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_elem() 414 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_elem_flags() 430 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_and_delete_elem() 445 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_and_delete_elem_flags() 461 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_delete_elem() 475 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_delete_elem_flags() [all …]
|
H A D | libbpf_internal.h | 105 #ifndef offsetofend 106 # define offsetofend(TYPE, FIELD) \ macro 313 offsetofend(struct type, \ 317 ((opts) && opts->sz >= offsetofend(typeof(*(opts)), field)) 328 ssize_t __off = offsetofend(typeof(*(opts)), last_nonzero_field); \
|
H 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() 746 emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code))); in emit_ksym_relo_log() 844 emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code))); in emit_relo_ksym_btf() 846 emit(gen, BPF_STX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, offsetofend(struct bpf_insn, code))); in emit_relo_ksym_btf() 940 int attr_size = offsetofend(union bpf_attr, core_relo_rec_size); in bpf_gen__prog_load() 1037 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__map_update_elem() 1084 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__populate_outer_map() 1110 int attr_size = offsetofend(union bpf_attr, map_fd); in bpf_gen__map_freeze()
|
/openbmc/linux/net/core/ |
H 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()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | bpf_util.h | 57 #ifndef offsetofend 58 #define offsetofend(TYPE, MEMBER) \ macro
|
/openbmc/linux/drivers/vfio/ |
H A D | device_cdev.c | 66 minsz = offsetofend(struct vfio_device_bind_iommufd, out_devid); in vfio_df_ioctl_bind_iommufd() 163 minsz = offsetofend(struct vfio_device_attach_iommufd_pt, pt_id); in vfio_df_ioctl_attach_pt() 198 minsz = offsetofend(struct vfio_device_detach_iommufd_pt, flags); in vfio_df_ioctl_detach_pt()
|
H 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()
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_vma_types.h | 147 BUILD_BUG_ON(offsetofend(struct intel_remapped_info, plane[1]) != in assert_i915_gem_gtt_types() 148 offsetofend(struct intel_rotation_info, plane[1])); in assert_i915_gem_gtt_types()
|
/openbmc/linux/net/smc/ |
H A D | smc_clc.h | 371 offsetofend(struct smc_clc_msg_smcd, v2_ext_offset); in smc_get_clc_v2_ext() 390 offsetofend(struct smc_clnt_opts_area_hdr, smcd_v2_ext_offset); in smc_get_clc_smcd_v2_ext() 418 offsetofend(struct smc_clc_msg_accept_confirm, d1); in smc_get_clc_first_contact_ext() 421 offsetofend(struct smc_clc_msg_accept_confirm, r1); in smc_get_clc_first_contact_ext()
|
/openbmc/qemu/include/hw/firmware/ |
H A D | smbios.h | 40 #define offsetofend(TYPE, MEMBER) \ macro 218 SMBIOS_TYPE_4_LEN_V28 = offsetofend(struct smbios_type_4, 220 SMBIOS_TYPE_4_LEN_V30 = offsetofend(struct smbios_type_4, thread_count2),
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | verifier_sock.c | 9 #define offsetofend(TYPE, MEMBER) \ macro 363 __imm_const(bpf_sock_dst_port__end, offsetofend(struct bpf_sock, dst_port)) in dst_port_half_load_invalid_2() 460 __imm_const(bpf_sock_rx_queue_mapping__end, offsetofend(struct bpf_sock, rx_queue_mapping)) in skb_sk_beyond_last_field_1() 569 __imm_const(bpf_tcp_sock_bytes_acked__end, offsetofend(struct bpf_tcp_sock, bytes_acked)) in skb_sk_beyond_last_field_2()
|
/openbmc/linux/include/linux/ |
H A D | stddef.h | 32 #define offsetofend(TYPE, MEMBER) \ macro
|
H A D | string.h | 363 memset(__ptr + offsetofend(typeof(*(obj)), member), __val, \ 364 sizeof(*(obj)) - offsetofend(typeof(*(obj)), member)); \
|
/openbmc/linux/drivers/vfio/fsl-mc/ |
H 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()
|
/openbmc/linux/drivers/s390/cio/ |
H 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()
|
/openbmc/linux/samples/vfio-mdev/ |
H 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()
|
/openbmc/linux/drivers/vfio/platform/ |
H 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()
|
/openbmc/linux/tools/testing/selftests/iommu/ |
H A D | iommufd_utils.h | 25 #define offsetofend(TYPE, MEMBER) \ macro 396 if (data_len >= offsetofend(struct iommu_test_hw_info, test_reg)) in _test_cmd_get_hw_info() 398 if (data_len >= offsetofend(struct iommu_test_hw_info, flags)) in _test_cmd_get_hw_info()
|
/openbmc/linux/fs/crypto/ |
H A D | fname.c | 69 #define FSCRYPT_NOKEY_NAME_MAX offsetofend(struct fscrypt_nokey_name, sha256) 389 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, dirhash) != in fscrypt_fname_disk_to_usr() 391 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, bytes) != in fscrypt_fname_disk_to_usr()
|
/openbmc/linux/drivers/iommu/iommufd/ |
H 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()
|
/openbmc/linux/drivers/vfio/cdx/ |
H A D | main.c | 58 unsigned long minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_cdx_ioctl_get_info() 80 unsigned long minsz = offsetofend(struct vfio_region_info, offset); in vfio_cdx_ioctl_get_region_info()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | asm-offsets_32.c | 54 offsetofend(struct cpu_entry_area, entry_stack_page.stack)); in foo()
|
/openbmc/linux/drivers/vfio/pci/hisilicon/ |
H A D | hisi_acc_vfio_pci.h | 53 #define QM_MATCH_SIZE offsetofend(struct acc_vf_data, qm_rsv_state)
|