Home
last modified time | relevance | path

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

123456

/linux-6.6.21/net/ipv4/
Dbpf_tcp_ca.c86 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()
/linux-6.6.21/tools/lib/bpf/
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()
Dbpf.c108 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 …]
Dlibbpf_internal.h91 #ifndef offsetofend
92 # define offsetofend(TYPE, FIELD) \ macro
299 offsetofend(struct type, \
303 ((opts) && opts->sz >= offsetofend(typeof(*(opts)), field))
314 ssize_t __off = offsetofend(typeof(*(opts)), last_nonzero_field); \
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()
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()
/linux-6.6.21/net/core/
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.6.21/tools/testing/selftests/bpf/
Dbpf_util.h57 #ifndef offsetofend
58 #define offsetofend(TYPE, MEMBER) \ macro
/linux-6.6.21/drivers/vfio/
Ddevice_cdev.c66 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()
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-6.6.21/drivers/gpu/drm/i915/
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-6.6.21/tools/testing/selftests/bpf/progs/
Dverifier_sock.c9 #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()
/linux-6.6.21/include/linux/
Dstddef.h32 #define offsetofend(TYPE, MEMBER) \ macro
Dstring.h363 memset(__ptr + offsetofend(typeof(*(obj)), member), __val, \
364 sizeof(*(obj)) - offsetofend(typeof(*(obj)), member)); \
/linux-6.6.21/drivers/vfio/fsl-mc/
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.6.21/drivers/vfio/cdx/
Dmain.c58 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()
/linux-6.6.21/fs/crypto/
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.6.21/tools/testing/selftests/iommu/
Diommufd_utils.h25 #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()
/linux-6.6.21/drivers/iommu/iommufd/
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.6.21/drivers/s390/cio/
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.6.21/drivers/vfio/platform/
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.6.21/samples/vfio-mdev/
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.6.21/arch/x86/kernel/
Dasm-offsets_32.c54 offsetofend(struct cpu_entry_area, entry_stack_page.stack)); in foo()
/linux-6.6.21/drivers/vfio/pci/hisilicon/
Dhisi_acc_vfio_pci.h53 #define QM_MATCH_SIZE offsetofend(struct acc_vf_data, qm_rsv_state)
/linux-6.6.21/arch/powerpc/include/asm/
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.6.21/net/bpf/
Dtest_run.c858 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, mark), in convert___skb_to_skb()
866 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, ifindex), in convert___skb_to_skb()
872 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, cb), in convert___skb_to_skb()
880 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_segs), in convert___skb_to_skb()
886 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_size), in convert___skb_to_skb()
892 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, hwtstamp), in convert___skb_to_skb()
1293 if (!range_is_zero(ctx, offsetofend(struct bpf_flow_keys, flags), in verify_user_bpf_flow_keys()
1400 if (!range_is_zero(user_ctx, offsetofend(typeof(*user_ctx), local_port), sizeof(*user_ctx))) in bpf_prog_test_run_sk_lookup()

123456