• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/osfmk/i386/

Lines Matching refs:offsetof

109 #undef	offsetof
110 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE)0)->MEMBER)
134 DECLARE("SLOCK_ILK", offsetof(usimple_lock_t, interlock));
136 DECLARE("SLOCK_TYPE", offsetof(usimple_lock_t, lock_type));
137 DECLARE("SLOCK_PC", offsetof(usimple_lock_t, debug.lock_pc));
138 DECLARE("SLOCK_THREAD", offsetof(usimple_lock_t, debug.lock_thread));
139 DECLARE("SLOCK_DURATIONH",offsetof(usimple_lock_t, debug.duration[0]));
140 DECLARE("SLOCK_DURATIONL",offsetof(usimple_lock_t, debug.duration[1]));
145 DECLARE("MUTEX_LOCKED", offsetof(mutex_t *, lck_mtx.lck_mtx_locked));
146 DECLARE("MUTEX_WAITERS",offsetof(mutex_t *, lck_mtx.lck_mtx_waiters));
147 DECLARE("MUTEX_PROMOTED_PRI",offsetof(mutex_t *, lck_mtx.lck_mtx_pri));
149 DECLARE("MUTEX_TYPE", offsetof(mutex_t *, type));
150 DECLARE("MUTEX_PC", offsetof(mutex_t *, pc));
151 DECLARE("MUTEX_THREAD", offsetof(mutex_t *, thread));
157 DECLARE("MUTEX_ITAG", offsetof(lck_mtx_t *, lck_mtx_tag));
158 DECLARE("MUTEX_PTR", offsetof(lck_mtx_t *, lck_mtx_ptr));
162 DECLARE("MTX_ACQ_TSC", offsetof(lck_mtx_ext_t *, lck_mtx_stat));
165 DECLARE("MUTEX_GRP", offsetof(lck_mtx_ext_t *, lck_mtx_grp));
167 DECLARE("GRP_MTX_STAT_UTIL", offsetof(lck_grp_t *, lck_grp_stat.lck_grp_mtx_stat.lck_grp_mtx_util_cnt));
168 DECLARE("GRP_MTX_STAT_MISS", offsetof(lck_grp_t *, lck_grp_stat.lck_grp_mtx_stat.lck_grp_mtx_miss_cnt));
169 DECLARE("GRP_MTX_STAT_WAIT", offsetof(lck_grp_t *, lck_grp_stat.lck_grp_mtx_stat.lck_grp_mtx_wait_cnt));
173 DECLARE("GRP_MTX_STAT_DIRECT_WAIT", offsetof(lck_grp_t *, lck_grp_stat.lck_grp_mtx_stat.lck_grp_mtx_held_cnt));
175 DECLARE("GRP_MTX_STAT_HELD_MAX", offsetof(lck_grp_t *, lck_grp_stat.lck_grp_mtx_stat.lck_grp_mtx_held_max));
180 DECLARE("TH_RECOVER", offsetof(thread_t, recover));
181 DECLARE("TH_CONTINUATION", offsetof(thread_t, continuation));
182 DECLARE("TH_KERNEL_STACK", offsetof(thread_t, kernel_stack));
185 offsetof(task_t, exc_actions[EXC_MACH_SYSCALL].port));
186 DECLARE("TASK_SYSCALLS_MACH", offsetof(struct task *, syscalls_mach));
187 DECLARE("TASK_SYSCALLS_UNIX", offsetof(struct task *, syscalls_unix));
189 DECLARE("TASK_VTIMERS", offsetof(struct task *, vtimers));
193 offsetof(thread_t, exc_actions[EXC_MACH_SYSCALL].port));
195 DECLARE("ACT_TASK", offsetof(thread_t, task));
196 DECLARE("ACT_AST", offsetof(thread_t, ast));
197 DECLARE("ACT_PCB", offsetof(thread_t, machine.pcb));
198 DECLARE("ACT_SPF", offsetof(thread_t, machine.specFlags));
199 DECLARE("ACT_MAP", offsetof(thread_t, map));
200 DECLARE("ACT_COPYIO_STATE", offsetof(thread_t, machine.copyio_state));
201 DECLARE("ACT_PCB_ISS", offsetof(thread_t, machine.xxx_pcb.iss));
202 DECLARE("ACT_PCB_IDS", offsetof(thread_t, machine.xxx_pcb.ids));
206 DECLARE("MAP_PMAP", offsetof(vm_map_t, pmap));
210 DECLARE("KSS_EBX", IKS + offsetof(struct x86_kernel_state32 *, k_ebx));
211 DECLARE("KSS_ESP", IKS + offsetof(struct x86_kernel_state32 *, k_esp));
212 DECLARE("KSS_EBP", IKS + offsetof(struct x86_kernel_state32 *, k_ebp));
213 DECLARE("KSS_EDI", IKS + offsetof(struct x86_kernel_state32 *, k_edi));
214 DECLARE("KSS_ESI", IKS + offsetof(struct x86_kernel_state32 *, k_esi));
215 DECLARE("KSS_EIP", IKS + offsetof(struct x86_kernel_state32 *, k_eip));
220 DECLARE("PCB_FPS", offsetof(pcb_t, ifps));
221 DECLARE("PCB_ISS", offsetof(pcb_t, iss));
223 DECLARE("DS_DR0", offsetof(struct x86_debug_state32 *, dr0));
224 DECLARE("DS_DR1", offsetof(struct x86_debug_state32 *, dr1));
225 DECLARE("DS_DR2", offsetof(struct x86_debug_state32 *, dr2));
226 DECLARE("DS_DR3", offsetof(struct x86_debug_state32 *, dr3));
227 DECLARE("DS_DR4", offsetof(struct x86_debug_state32 *, dr4));
228 DECLARE("DS_DR5", offsetof(struct x86_debug_state32 *, dr5));
229 DECLARE("DS_DR6", offsetof(struct x86_debug_state32 *, dr6));
230 DECLARE("DS_DR7", offsetof(struct x86_debug_state32 *, dr7));
232 DECLARE("DS64_DR0", offsetof(struct x86_debug_state64 *, dr0));
233 DECLARE("DS64_DR1", offsetof(struct x86_debug_state64 *, dr1));
234 DECLARE("DS64_DR2", offsetof(struct x86_debug_state64 *, dr2));
235 DECLARE("DS64_DR3", offsetof(struct x86_debug_state64 *, dr3));
236 DECLARE("DS64_DR4", offsetof(struct x86_debug_state64 *, dr4));
237 DECLARE("DS64_DR5", offsetof(struct x86_debug_state64 *, dr5));
238 DECLARE("DS64_DR6", offsetof(struct x86_debug_state64 *, dr6));
239 DECLARE("DS64_DR7", offsetof(struct x86_debug_state64 *, dr7));
241 DECLARE("FP_VALID", offsetof(struct x86_fpsave_state *,fp_valid));
243 DECLARE("SS_FLAVOR", offsetof(x86_saved_state_t *, flavor));
247 #define R_(x) offsetof(x86_saved_state_t *, ss_32.x)
269 #define R64_(x) offsetof(x86_saved_state_t *, ss_64.x)
302 #define ISF64_(x) offsetof(x86_64_intr_stack_frame_t *, x)
313 DECLARE("ISC32_OFFSET", offsetof(x86_saved_state_compat32_t *, isf64));
314 #define ISC32_(x) offsetof(x86_saved_state_compat32_t *, isf64.x)
376 offsetof(cpu_data_t *, cpu_this));
378 offsetof(cpu_data_t *, cpu_active_thread));
380 offsetof(cpu_data_t *, cpu_active_stack));
382 offsetof(cpu_data_t *, cpu_kernel_stack));
384 offsetof(cpu_data_t *, cpu_int_stack_top));
387 offsetof(cpu_data_t *, cpu_preemption_level));
390 offsetof(cpu_data_t *, cpu_interrupt_level));
392 offsetof(cpu_data_t *,cpu_simple_lock_count));
394 offsetof(cpu_data_t *,cpu_number));
396 offsetof(cpu_data_t *,cpu_running));
398 offsetof(cpu_data_t *,cpu_mcount_off));
400 offsetof(cpu_data_t *,cpu_pending_ast));
402 offsetof(cpu_data_t *,cpu_desc_tablep));
404 offsetof(cpu_data_t *,cpu_desc_index));
406 offsetof(cpu_desc_index_t *,cdi_gdt));
408 offsetof(cpu_desc_index_t *,cdi_idt));
410 offsetof(cpu_data_t *,cpu_processor));
412 offsetof(cpu_data_t *, cpu_int_state));
414 offsetof(cpu_data_t *, cpu_int_event_time));
417 offsetof(cpu_data_t *, cpu_hi_iss));
419 offsetof(cpu_data_t *, cpu_task_cr3));
421 offsetof(cpu_data_t *, cpu_active_cr3));
423 offsetof(cpu_data_t *, cpu_kernel_cr3));
426 offsetof(cpu_data_t *, cpu_is64bit));
428 offsetof(cpu_data_t *, cpu_task_map));
433 offsetof(cpu_data_t *, cpu_uber.cu_user_gs_base));
435 offsetof(cpu_data_t *, cpu_uber.cu_isf));
437 offsetof(cpu_data_t *, cpu_uber.cu_tmp));
439 offsetof(cpu_data_t *, cpu_uber_arg_store));
441 offsetof(cpu_data_t *, cpu_uber_arg_store_valid));
444 offsetof(cpu_data_t *, cpu_nanotime));
447 offsetof(cpu_data_t *, cpu_dr7));
449 DECLARE("hwIntCnt", offsetof(cpu_data_t *,cpu_hwIntCnt));
463 DECLARE("dgLock", offsetof(struct diagWork *, dgLock));
464 DECLARE("dgFlags", offsetof(struct diagWork *, dgFlags));
465 DECLARE("dgMisc1", offsetof(struct diagWork *, dgMisc1));
466 DECLARE("dgMisc2", offsetof(struct diagWork *, dgMisc2));
467 DECLARE("dgMisc3", offsetof(struct diagWork *, dgMisc3));
468 DECLARE("dgMisc4", offsetof(struct diagWork *, dgMisc4));
469 DECLARE("dgMisc5", offsetof(struct diagWork *, dgMisc5));
484 DECLARE("TSS_ESP0", offsetof(struct i386_tss *, esp0));
485 DECLARE("TSS_SS0", offsetof(struct i386_tss *, ss0));
486 DECLARE("TSS_LDT", offsetof(struct i386_tss *, ldt));
487 DECLARE("TSS_PDBR", offsetof(struct i386_tss *, cr3));
488 DECLARE("TSS_LINK", offsetof(struct i386_tss *, back_link));
500 DECLARE("USL_INTERLOCK", offsetof(usimple_lock_t, interlock));
503 DECLARE("TIMER_LOW", offsetof(struct timer *, low_bits));
504 DECLARE("TIMER_HIGH", offsetof(struct timer *, high_bits));
505 DECLARE("TIMER_HIGHCHK", offsetof(struct timer *, high_bits_check));
506 DECLARE("KADDR", offsetof(struct boot_args *, kaddr));
507 DECLARE("KSIZE", offsetof(struct boot_args *, ksize));
508 DECLARE("MEMORYMAP", offsetof(struct boot_args *, MemoryMap));
509 DECLARE("DEVICETREEP", offsetof(struct boot_args *, deviceTreeP));
512 offsetof(rtc_nanotime_t *, tsc_base));
514 offsetof(rtc_nanotime_t *, ns_base));
516 offsetof(rtc_nanotime_t *, scale));
518 offsetof(rtc_nanotime_t *, shift));
520 offsetof(rtc_nanotime_t *, generation));
524 offsetof(struct timer *, low_bits));
526 offsetof(struct timer *, high_bits));
528 offsetof(struct timer *, high_bits_check));
531 offsetof(struct timer *, tstamp));
534 offsetof(struct processor *, processor_data.thread_timer));
537 offsetof(struct processor *, processor_data.kernel_timer));
539 offsetof(struct thread *, system_timer));
541 offsetof(struct thread *, user_timer));
543 offsetof(struct processor *, processor_data.system_state));
545 offsetof(struct processor *, processor_data.user_state));
547 offsetof(struct processor *, processor_data.idle_state));
549 offsetof(struct processor *, processor_data.current_state));