Home
last modified time | relevance | path

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

1234567

/xnu-11215/osfmk/arm64/
H A Dgenassym.c131 DECLARE("TH_RECOVER", offsetof(struct thread, recover)); in main()
153 DECLARE("TH_UPCB", offsetof(struct thread, machine.upcb)); in main()
173 DECLARE("TASK_ROP_PID", offsetof(struct task, rop_pid)); in main()
174 DECLARE("TASK_JOP_PID", offsetof(struct task, jop_pid)); in main()
184 DECLARE("SS64_X0", offsetof(arm_context_t, ss.ss_64.x[0])); in main()
205 DECLARE("SS64_FP", offsetof(arm_context_t, ss.ss_64.fp)); in main()
206 DECLARE("SS64_LR", offsetof(arm_context_t, ss.ss_64.lr)); in main()
207 DECLARE("SS64_SP", offsetof(arm_context_t, ss.ss_64.sp)); in main()
208 DECLARE("SS64_PC", offsetof(arm_context_t, ss.ss_64.pc)); in main()
373 DECLARE("CPU_ROP_KEY", offsetof(cpu_data_t, rop_key)); in main()
[all …]
H A Dlowmem_vectors.c71 .lgPmapMemPageOffset = offsetof(struct vm_page_with_ppnum, vmp_phys_page),
72 .lgPmapMemChainOffset = offsetof(struct vm_page, vmp_listq),
/xnu-11215/osfmk/i386/
H A Dgenassym.c290 offsetof(cpu_data_t, cpu_this)); in main()
311 offsetof(cpu_data_t, cpu_number)); in main()
313 offsetof(cpu_data_t, cpu_running)); in main()
324 offsetof(cpu_data_t, cpu_task_cr3)); in main()
332 offsetof(cpu_data_t, cpu_ucr3)); in main()
334 offsetof(cpu_data_t, cpu_ip_desc)); in main()
339 offsetof(cpu_data_t, cpu_exit_cr3)); in main()
361 offsetof(cpu_data_t, cpu_dr7)); in main()
389 offsetof(cpu_data_t, cd_estack)); in main()
391 offsetof(cpu_data_t, cd_shadow)); in main()
[all …]
/xnu-11215/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c127 (offsetof(struct ip, ip_dst) - offsetof(struct ip, ip_src))); in flow_pkt_classify()
132 (offsetof(struct ip6_hdr, ip6_dst) - in flow_pkt_classify()
133 offsetof(struct ip6_hdr, ip6_src))); in flow_pkt_classify()
139 (offsetof(struct tcphdr, th_dport) - in flow_pkt_classify()
140 offsetof(struct tcphdr, th_sport))); in flow_pkt_classify()
143 (offsetof(struct tcphdr, th_seq) - in flow_pkt_classify()
144 offsetof(struct tcphdr, th_sport))); in flow_pkt_classify()
147 (offsetof(struct tcphdr, th_ack) - in flow_pkt_classify()
148 offsetof(struct tcphdr, th_sport))); in flow_pkt_classify()
155 (offsetof(struct tcphdr, th_win) - in flow_pkt_classify()
[all …]
H A Dflow_stats.c76 _CASSERT((offsetof(struct flow_stats, fs_stats) % 16) == 0); in flow_stats_alloc()
77 _CASSERT((offsetof(struct sk_stats_flow, sf_key) % 16) == 0); in flow_stats_alloc()
/xnu-11215/tests/intrusive_shared_ptr_src/
H A Dabi.size_alignment.cpp23 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
39 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
57 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
77 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
97 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
117 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
137 static_assert(offsetof(FooShared, ptr) == offsetof(FooRaw, ptr));
/xnu-11215/bsd/netinet6/
H A Din6_proto.c359 offsetof(struct protosw, pr_entry)); in in6_dinit()
361 offsetof(struct protosw, pr_domain)); in in6_dinit()
365 offsetof(struct protosw, pr_type)); in in6_dinit()
369 offsetof(struct protosw, pr_flags)); in in6_dinit()
371 offsetof(struct protosw, pr_input)); in in6_dinit()
373 offsetof(struct protosw, pr_output)); in in6_dinit()
381 offsetof(struct protosw, pr_init)); in in6_dinit()
383 offsetof(struct protosw, pr_drain)); in in6_dinit()
385 offsetof(struct protosw, pr_sysctl)); in in6_dinit()
387 offsetof(struct protosw, pr_lock)); in in6_dinit()
[all …]
/xnu-11215/bsd/dev/i386/
H A Dsysctl.c521 (void *)offsetof(cpuid_thermal_leaf_t, sensor),
612 (void *)offsetof(cpuid_arch_perf_leaf_t, width),
672 (void *)offsetof(i386_cpu_info_t,
680 (void *)offsetof(i386_cpu_info_t,
688 (void *)offsetof(i386_cpu_info_t,
696 (void *)offsetof(i386_cpu_info_t,
704 (void *)offsetof(i386_cpu_info_t,
712 (void *)offsetof(i386_cpu_info_t,
720 (void *)offsetof(i386_cpu_info_t, cpuid_stlb),
744 (void *)offsetof(i386_cpu_info_t, core_count),
[all …]
/xnu-11215/bsd/dev/dtrace/
H A Dlockprof.c70 {"spin-held-", 0, offsetof(lck_grp_t, lck_grp_spincnt), offsetof(lck_grp_stats_t, lgss_spin_held)},
71 {"spin-miss-", 0, offsetof(lck_grp_t, lck_grp_spincnt), offsetof(lck_grp_stats_t, lgss_spin_miss)},
72 …{"spin-spin-", TIME_EVENT, offsetof(lck_grp_t, lck_grp_spincnt), offsetof(lck_grp_stats_t, lgss_sp…
73 …{"ticket-held-", 0, offsetof(lck_grp_t, lck_grp_ticketcnt), offsetof(lck_grp_stats_t, lgss_ticket_…
74 …{"ticket-miss-", 0, offsetof(lck_grp_t, lck_grp_ticketcnt), offsetof(lck_grp_stats_t, lgss_ticket_…
75 …{"ticket-spin-", TIME_EVENT, offsetof(lck_grp_t, lck_grp_ticketcnt), offsetof(lck_grp_stats_t, lgs…
76 …{"adaptive-held-", STAT_NEEDED, offsetof(lck_grp_t, lck_grp_mtxcnt), offsetof(lck_grp_stats_t, lgs…
77 …{"adaptive-miss-", STAT_NEEDED, offsetof(lck_grp_t, lck_grp_mtxcnt), offsetof(lck_grp_stats_t, lgs…
78 …{"adaptive-wait-", STAT_NEEDED, offsetof(lck_grp_t, lck_grp_mtxcnt), offsetof(lck_grp_stats_t, lgs…
79 …{"adaptive-direct-wait-", STAT_NEEDED, offsetof(lck_grp_t, lck_grp_mtxcnt), offsetof(lck_grp_stats…
/xnu-11215/bsd/netinet/
H A Dcpu_in_cksum_gen.c171 _CASSERT(offsetof(struct _mbuf, _m_next) == 0); in os_cpu_in_cksum()
173 _CASSERT(offsetof(struct _mbuf, _m_len) == 24); in os_cpu_in_cksum()
175 _CASSERT(offsetof(struct _mbuf, _m_next) == 0); in os_cpu_in_cksum()
176 _CASSERT(offsetof(struct _mbuf, _m_data) == 8); in os_cpu_in_cksum()
177 _CASSERT(offsetof(struct _mbuf, _m_len) == 12); in os_cpu_in_cksum()
180 _CASSERT(offsetof(struct _mbuf, _m_next) == in os_cpu_in_cksum()
181 offsetof(struct mbuf, m_next)); in os_cpu_in_cksum()
182 _CASSERT(offsetof(struct _mbuf, _m_data) == in os_cpu_in_cksum()
183 offsetof(struct mbuf, m_data)); in os_cpu_in_cksum()
184 _CASSERT(offsetof(struct _mbuf, _m_len) == in os_cpu_in_cksum()
[all …]
/xnu-11215/tests/vfs/
H A Dgetattrlist_fstype.c78 …RT_TRUE(attrbuf.fstypename_ref.attr_dataoffset + offsetof(struct myattrbuf, fstypename_ref) == off…
81 offsetof(struct myattrbuf, fstypename_ref),
82 offsetof(struct myattrbuf, fstypename));
/xnu-11215/bsd/sys/_types/
H A D_offsetof.h57 #ifndef offsetof
58 #define offsetof(type, field) __offsetof(type, field) macro
/xnu-11215/EXTERNAL_HEADERS/
H A Dstddef.h66 #ifndef offsetof
67 #define offsetof(t, d) __builtin_offsetof(t, d) macro
/xnu-11215/tests/
H A Dbootstrap_msgfilter.c63 .msgh_size = offsetof(struct test_msg, trailer),
82 .msgh_size = offsetof(struct test_msg, trailer),
/xnu-11215/osfmk/ipc/
H A Dmach_msg.c117 #ifndef offsetof
118 #define offsetof(type, member) ((size_t)(&((type *)0)->member)) macro
137 mach_copyout((kaddr), (uaddr) + offsetof(type_t, field), \
176 offsetof(mach_msg_user_header_t, msgh_voucher_port)) { in mach_msg_receive_too_large()
189 offsetof(mach_msg_user_header_t, msgh_remote_port)) { in mach_msg_receive_too_large()
585 static_assert(offsetof(mach_msg_send_uctx_t, send_dsc_count) == in mach_msg_copyin_user_header()
586 offsetof(mach_msg_user_base_t, body.msgh_descriptor_count)); in mach_msg_copyin_user_header()
1178 size = offsetof(struct mach_msg_filter_callbacks, alloc_service_port_sblabel); in mach_msg_filter_register_callback()
H A Dipc_kmsg.h196 static_assert(offsetof(struct ipc_kmsg, ikm_big_data) +
198 static_assert(offsetof(struct ipc_kmsg, ikm_small_data) + IKM_SMALL_MSG_SIZE +
/xnu-11215/security/
H A Dmac_internal.h298 …mac_internalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_internalize), label, instrin…
301 …mac_externalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_externalize), label, element…
304 …mac_externalize(offsetof(struct mac_policy_ops, mpo_ ## obj ## _label_externalize_audit), label, "…
/xnu-11215/bsd/dev/arm64/
H A Dsysctl.c174 (void *)offsetof(host_basic_info_data_t, physical_cpu_max),
187 (void *)offsetof(host_basic_info_data_t, physical_cpu),
201 (void *)offsetof(host_basic_info_data_t, logical_cpu_max),
214 (void *)offsetof(host_basic_info_data_t, logical_cpu),
/xnu-11215/bsd/skywalk/mem/
H A Dskmem_cache.c392 _CASSERT(offsetof(struct skmem_bufctl, bc_addr) == offsetof(struct skmem_bufctl_audit, bc_addr)); in skmem_cache_init()
393 _CASSERT(offsetof(struct skmem_bufctl, bc_addrm) == offsetof(struct skmem_bufctl_audit, bc_addrm)); in skmem_cache_init()
394 _CASSERT(offsetof(struct skmem_bufctl, bc_slab) == offsetof(struct skmem_bufctl_audit, bc_slab)); in skmem_cache_init()
395 _CASSERT(offsetof(struct skmem_bufctl, bc_lim) == offsetof(struct skmem_bufctl_audit, bc_lim)); in skmem_cache_init()
396 _CASSERT(offsetof(struct skmem_bufctl, bc_flags) == offsetof(struct skmem_bufctl_audit, bc_flags)); in skmem_cache_init()
397 _CASSERT(offsetof(struct skmem_bufctl, bc_idx) == offsetof(struct skmem_bufctl_audit, bc_idx)); in skmem_cache_init()
398 …_CASSERT(offsetof(struct skmem_bufctl, bc_usecnt) == offsetof(struct skmem_bufctl_audit, bc_usecnt… in skmem_cache_init()
399 _CASSERT(sizeof(struct skmem_bufctl) == offsetof(struct skmem_bufctl_audit, bc_thread)); in skmem_cache_init()
627 skm_align_off = offsetof(struct skmem_cache, skm_align); in skmem_cache_create()
681 _CASSERT(offsetof(struct skmem_obj, mo_next) == 0); in skmem_cache_create()
/xnu-11215/bsd/skywalk/packet/
H A Dpacket_var.h280 _CASSERT(offsetof(struct __quantum, __q_flags) == 24); \
310 _CASSERT(offsetof(struct __quantum, __q_flags) == 24); \
496 _CASSERT(offsetof(struct __kern_packet, pkt_mbuf) == \
497 offsetof(struct __kern_packet, pkt_pkt)); \
605 _CASSERT(offsetof(struct __packet, __p_flags) == 24); \
637 _CASSERT(offsetof(struct __packet, __p_flags) == 24); \
664 _CASSERT(offsetof(struct __packet, __p_flags) == 24); \
/xnu-11215/tests/sched/sched_test_harness/shadow_headers/
H A Dpriority_queue.cpp9 (type *)((uintptr_t)__ptr - offsetof(type, field)); \
/xnu-11215/tests/ipc/
H A Dmach_msg_transport.c234 if (tsize > offsetof(mach_msg_max_trailer_t, msgh_sender)) {
238 if (tsize > offsetof(mach_msg_max_trailer_t, msgh_audit)) {
242 if (tsize > offsetof(mach_msg_max_trailer_t, msgh_context)) {
246 if (tsize > offsetof(mach_msg_max_trailer_t, msgh_ad)) {
249 if (tsize > offsetof(mach_msg_max_trailer_t, msgh_labels)) {
/xnu-11215/bsd/pthread/
H A Dpthread_shims.c65 static_assert((sizeof(struct pthread_functions_s) - offsetof(struct pthread_functions_s, psynch_rw_…
66 static_assert((sizeof(struct pthread_callbacks_s) - offsetof(struct pthread_callbacks_s, PTHREAD_CA…
346 static_assert(offsetof(struct bsdthread_register_args, threadstart) + sizeof(user_addr_t) == in bsdthread_register()
347 offsetof(struct bsdthread_register_args, wqthread)); in bsdthread_register()
H A Dworkqueue_syscalls.h90 _Static_assert(offsetof(struct kqueue_workloop_params, kqwlp_version) == 0,
/xnu-11215/osfmk/kern/
H A Dlock_ticket.c99 static_assert(offsetof(hw_lck_ticket_t, tcurnext) == 2);
100 static_assert(offsetof(hw_lck_ticket_t, cticket) == 2);
101 static_assert(offsetof(hw_lck_ticket_t, nticket) == 3);
103 (HW_LCK_TICKET_LOCK_INCREMENT << (8 * offsetof(hw_lck_ticket_t, nticket))));
398 .hwsp_lock_offset = offsetof(lck_ticket_t, tu),

1234567