Home
last modified time | relevance | path

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

1234567

/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.h224 #ifndef offsetofend
225 #define offsetofend(TYPE, MEMBER) \ macro
237 const size_t attr_sz = offsetofend(union bpf_attr, excl_prog_hash_size); in skel_map_create()
257 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_update_elem()
271 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_delete_elem()
283 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_get_fd_by_id()
294 const size_t attr_sz = offsetofend(union bpf_attr, raw_tracepoint.prog_fd); in skel_raw_tracepoint_open()
307 const size_t attr_sz = offsetofend(union bpf_attr, link_create.iter_info_len); in skel_link_create()
320 const size_t attr_sz = offsetofend(union bpf_attr, info); in skel_obj_get_info_by_fd()
339 const size_t attr_sz = offsetofend(union bpf_attr, map_fd); in skel_map_freeze()
[all …]
H A Dbpf.c108 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, excl_prog_hash_size); in bpf_map_create()
243 const size_t attr_sz = offsetofend(union bpf_attr, keyring_id); in bpf_prog_load()
393 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_update_elem()
409 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_elem()
424 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_elem_flags()
440 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_and_delete_elem()
455 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_lookup_and_delete_elem_flags()
471 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_delete_elem()
485 const size_t attr_sz = offsetofend(unio in bpf_map_delete_elem_flags()
[all...]
H A Dlibbpf_internal.h109 #ifndef offsetofend
110 # define offsetofend(TYPE, FIELD) \ macro
330 offsetofend(struct type, \
334 ((opts) && opts->sz >= offsetofend(typeof(*(opts)), field))
345 ssize_t __off = offsetofend(typeof(*(opts)), last_nonzero_field); \
H A Dgen_loader.c475 int attr_size = offsetofend(union bpf_attr, btf_log_level); in bpf_gen__load_btf()
510 int attr_size = offsetofend(union bpf_attr, map_extra); in bpf_gen__map_create()
826 emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code))); in emit_ksym_relo_log()
924 emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code))); in emit_relo_ksym_btf()
926 emit(gen, BPF_STX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, offsetofend(struct bpf_insn, code))); in emit_relo_ksym_btf()
1045 int attr_size = offsetofend(union bpf_attr, core_relo_rec_size); in bpf_gen__prog_load()
1163 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__map_update_elem()
1211 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__populate_outer_map()
1239 int attr_size = offsetofend(union bpf_attr, map_fd); in bpf_gen__map_freeze()
/linux/include/linux/
H A Dcache.h153 offsetofend(TYPE, __cacheline_group_begin__##GROUP) && \
154 offsetofend(TYPE, MEMBER) <= \
161 offsetofend(TYPE, __cacheline_group_begin__##GROUP) > \
H A Dstddef.h32 #define offsetofend(TYPE, MEMBER) \ macro
/linux/drivers/vfio/
H A Ddevice_cdev.c95 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 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/sched/
H A Dbpf_qdisc.c60 *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/include/net/libeth/
H A Dcache.h18 offsetofend(type, __cacheline_group_begin__##grp) == \
25 offsetofend(type, __cacheline_group_begin__##grp) <= \
/linux/net/wireless/tests/
H A Dutil.h61 offsetofend(type, member), \
62 offsetofend(type, member)); \
/linux/tools/testing/selftests/bpf/
H A Dbpf_util.h77 #ifndef offsetofend
78 #define offsetofend(TYPE, MEMBER) \ macro
/linux/drivers/gpu/drm/i915/
H A Di915_vma_types.h109 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/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()
153 unsigned long minsz = offsetofend(struct vfio_irq_info, count); in vfio_cdx_ioctl_get_irq_info()
178 unsigned long minsz = offsetofend(struct vfio_irq_set, count); in vfio_cdx_ioctl_set_irqs()
/linux/net/core/
H A Dsecure_seq.c69 st.hash64 = siphash(&combined, offsetofend(typeof(combined), dport), in secure_tcpv6_seq_and_ts_off()
95 return siphash(&combined, offsetofend(typeof(combined), dport), in secure_ipv6_port_ephemeral()
/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/fs/xfs/libxfs/
H A Dxfs_log_format.h137 offsetofend(struct xlog_rec_ext_header, xh_cycle_data)
180 #define XLOG_REC_SIZE offsetofend(struct xlog_rec_header, h_size)
181 #define XLOG_REC_SIZE_OTHER offsetofend(struct xlog_rec_header, h_pad0)
183 #define XLOG_REC_SIZE offsetofend(struct xlog_rec_header, h_pad0)
184 #define XLOG_REC_SIZE_OTHER offsetofend(struct xlog_rec_header, h_size)
/linux/fs/xfs/scrub/
H A Dagheader.c73 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/fs/crypto/
H A Dfname.c71 #define FSCRYPT_NOKEY_NAME_MAX offsetofend(struct fscrypt_nokey_name, sha256)
293 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, dirhash) != in fscrypt_fname_disk_to_usr()
295 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, bytes) != in fscrypt_fname_disk_to_usr()
/linux/Documentation/translations/zh_CN/security/
H A Dsiphash.rst90 的方法就是将结构体的成员按照大小降序的方式排序,并且使用offsetofend()
103 u64 h = siphash(&combined, offsetofend(typeof(combined), dport), &secret);
/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/net/bpf/
H A Dtest_run.c888 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, mark), in convert___skb_to_skb()
896 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, ifindex), in convert___skb_to_skb()
902 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, cb), in convert___skb_to_skb()
908 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, data_end), in convert___skb_to_skb()
916 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_segs), in convert___skb_to_skb()
922 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_size), in convert___skb_to_skb()
928 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, hwtstamp), in convert___skb_to_skb()
1436 if (!range_is_zero(ctx, offsetofend(struct bpf_flow_keys, flags), in verify_user_bpf_flow_keys()
1543 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/
H A Dasm-offsets_32.c45 offsetofend(struct cpu_entry_area, entry_stack_page.stack)); in foo()
/linux/net/mac80211/
H A Deht.c111 int len = offsetofend(struct ieee80211_mgmt, u.action.u.eml_omn); in ieee80211_send_eml_op_mode_notif()
147 int len = offsetofend(struct ieee80211_mgmt, u.action.u.eml_omn); in ieee80211_rx_eml_op_mode_notif()

1234567