Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 197) sorted by relevance

12345678

/xnu-11215/osfmk/kern/
H A Dexc_resource.h56 (((code) >> 61) & 0x7ULL)
58 (((code) >> 58) & 0x7ULL)
96 (((code) >> 7) & 0x1FFFFFFULL)
98 ((code) & 0x7FULL)
131 ((code) & 0xFFFULL)
133 (((code) >> 20) & 0xFFFFFULL)
165 ((code) & 0x1FFFULL)
195 (((code) >> 15) & 0x1FFFFULL)
197 ((code) & 0x7FFFULL)
210 ((code) & 0x7FFFULL)
[all …]
H A Dexc_guard.h58 #define EXC_GUARD_DECODE_GUARD_TYPE(code) \ argument
59 ((((uint64_t)(code)) >> 61) & 0x7ull)
60 #define EXC_GUARD_DECODE_GUARD_FLAVOR(code) \ argument
61 ((((uint64_t)(code)) >> 32) & 0x1fffffff)
62 #define EXC_GUARD_DECODE_GUARD_TARGET(code) \ argument
63 ((uint32_t)(code))
167 #define EXC_GUARD_ENCODE_TYPE(code, type) \ argument
168 ((code) |= (((uint64_t)(type) & 0x7ull) << 61))
169 #define EXC_GUARD_ENCODE_FLAVOR(code, flavor) \ argument
171 #define EXC_GUARD_ENCODE_TARGET(code, target) \ argument
[all …]
H A Dexception.c321 code, in exception_deliver()
373 code, in exception_deliver()
406 code, in exception_deliver()
466 code, in exception_deliver()
535 code, in exception_deliver()
623 code[0] = exception; in exception_deliver_backtrace()
624 code[1] = 0; in exception_deliver_backtrace()
655 code, in exception_deliver_backtrace()
896 exception, code[0], codeCnt > 1 ? code[1] : 0); in exception_triage()
958 code[0] = exccode; in task_exception_notify()
[all …]
H A Dux_handler.c134 mach_exception_data_t code, in catch_mach_exception_raise() argument
150 kr = handle_ux_exception(target_thread, exception, code[0], code[1]); in catch_mach_exception_raise()
177 exception_data_t code, in catch_exception_raise() argument
185 [0] = code[0], in catch_exception_raise()
186 [1] = code[1], in catch_exception_raise()
201 __unused const exception_data_t code, in catch_exception_raise_state() argument
233 __unused exception_data_t code, in catch_exception_raise_state_identity() argument
250 __unused mach_exception_data_t code, in catch_mach_exception_raise_state_identity() argument
267 __unused mach_exception_data_t code, in catch_mach_exception_raise_identity_protected() argument
278 __unused mach_exception_data_t code, in catch_mach_exception_raise_backtrace() argument
[all …]
/xnu-11215/iokit/IOKit/
H A DIOTimeStamp.h198 #define IODBG_KEYBOARD(code) (KDBG_CODE(DBG_IOKIT, DBG_IOKEYBOARD, code)) argument
199 #define IODBG_HID(code) (KDBG_CODE(DBG_IOKIT, DBG_IOHID, code)) argument
202 #define IODBG_TTY(code) (KDBG_CODE(DBG_IOKIT, DBG_IOTTY, code)) argument
210 #define IODBG_BLUETOOTH(code) (KDBG_CODE(DBG_IOKIT, DBG_IOBLUETOOTH, code)) argument
211 #define IODBG_FIREWIRE(code) (KDBG_CODE(DBG_IOKIT, DBG_IOFIREWIRE, code)) argument
212 #define IODBG_INFINIBAND(code) (KDBG_CODE(DBG_IOKIT, DBG_IOINFINIBAND, code)) argument
216 #define IODBG_DISK(code) IODBG_STORAGE(code) argument
217 #define IODBG_POINTING(code) IODBG_HID(code) argument
222 #define IODBG_WORKLOOP(code) (KDBG_CODE(DBG_IOKIT, DBG_IOWORKLOOP, code)) argument
229 #define IODBG_IOSERVICE(code) (KDBG_CODE(DBG_IOKIT, DBG_IOSERVICE, code)) argument
[all …]
/xnu-11215/osfmk/arm/
H A Dtrap.h99 ml_fatal_trap(unsigned int code) in ml_fatal_trap() argument
125 #define ml_fatal_trap(code) ({ \ argument
147 #define TRAP_CASE(code) \ argument
148 case code: \
151 #define TRAP_5CASES(code) \ argument
152 TRAP_CASE(code) \
153 TRAP_CASE(code + 1) \
154 TRAP_CASE(code + 2) \
155 TRAP_CASE(code + 3) \
156 TRAP_CASE(code + 4)
[all …]
/xnu-11215/osfmk/i386/
H A Dtrap.h119 ml_recoverable_trap(unsigned int code) in ml_recoverable_trap() argument
127 ml_fatal_trap(unsigned int code) in ml_fatal_trap() argument
147 #define ml_recoverable_trap(code) \ argument
148 __asm__ volatile ("ud1l %0(%%eax), %%eax" : : "p"(code))
149 #define ml_fatal_trap(code) ({ \ argument
150 __asm__ volatile ("ud1l %0(%%eax), %%eax" : : "p"(code)); \
153 #define ml_fatal_trap_with_value(code, value) ({ \ argument
157 : [_code]"p"((void *)((unsigned long long)code)) \
166 ml_trap(unsigned int code) in ml_trap() argument
174 ml_bound_chk_soft_trap(unsigned char code) in ml_bound_chk_soft_trap() argument
[all …]
H A Dx86_hypercall.h84 #define HVG_HCALL_CODE(code) ('A' << 24 | (code & 0xFFFFFF)) argument
135 hvg_hypercall0(const uint64_t code, in hvg_hypercall0() argument
138 return hvg_hypercall6(code, 0, 0, 0, 0, 0, 0, output); in hvg_hypercall0()
142 hvg_hypercall1(const uint64_t code, in hvg_hypercall1() argument
146 return hvg_hypercall6(code, rdi, 0, 0, 0, 0, 0, output); in hvg_hypercall1()
150 hvg_hypercall2(const uint64_t code, in hvg_hypercall2() argument
154 return hvg_hypercall6(code, rdi, rsi, 0, 0, 0, 0, output); in hvg_hypercall2()
158 hvg_hypercall3(const uint64_t code, in hvg_hypercall3() argument
166 hvg_hypercall4(const uint64_t code, in hvg_hypercall4() argument
174 hvg_hypercall5(const uint64_t code, in hvg_hypercall5() argument
[all …]
H A Dtrap.c163 int code; in thread_syscall_return() local
199 is_mach = (code < 0); in thread_syscall_return()
1114 code = 0; in user_trap()
1133 code = EXC_I386_DIV; in user_trap()
1160 code = EXC_I386_SGL; in user_trap()
1170 code = EXC_I386_BPT; in user_trap()
1175 code = EXC_I386_INTO; in user_trap()
1180 code = EXC_I386_BOUND; in user_trap()
1238 code = EXC_I386_GPFLT; in user_trap()
1293 code = kret; in user_trap()
[all …]
/xnu-11215/bsd/dev/i386/
H A Dsystemcalls.c76 #define code_is_kdebug_trace(code) (((code) == SYS_kdebug_trace) || \ argument
117 syscode = (code < nsysent) ? code : SYS_invalid; in unix_syscall()
127 code = fuword(params); in unix_syscall()
129 syscode = (code < nsysent) ? code : SYS_invalid; in unix_syscall()
175 uthread->syscall_code = code; in unix_syscall()
310 syscode = (code < nsysent) ? code : SYS_invalid; in unix_syscall64()
323 code = regs->rdi; in unix_syscall64()
324 syscode = (code < nsysent) ? code : SYS_invalid; in unix_syscall64()
483 unsigned int code; in unix_syscall_return() local
499 callp = (code >= nsysent) ? &sysent[SYS_invalid] : &sysent[code]; in unix_syscall_return()
[all …]
/xnu-11215/bsd/sys/
H A Dkdebug.h1155 #define MACHDBG_CODE(SubClass, code) KDBG_EVENTID(DBG_MACH, SubClass, code) argument
1158 #define BSDDBG_CODE(SubClass, code) KDBG_EVENTID(DBG_BSD, SubClass, code) argument
1167 #define QTDBG_CODE(SubClass, code) KDBG_EVENTID(DBG_QT, SubClass, code) argument
1171 #define CPUPM_CODE(code) IOKDBG_CODE(DBG_IOCPUPM, code) argument
1185 #define MEMSTAT_CODE(code) BSDDBG_CODE(DBG_BSD_MEMSTAT, code) argument
1187 #define VM_RECLAIM_CODE(code) MACHDBG_CODE(DBG_MACH_VM_RECLAIM, code) argument
1188 #define VMDBG_CODE(code) MACHDBG_CODE(DBG_MACH_VM, code) argument
1190 #define PMAP_CODE(code) MACHDBG_CODE(DBG_MACH_PMAP, code) argument
1194 #define ATM_CODE(SubClass, code) KDBG_EVENTID(DBG_ATM, (SubClass), (code)) argument
1198 #define COREDUETDBG_CODE(code) DAEMONDBG_CODE(DBG_DAEMON_COREDUET, code) argument
[all …]
/xnu-11215/bsd/dev/arm/
H A Dsystemcalls.c74 #define code_is_kdebug_trace(code) (((code) == SYS_kdebug_trace) || \ argument
97 unsigned short code, syscode; in unix_syscall() local
103 code = arm_get_syscall_number(state); in unix_syscall()
108 arm_trace_unix_syscall(code, state); in unix_syscall()
112 syscode = (code < nsysent) ? code : SYS_invalid; in unix_syscall()
128 uthread->syscall_code = code; in unix_syscall()
148 syscalls_log[code]++; in unix_syscall()
195 code, uthread->uu_iocount); in unix_syscall()
237 unsigned short code; in unix_syscall_return() local
248 code = uthread->syscall_code; in unix_syscall_return()
[all …]
/xnu-11215/osfmk/kperf/
H A Dbuffer.h56 #define PERF_GEN_CODE(code) PERF_CODE(PERF_GENERIC, code) argument
59 #define PERF_TI_CODE(code) PERF_CODE(PERF_THREADINFO, code) argument
85 #define PERF_CS_CODE(code) PERF_CODE(PERF_CALLSTACK, code) argument
102 #define PERF_TM_CODE(code) PERF_CODE(PERF_TIMER, code) argument
109 #define PERF_PET_CODE(code) PERF_CODE(PERF_PET, code) argument
121 #define PERF_AST_CODE(code) PERF_CODE(PERF_AST, code) argument
126 #define PERF_KPC_CODE(code) PERF_CODE(PERF_KPC, code) argument
140 #define PERF_KDBG_CODE(code) PERF_CODE(PERF_KDBG, code) argument
143 #define PERF_TK_CODE(code) PERF_CODE(PERF_TASK, code) argument
150 #define PERF_LZ_CODE(code) PERF_CODE(PERF_LAZY, code) argument
[all …]
/xnu-11215/bsd/uxkern/
H A Dux_exception.c57 mach_exception_code_t code, in ux_exception() argument
63 if ((machine_signal = machine_exception(exception, code, subcode)) != 0) { in ux_exception()
69 if (code == KERN_INVALID_ADDRESS) { in ux_exception()
91 switch (code) { in ux_exception()
116 mach_exception_code_t code, in handle_ux_exception() argument
128 int ux_signal = ux_exception(exception, code, subcode); in handle_ux_exception()
141 if (code == KERN_PROTECTION_FAILURE && in handle_ux_exception()
180 threadsignal(thread, ux_signal, code, TRUE); in handle_ux_exception()
/xnu-11215/tests/
H A Dldt.c201 mach_exception_data_t code,
396 code[0], codeCnt > 1 ? code[1] : 0LL); in catch_mach_exception_raise_state_identity()
666 (void *)(uintptr_t)(entp->code.base00 + (entp->code.base16 << 16) + (entp->code.base24 << 24)), in dump_desc()
667 (void *)(uintptr_t)(entp->code.limit00 + (entp->code.limit16 << 16)), in dump_desc()
668 entp->code.type, in dump_desc()
669 entp->code.dpl, in dump_desc()
670 entp->code.present, in dump_desc()
671 entp->code.opsz, in dump_desc()
672 entp->code.granular); in dump_desc()
1008 descs[idx].code.dpl = 3; in ldt64_test_setup()
[all …]
H A Dvm_set_max_addr_test.c25 int code = 0; variable
41 code = WEXITSTATUS(status);
42 T_ASSERT_NE_INT(code, 0, "Child should have failed");
53 code = WEXITSTATUS(status);
54 T_ASSERT_EQ_INT(code, 0, "Child should have succeeded");
/xnu-11215/bsd/net/
H A Dbpf.h1365 #define BPF_CLASS(code) ((code) & 0x07) argument
1376 #define BPF_SIZE(code) ((code) & 0x18) argument
1380 #define BPF_MODE(code) ((code) & 0xe0) argument
1389 #define BPF_OP(code) ((code) & 0xf0) argument
1404 #define BPF_SRC(code) ((code) & 0x08) argument
1409 #define BPF_RVAL(code) ((code) & 0x18) argument
1413 #define BPF_MISCOP(code) ((code) & 0xf8) argument
1426 u_short code; member
1435 #define BPF_STMT(code, k) { (u_short)(code), 0, 0, k } argument
1436 #define BPF_JUMP(code, k, jt, jf) { (u_short)(code), jt, jf, k } argument
/xnu-11215/osfmk/kdp/ml/x86_64/
H A Dkdp_machdep.c74 unsigned int code, in kdp_exception() argument
89 rq->exc_info[0].code = code; in kdp_exception()
379 code = EXC_I386_DIVERR; in kdp_i386_trap()
384 code = EXC_I386_INTOFLT; in kdp_i386_trap()
389 code = EXC_I386_BOUNDFLT; in kdp_i386_trap()
394 code = EXC_I386_INVOPFLT; in kdp_i386_trap()
405 code = EXC_I386_STKFLT; in kdp_i386_trap()
411 code = EXC_I386_GPFLT; in kdp_i386_trap()
417 code = result; in kdp_i386_trap()
429 code = EXC_I386_BPTFLT; in kdp_i386_trap()
[all …]
/xnu-11215/libkern/zlib/
H A Dtrees.c275 int code; /* code value */ in tr_static_init() local
291 for (code = 0; code < LENGTH_CODES-1; code++) { in tr_static_init()
292 base_length[code] = length; in tr_static_init()
306 for (code = 0 ; code < 16; code++) { in tr_static_init()
307 base_dist[code] = dist; in tr_static_init()
314 for ( ; code < D_CODES; code++) { in tr_static_init()
315 base_dist[code] = dist << 7; in tr_static_init()
628 next_code[bits] = code = (ush)((code + bl_count[bits-1]) << 1); in gen_codes()
1168 code = d_code(dist);
1223 res |= code & 1;
[all …]
H A Dinflate.h129 code const FAR *lencode; /* starting table for length/literal codes */
130 code const FAR *distcode; /* starting table for distance codes */
138 code FAR *next; /* next available space in codes[] */
141 code codes[ENOUGH]; /* space for code tables */
/xnu-11215/bsd/dev/dtrace/
H A Dsystrace.c125 if (code == 0) { in dtrace_systrace_syscall()
126 code = regs->rdi; in dtrace_systrace_syscall()
131 if (code == 0) { in dtrace_systrace_syscall()
133 code = fuword(params); in dtrace_systrace_syscall()
153 code = saved_state32(arm_regs)->r[0]; in dtrace_systrace_syscall()
160 code = saved_state64(arm_regs)->x[0]; in dtrace_systrace_syscall()
169 sy = (code >= nsysent) ? &systrace_sysent[SYS_invalid] : &systrace_sysent[code]; in dtrace_systrace_syscall()
171 systrace_args(code, ip, uargs); in dtrace_systrace_syscall()
288 sy = (code >= nsysent) ? &systrace_sysent[SYS_invalid] : &systrace_sysent[code]; in dtrace_systrace_syscall_return()
691 code = -code; in dtrace_machtrace_syscall()
[all …]
/xnu-11215/libsyscall/wrappers/
H A Dkdebug_trace.c40 extern int __kdebug_trace64(uint32_t code, uint64_t arg1, uint64_t arg2,
200 kdebug_signpost(uint32_t code, uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t arg4) in kdebug_signpost() argument
202 return kdebug_signpost_internal(code << KDBG_CODE_OFFSET, arg1, arg2, arg3, arg4); in kdebug_signpost()
206 kdebug_signpost_start(uint32_t code, uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t arg4) in kdebug_signpost_start() argument
208 …return kdebug_signpost_internal((code << KDBG_CODE_OFFSET) | DBG_FUNC_START, arg1, arg2, arg3, arg… in kdebug_signpost_start()
212 kdebug_signpost_end(uint32_t code, uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t arg4) in kdebug_signpost_end() argument
214 return kdebug_signpost_internal((code << KDBG_CODE_OFFSET) | DBG_FUNC_END, arg1, arg2, arg3, arg4); in kdebug_signpost_end()
/xnu-11215/bsd/kern/
H A Dkdebug.c994 .code = uap->code, in kdebug_trace()
2609 KDBG(KDEBUG_TEST_CODE(code)); code++; in kdbg_test()
2610 KDBG(KDEBUG_TEST_CODE(code), 1); code++; in kdbg_test()
2611 KDBG(KDEBUG_TEST_CODE(code), 1, 2); code++; in kdbg_test()
2612 KDBG(KDEBUG_TEST_CODE(code), 1, 2, 3); code++; in kdbg_test()
2615 KDBG_RELEASE(KDEBUG_TEST_CODE(code)); code++; in kdbg_test()
2621 KDBG_FILTERED(KDEBUG_TEST_CODE(code)); code++; in kdbg_test()
2633 KDBG_DEBUG(KDEBUG_TEST_CODE(code)); code++; in kdbg_test()
2634 KDBG_DEBUG(KDEBUG_TEST_CODE(code), 1); code++; in kdbg_test()
2649 code++; in kdbg_test()
[all …]
/xnu-11215/libsyscall/mach/
H A Dmach_error_string.c144 int sub, system, code; in mach_error_string_int() local
151 code = err_get_code(err); in mach_error_string_int()
167 code = err_sparse_mapit(code, sub_p->map_table, sub_p->map_count); in mach_error_string_int()
169 if (code >= sub_p->max_code) { in mach_error_string_int()
174 return (char *)sub_p->codes[code]; in mach_error_string_int()
/xnu-11215/tools/lldbmacros/
H A Dulock.py16 code = int(ull.ull_opcode)
17 if code in ulock_types:
18 ull_type = ulock_types[code]
20 ull_type = "{:#x}".format(code)

12345678