/linux/net/ipv4/ |
H A D | bpf_tcp_ca.c | 76 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(struc in bpf_tcp_ca_btf_struct_access() [all...] |
/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(unio in bpf_load_and_run() [all...] |
H A D | bpf.c | 108 const size_t attr_sz = offsetofend(union bpf_attr, prog_token_fd); in probe_memcg_account() 175 const size_t attr_sz = offsetofend(union bpf_attr, map_token_fd); in bpf_map_create() 241 const size_t attr_sz = offsetofend(union bpf_attr, fd_array_cnt); in bpf_prog_load() 391 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_update_elem() 407 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_elem() 422 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_elem_flags() 438 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_and_delete_elem() 453 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_and_delete_elem_flags() 469 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_delete_elem() 483 const size_t attr_sz = offsetofend(unio in bpf_map_delete_elem_flags() [all...] |
H A D | libbpf_internal.h | 107 #ifndef offsetofend 108 # define offsetofend(TYPE, FIELD) \ macro 318 offsetofend(struct type, \ 322 ((opts) && opts->sz >= offsetofend(typeof(*(opts)), field)) 333 ssize_t __off = offsetofend(typeof(*(opts)), last_nonzero_field); \
|
H A D | gen_loader.c | 452 int attr_size = offsetofend(union bpf_attr, btf_log_level); in bpf_gen__load_btf() 487 int attr_size = offsetofend(union bpf_attr, map_extra); in bpf_gen__map_create() 780 emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code))); in emit_ksym_relo_log() 878 emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code))); in emit_relo_ksym_btf() 880 emit(gen, BPF_STX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, offsetofend(struct bpf_insn, code))); in emit_relo_ksym_btf() 999 int attr_size = offsetofend(union bpf_attr, core_relo_rec_size); in bpf_gen__prog_load() 1117 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__map_update_elem() 1165 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__populate_outer_map() 1193 int attr_size = offsetofend(union bpf_attr, map_fd); in bpf_gen__map_freeze()
|
/linux/include/linux/ |
H A D | cache.h | 153 offsetofend(TYPE, __cacheline_group_begin__##GROUP) && \ 154 offsetofend(TYPE, MEMBER) <= \ 161 offsetofend(TYPE, __cacheline_group_begin__##GROUP) > \
|
H A D | stddef.h | 27 * offsetofend() - Report the offset of a struct field within the struct 32 #define offsetofend(TYPE, MEMBER) \ macro
|
/linux/drivers/vfio/ |
H A D | device_cdev.c | 95 minsz = offsetofend(struct vfio_device_bind_iommufd, out_devid); in vfio_df_ioctl_bind_iommufd() 202 minsz = offsetofend(struct vfio_device_attach_iommufd_pt, pt_id); in vfio_df_ioctl_attach_pt() 216 xend = offsetofend(struct vfio_device_attach_iommufd_pt, pasid); in vfio_df_ioctl_attach_pt() 260 minsz = offsetofend(struct vfio_device_detach_iommufd_pt, flags); in vfio_df_ioctl_detach_pt() 274 xend = offsetofend(struct vfio_device_detach_iommufd_pt, pasid); 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(struc in tce_iommu_ioctl() [all...] |
/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()
|
/linux/tools/testing/selftests/bpf/ |
H A D | bpf_util.h | 58 #ifndef offsetofend 59 #define offsetofend(TYPE, MEMBER) \ macro
|
/linux/net/sched/ |
H A D | bpf_qdisc.c | 60 *end = offsetofend(struct Qdisc, limit); in bpf_qdisc_qdisc_access() 63 *end = offsetof(struct Qdisc, q) + offsetofend(struct qdisc_skb_head, qlen); in bpf_qdisc_qdisc_access() 65 case offsetof(struct Qdisc, qstats) ... offsetofend(struct Qdisc, qstats) - 1: in bpf_qdisc_qdisc_access() 66 *end = offsetofend(struct Qdisc, qstats); in bpf_qdisc_qdisc_access() 81 *end = offsetofend(struct sk_buff, tstamp); in bpf_qdisc_sk_buff_access() 87 offsetofend(struct qdisc_skb_cb, data[QDISC_CB_PRIV_LEN - 1]); in bpf_qdisc_sk_buff_access()
|
/linux/net/wireless/tests/ |
H A D | util.h | 61 offsetofend(type, member), \ 62 offsetofend(type, member)); \
|
/linux/include/net/libeth/ |
H A D | cache.h | 18 offsetofend(type, __cacheline_group_begin__##grp) == \ 25 offsetofend(type, __cacheline_group_begin__##grp) <= \
|
/linux/drivers/vfio/cdx/ |
H A D | main.c | 71 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/drivers/gpu/drm/i915/ |
H A D | i915_vma_types.h | 109 BUILD_BUG_ON(offsetofend(struct intel_remapped_info, plane[1]) != in assert_i915_gem_gtt_types() 110 offsetofend(struct intel_rotation_info, plane[1])); in assert_i915_gem_gtt_types()
|
/linux/net/smc/ |
H A D | smc_clc.h | 387 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/Documentation/translations/zh_CN/security/ |
H A D | siphash.rst | 103 u64 h = siphash(&combined, offsetofend(typeof(combined), dport), &secret);
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | verifier_sock.c | 9 #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/fs/xfs/scrub/ |
H A D | agheader.c | 73 return offsetofend(struct xfs_dsb, sb_rtreserved); in xchk_superblock_ondisk_size() 75 return offsetofend(struct xfs_dsb, sb_pad); in xchk_superblock_ondisk_size() 77 return offsetofend(struct xfs_dsb, sb_meta_uuid); in xchk_superblock_ondisk_size() 79 return offsetofend(struct xfs_dsb, sb_lsn); in xchk_superblock_ondisk_size() 81 return offsetofend(struct xfs_dsb, sb_bad_features2); in xchk_superblock_ondisk_size() 83 return offsetofend(struct xfs_dsb, sb_logsunit); in xchk_superblock_ondisk_size() 85 return offsetofend(struct xfs_dsb, sb_logsectsize); in xchk_superblock_ondisk_size() 87 return offsetofend(struct xfs_dsb, sb_dirblklog); in xchk_superblock_ondisk_size()
|
/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()
|
/linux/arch/x86/kernel/ |
H A D | asm-offsets_32.c | 45 offsetofend(struct cpu_entry_area, entry_stack_page.stack)); in foo()
|
/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() 444 size_t minsz = offsetofend(struct vfio_iommu_type1_info, iova_pgsizes); in iommufd_vfio_iommu_get_info()
|
/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()
|
/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()
|