Home
last modified time | relevance | path

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

12345

/linux/net/ipv4/
H A Dbpf_tcp_ca.c76 end = offsetofend(struct sock, sk_pacing_rate); in bpf_tcp_ca_btf_struct_access()
79 end = offsetofend(struct sock, sk_pacing_status); in bpf_tcp_ca_btf_struct_access()
82 end = offsetofend(struct inet_connection_sock, icsk_ca_priv); in bpf_tcp_ca_btf_struct_access()
85 end = offsetofend(struct inet_connection_sock, in bpf_tcp_ca_btf_struct_access()
89 end = offsetofend(struct tcp_sock, snd_cwnd); in bpf_tcp_ca_btf_struct_access()
92 end = offsetofend(struct tcp_sock, snd_cwnd_cnt); in bpf_tcp_ca_btf_struct_access()
95 end = offsetofend(struct tcp_sock, snd_cwnd_stamp); in bpf_tcp_ca_btf_struct_access()
98 end = offsetofend(struct tcp_sock, snd_ssthresh); in bpf_tcp_ca_btf_struct_access()
101 end = offsetofend(struct tcp_sock, ecn_flags); in bpf_tcp_ca_btf_struct_access()
104 end = offsetofend(struct tcp_sock, app_limited); in bpf_tcp_ca_btf_struct_access()
/linux/tools/lib/bpf/
H 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()
/linux/include/linux/
H A Dcache.h160 offsetofend(TYPE, __cacheline_group_begin__##GROUP) && \
161 offsetofend(TYPE, MEMBER) <= \
168 offsetofend(TYPE, __cacheline_group_begin__##GROUP) > \
H A Dstddef.h32 #define offsetofend(TYPE, MEMBER) \ macro
H A Dstring.h507 memset(__ptr + offsetofend(typeof(*(obj)), member), __val, \
508 sizeof(*(obj)) - offsetofend(typeof(*(obj)), member)); \
/linux/net/core/
H 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/drivers/gpu/drm/xe/compat-i915-headers/
H A Di915_vma_types.h52 BUILD_BUG_ON(offsetofend(struct intel_remapped_info, plane[1]) != in assert_i915_gem_gtt_types()
53 offsetofend(struct intel_rotation_info, plane[1])); in assert_i915_gem_gtt_types()
/linux/tools/testing/selftests/bpf/
H A Dbpf_util.h58 #ifndef offsetofend macro
59 #define offsetofend(TYPE, MEMBER) \
/linux/drivers/vfio/cdx/
H A Dmain.c71 offsetofend(struct vfio_device_feature_bus_master, op); in vfio_cdx_bm_ctrl()
113 unsigned long minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_cdx_ioctl_get_info()
135 unsigned long minsz = offsetofend(struct vfio_region_info, offset); in vfio_cdx_ioctl_get_region_info()
159 unsigned long minsz = offsetofend(struct vfio_irq_info, count); in vfio_cdx_ioctl_get_irq_info()
184 unsigned long minsz = offsetofend(struct vfio_irq_set, count); in vfio_cdx_ioctl_set_irqs()
/linux/net/wireless/tests/
H A Dutil.h61 offsetofend(type, member), \
62 offsetofend(type, member)); \
/linux/include/net/libeth/
H A Dcache.h18 offsetofend(type, __cacheline_group_begin__##grp) == \
25 offsetofend(type, __cacheline_group_begin__##grp) <= \
/linux/drivers/gpu/drm/i915/
H A Di915_vma_types.h147 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()
/linux/drivers/vfio/
H 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()
/linux/net/smc/
H A Dsmc_clc.h387 offsetofend(struct smc_clc_msg_smcd, v2_ext_offset); in smc_get_clc_v2_ext()
406 offsetofend(struct smc_clnt_opts_area_hdr, smcd_v2_ext_offset); in smc_get_clc_smcd_v2_ext()
434 offsetofend(struct smc_clc_msg_accept_confirm, d1); in smc_get_clc_first_contact_ext()
437 offsetofend(struct smc_clc_msg_accept_confirm, r1); in smc_get_clc_first_contact_ext()
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_sock.c9 #define offsetofend(TYPE, MEMBER) \ macro
370 __imm_const(bpf_sock_dst_port__end, offsetofend(struct bpf_sock, dst_port)) in dst_port_half_load_invalid_2()
467 __imm_const(bpf_sock_rx_queue_mapping__end, offsetofend(struct bpf_sock, rx_queue_mapping)) in skb_sk_beyond_last_field_1()
576 __imm_const(bpf_tcp_sock_bytes_acked__end, offsetofend(struct bpf_tcp_sock, bytes_acked)) in skb_sk_beyond_last_field_2()
/linux/drivers/vfio/fsl-mc/
H 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/drivers/s390/cio/
H 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/drivers/vfio/platform/
H 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/samples/vfio-mdev/
H A Dmdpy.c528 minsz = offsetofend(struct vfio_device_info, num_irqs); in mdpy_ioctl()
553 minsz = offsetofend(struct vfio_region_info, offset); in mdpy_ioctl()
576 minsz = offsetofend(struct vfio_irq_info, count); in mdpy_ioctl()
599 minsz = offsetofend(struct vfio_device_gfx_plane_info, in mdpy_ioctl()
/linux/fs/crypto/
H A Dfname.c69 #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()
/linux/drivers/iommu/iommufd/
H 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()
444 size_t minsz = offsetofend(struct vfio_iommu_type1_info, iova_pgsizes); in iommufd_vfio_iommu_get_info()
/linux/arch/x86/kernel/
H A Dasm-offsets_32.c54 offsetofend(struct cpu_entry_area, entry_stack_page.stack)); in foo()
/linux/net/bpf/
H A Dtest_run.c895 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, mark), in convert___skb_to_skb()
903 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, ifindex), in convert___skb_to_skb()
909 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, cb), in convert___skb_to_skb()
917 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_segs), in convert___skb_to_skb()
923 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_size), in convert___skb_to_skb()
929 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, hwtstamp), in convert___skb_to_skb()
1356 if (!range_is_zero(ctx, offsetofend(struct bpf_flow_keys, flags), in verify_user_bpf_flow_keys()
1463 if (!range_is_zero(user_ctx, offsetofend(typeof(*user_ctx), local_port), sizeof(*user_ctx))) in bpf_prog_test_run_sk_lookup()
/linux/arch/x86/kernel/fpu/
H A Dinit.c144 ALIGN(offsetofend(TYPE, MEMBER), _Alignof(TYPE)))
/linux/security/landlock/
H A Dnet.c71 if (addrlen < offsetofend(typeof(*address), sa_family)) in current_check_access_socket()

12345