Home
last modified time | relevance | path

Searched refs:spec (Results 1 – 25 of 27) sorted by relevance

12

/xnu-11215/osfmk/kern/
H A Dstartup.c291 if (spec->var_is_str) { in kernel_startup_tunable_init()
292 PE_parse_boot_arg_str(spec->name, spec->var_addr, spec->var_len); in kernel_startup_tunable_init()
293 } else if (PE_parse_boot_argn(spec->name, spec->var_addr, spec->var_len)) { in kernel_startup_tunable_init()
294 if (spec->var_is_bool) { in kernel_startup_tunable_init()
296 *(bool *)spec->var_addr = *(uint8_t *)spec->var_addr; in kernel_startup_tunable_init()
313 if (spec->dt_chosen_override) { in kernel_startup_tunable_dt_init()
332 data_size, found_in_chosen ? "/chosen" : "", spec->dt_base, spec->dt_name); in kernel_startup_tunable_dt_init()
336 memcpy(spec->var_addr, data, spec->var_len); in kernel_startup_tunable_dt_init()
341 if (PE_parse_boot_argn(spec->boot_arg_name, spec->var_addr, spec->var_len)) { in kernel_startup_tunable_dt_init()
342 if (spec->var_is_bool) { in kernel_startup_tunable_dt_init()
[all …]
H A Dsimple_lock.h130 #define hw_lock_to(lck, spec, grp) \ argument
131 hw_lock_to(lck, spec)
133 #define hw_lock_to_nopreempt(lck, spec, grp) \ argument
134 hw_lock_to_nopreempt(lck, spec)
217 struct usimple_lock_startup_spec *spec);
385 #define hw_lock_bit_to(lck, bit, spec, grp) \ argument
386 hw_lock_bit_to(lck, bit, spec)
388 #define hw_lock_bit_to_b(lck, bit, spec, pause, grp) \ argument
389 hw_lock_bit_to_b(lck, bit, spec, pause)
H A Dmachine.c1324 if (spec->skip_predicate != NULL && spec->skip_predicate(spec)) { in machine_timeout_init_with_suffix()
1326 os_atomic_store_wide((uint64_t*)spec->ptr, 0, relaxed); in machine_timeout_init_with_suffix()
1331 assert(strlen(spec->name) <= MACHINE_TIMEOUT_MAX_NAME_LEN); in machine_timeout_init_with_suffix()
1338 strlcpy(dt_name, spec->name, dt_name_size); in machine_timeout_init_with_suffix()
1344 strlcpy(scale_name, spec->name, scale_name_size); in machine_timeout_init_with_suffix()
1352 strlcat(boot_arg_name, spec->name, boot_arg_name_size); in machine_timeout_init_with_suffix()
1379 uint64_t timeout = spec->default_value; in machine_timeout_init_with_suffix()
1488 if (spec->unit_scale == MACHINE_TIMEOUT_UNIT_TIMEBASE) { in machine_timeout_init_with_suffix()
1492 timeout /= spec->unit_scale; in machine_timeout_init_with_suffix()
1509 machine_timeout_init(const struct machine_timeout_spec *spec) in machine_timeout_init() argument
[all …]
H A Dsched_hygiene.h77 extern bool kprintf_spam_mt_pred(struct machine_timeout_spec const *spec);
H A Dlocks.h1231 struct lck_attr_startup_spec *spec);
1234 struct lck_spin_startup_spec *spec);
1237 struct lck_ticket_startup_spec *spec);
H A Dstartup.h490 machine_timeout_init_with_suffix(const struct machine_timeout_spec *spec, char const *phase_suffix);
493 machine_timeout_init(const struct machine_timeout_spec *spec);
799 struct sysctl_test_setup_spec *spec);
H A Dlock_mtx.h182 struct lck_mtx_startup_spec *spec);
H A Dlock_group.h210 struct lck_grp_spec *spec);
H A Dlock_rw.h185 struct lck_rw_startup_spec *spec);
H A Dzalloc.h2531 struct zone_create_startup_spec *spec);
2560 struct zone_view_startup_spec *spec);
H A Dzalloc.c9797 zone_create_startup(struct zone_create_startup_spec *spec) in zone_create_startup() argument
9801 z = zone_create_ext(spec->z_name, spec->z_size, in zone_create_startup()
9802 spec->z_flags, spec->z_zid, spec->z_setup); in zone_create_startup()
9803 if (spec->z_var) { in zone_create_startup()
9804 *spec->z_var = z; in zone_create_startup()
9822 zone_view_startup_init(struct zone_view_startup_spec *spec) in zone_view_startup_init() argument
9825 zone_view_t zv = spec->zv_view; in zone_view_startup_init()
9829 switch (spec->zv_heapid) { in zone_view_startup_init()
9838 z = kalloc_zone_for_size(heap->kh_zstart, spec->zv_size); in zone_view_startup_init()
9840 z = *spec->zv_zone; in zone_view_startup_init()
[all …]
/xnu-11215/tools/lldbmacros/core/
H A Dcaching.py376 spec = inspect.getargspec(fn)
378 index = spec.args.index('target')
379 offs = len(spec.args) - len(spec.defaults)
380 if index < offs or spec.defaults[index - offs] is not None:
385 nokey = len(spec.args) == 1 and spec.varargs is None and spec.keywords is None
492 spec = inspect.getargspec(fn)
493 if spec.args != ['self', 'target'] or \
494 spec.varargs is not None or spec.keywords is not None:
H A Dlldbwrap.py366 def xIterAsStruct(self, spec, addr, count): argument
383 size = spec.size
385 if hasattr(spec, 'iter_unpack'):
386 return spec.iter_unpack(data)
390 spec.unpack(data[i : i + size])
395 def xIterAsScalar(self, spec, addr, count): argument
415 size = spec.size
417 if hasattr(spec, 'iter_unpack'):
418 return (e[0] for e in spec.iter_unpack(data))
422 int(spec.unpack(data[i : i + size])[0])
/xnu-11215/tools/tests/personas/
H A Dpersona_test.h190 parse_groupspec(struct kpersona_info *kinfo, char *spec) in parse_groupspec() argument
196 if (!spec) { in parse_groupspec()
199 s = e = spec; in parse_groupspec()
/xnu-11215/iokit/bsddev/skywalk/
H A DIOSkywalkSupport.cpp78 const IOSKMemoryBufferSpec * spec );
253 bool initWithSpec( const IOSKRegionSpec * spec,
905 IOSKRegion::initWithSpec( const IOSKRegionSpec * spec, in OSDefineMetaClassAndFinalStructors()
915 if (spec) { in OSDefineMetaClassAndFinalStructors()
916 fSpec = *spec; in OSDefineMetaClassAndFinalStructors()
1296 const IOSKMemoryBufferSpec * spec ) in OSDefineMetaClassAndFinalStructorsWithZone()
1301 if (spec) { in OSDefineMetaClassAndFinalStructorsWithZone()
1302 fSpec = *spec; in OSDefineMetaClassAndFinalStructorsWithZone()
1458 const IOSKMemoryBufferSpec * spec, in IOSKMemoryBufferCreate() argument
1470 if (mb && !mb->initWithSpec(kernel_task, capacity, PAGE_SIZE, spec)) { in IOSKMemoryBufferCreate()
/xnu-11215/bsd/kern/
H A Dkern_newsysctl.c2124 struct experiment_spec *spec = (struct experiment_spec *) arg1; \
2128 ptr = (T *)(spec->ptr); \
2135 if (new_value < (T) spec->min_value || new_value > (T) spec->max_value) { \
2138 if (os_atomic_cmpxchg(&spec->modified, false, true, acq_rel)) { \
2139 spec->original_value = current_value; \
2171 sysctl_register_test_startup(struct sysctl_test_setup_spec *spec) in sysctl_register_test_startup() argument
2180 .oid_arg1 = (void *)(uintptr_t)spec->st_func, in sysctl_register_test_startup()
2181 .oid_name = spec->st_name, in sysctl_register_test_startup()
/xnu-11215/iokit/Kernel/
H A DIODeviceTreeSupport.cpp619 LIBKERN_RETURNS_RETAINED OSData ** spec, in IODTMapOneInterrupt() argument
662 *spec = OSData::withBytesNoCopy((void *) intSpec, in IODTMapOneInterrupt()
665 ok = (*spec && *controller); in IODTMapOneInterrupt()
753 OSObject * spec; in IODTGetInterruptOptions() local
771 spec = specifiers->getObject(source); in IODTGetInterruptOptions()
772 if (!spec) { in IODTGetInterruptOptions()
778 && (!oneSpec->isEqualTo(spec)); in IODTGetInterruptOptions()
/xnu-11215/iokit/IOKit/skywalk/
H A DIOSkywalkSupport.h93 const IOSKMemoryBufferSpec * spec,
/xnu-11215/bsd/dev/dtrace/
H A Ddtrace.c2800 current = spec->dtsp_state; in dtrace_speculation()
2838 dtrace_speculation_t *spec; in dtrace_speculation_commit() local
2858 current = spec->dtsp_state; in dtrace_speculation_commit()
3010 dtrace_speculation_t *spec; in dtrace_speculation_discard() local
3026 current = spec->dtsp_state; in dtrace_speculation_discard()
3129 spec->dtsp_cleaning = 1; in dtrace_speculation_clean()
3147 if (!spec->dtsp_cleaning) in dtrace_speculation_clean()
3158 spec->dtsp_cleaning = 0; in dtrace_speculation_clean()
3174 dtrace_speculation_t *spec; in dtrace_speculation_buffer() local
14547 if (spec == NULL) { in dtrace_state_go()
[all …]
/xnu-11215/osfmk/kdp/
H A Dprocessor_core.c816 main_bin_spec_note_t spec = { in coredump_save_sw_vers() local
822 uuid_copy(*((uuid_t *)&spec.uuid), uuid); in coredump_save_sw_vers()
824 ret = coredump_save_note_data(&spec, sizeof(spec), context); in coredump_save_sw_vers()
/xnu-11215/osfmk/arm/
H A Dpreemption_disable.c513 kprintf_spam_mt_pred(struct machine_timeout_spec const __unused *spec) in kprintf_spam_mt_pred() argument
/xnu-11215/tools/lldbmacros/
H A Dxnu.py1589 spec = cast(sysctl.oid_arg1, "struct experiment_spec *")
1592 if spec.modified == 1:
1594 ptr = spec.ptr
1602 … print("%s = %d (Default value is %d)" % (name, dereference(value), spec.original_value))
/xnu-11215/osfmk/mach/machine/
H A Dmachine_types.defs56 /* from ISO/IEC 988:1999 spec */
/xnu-11215/osfmk/mach/
H A Dstd_types.defs67 /* from ISO/IEC 988:1999 spec */
/xnu-11215/bsd/skywalk/core/
H A Dskywalk.c258 __sk_tag_make(const struct sk_tag_spec *spec) in __sk_tag_make() argument
260 *spec->skt_var = kern_allocation_name_allocate(spec->skt_name, 0); in __sk_tag_make()

12