| /xnu-12377.81.4/pexpert/arm/ |
| H A D | pe_identify_machine.c | 58 assert(err == kSuccess); in pe_identify_machine() 61 assert(err == kSuccess); in pe_identify_machine() 63 while (kSuccess == SecureDTIterateEntries(&iter, &cpu)) { in pe_identify_machine() 64 if ((kSuccess != SecureDTGetProperty(cpu, "state", &value, &size)) || in pe_identify_machine() 70 if (SecureDTGetProperty(cpu, "timebase-frequency", &value, &size) == kSuccess) { in pe_identify_machine() 85 if (SecureDTGetProperty(cpu, "bus-frequency", &value, &size) == kSuccess) { in pe_identify_machine() 102 if (SecureDTGetProperty(cpu, "memory-frequency", &value, &size) == kSuccess) { in pe_identify_machine() 113 if (SecureDTGetProperty(cpu, "peripheral-frequency", &value, &size) == kSuccess) { in pe_identify_machine() 124 if (SecureDTGetProperty(cpu, "fixed-frequency", &value, &size) == kSuccess) { in pe_identify_machine() 132 if (SecureDTGetProperty(cpu, "clock-frequency", &value, &size) == kSuccess) { in pe_identify_machine() [all …]
|
| H A D | pe_init.c | 137 if (kSuccess != SecureDTLookupEntry(0, "pram", &entry)) { in check_for_panic_log() 141 if (kSuccess != SecureDTGetProperty(entry, "reg", (void const **)®_prop, &size)) { in check_for_panic_log() 145 if (kSuccess != SecureDTLookupEntry(0, "/chosen", &chosen)) { in check_for_panic_log() 149 …if (kSuccess != SecureDTGetProperty(chosen, "embedded-panic-log-size", (void const **) &panic_regi… in check_for_panic_log() 271 if (kSuccess == SecureDTLookupEntry(0, "/chosen/memory-map", &entry)) { in PE_init_iokit() 274 if (kSuccess == SecureDTGetProperty(entry, "BootCLUT", (void const **) &map, &size)) { in PE_init_iokit() 278 if (kSuccess == SecureDTGetProperty(entry, "Pict-FailedBoot", (void const **) &map, &size)) { in PE_init_iokit() 346 if (kSuccess == SecureDTLookupEntry(0, "/chosen/iBoot", &entry)) { in PE_init_iokit() 349 if (kSuccess == SecureDTGetProperty(entry, "start-time", (void const **)&value_ptr, &size)) { in PE_init_iokit() 355 …if (kSuccess == SecureDTGetProperty(entry, "debug-wait-start", (void const **)&value_ptr, &size)) { in PE_init_iokit() [all …]
|
| H A D | pe_serial.c | 402 if (SecureDTGetProperty(devicetree_node, "reg", (const void **)®, ®_size) != kSuccess) { in apple_uart_setup() 414 if (SecureDTGetProperty(devicetree_node, "interrupts", &unused, &unused_size) == kSuccess) { in apple_uart_setup() 457 if (SecureDTGetProperty(devicetree_node, "reg", (const void **)®, ®_size) != kSuccess) { in dockchannel_setup() 470 …erty(devicetree_node, "max-aop-clk", (const void **)&max_aop_clk, &max_aop_clk_size) == kSuccess) { in dockchannel_setup() 478 …ree_node, "enable-sw-drain", (const void **)&enable_sw_drain, &enable_sw_drain_size) == kSuccess) { in dockchannel_setup() 486 …ee_node, "dock-wstat-mask", (const void **)&_dock_wstat_mask, &dock_wstat_mask_size) == kSuccess) { in dockchannel_setup() 494 if (SecureDTGetProperty(devicetree_node, "interrupts", &unused, &unused_size) == kSuccess) { in dockchannel_setup() 719 if (SecureDTGetProperty(devicetree_node, "reg", (const void **)®, ®_size) != kSuccess) { in pl011_uart_setup() 831 if (SecureDTFindNodeWithStringProperty("name", "defaults", &defaults_node) != kSuccess) { in get_serial_device_phandle() 837 …lts_node, "serial-device", (const void **)&defaults_phandle, &defaults_phandle_size) == kSuccess) { in get_serial_device_phandle() [all …]
|
| H A D | pe_consistent_debug.c | 81 if ((SecureDTLookupEntry(NULL, "/chosen", &entryP) == kSuccess)) { in PE_consistent_debug_inherit() 82 …cureDTGetProperty(entryP, "consistent-debug-root", (void const **)&prop_data, &size) == kSuccess) { in PE_consistent_debug_inherit()
|
| H A D | pe_fiq.c | 82 if (error != kSuccess) { in pe_init_fiq() 90 if (error != kSuccess) { in pe_init_fiq()
|
| /xnu-12377.81.4/bsd/kern/ |
| H A D | kern_csr.c | 59 if (SecureDTGetProperty(*entry, name, (const void**)&value, &size) != kSuccess) { in _csr_get_dt_bool() 78 if (SecureDTGetProperty(*entry, name, (const void**)&value, &size) != kSuccess) { in _csr_get_dt_uint64() 100 SecureDTGetProperty(*entry, name, &value, &size) == kSuccess && in _csr_dt_string_is_equal() 111 return SecureDTLookupEntry(0, "/chosen", &chosen) == kSuccess && in _csr_is_recovery_environment() 128 return SecureDTLookupEntry(0, "/chosen", &chosen) == kSuccess && in _csr_is_darwinos_ramdisk() 138 return (SecureDTLookupEntry(0, "/chosen", &entry) == kSuccess && in _csr_is_iuou_or_iuos_device() 140 (SecureDTLookupEntry(0, "/chosen/manifest-properties", &entry) == kSuccess && in _csr_is_iuou_or_iuos_device() 156 SecureDTLookupEntry(0, "/chosen", &chosen) == kSuccess && in _csr_should_allow_device_configuration() 189 if (SecureDTLookupEntry(0, "/chosen/asmb", &entry) == kSuccess && in csr_bootstrap()
|
| H A D | kern_trustcache.c | 360 if (err != kSuccess) { in is_internal_iBoot() 366 if (err != kSuccess) { in is_internal_iBoot() 1184 if (err != kSuccess) { in load_static_trust_cache() 1190 if (err == kSuccess) { in load_static_trust_cache()
|
| H A D | kern_mib.c | 717 if (kSuccess != SecureDTLookupEntry(0, "/chosen", &chosen)) { in sysctl_load_devicetree_entries() 722 if (kSuccess == SecureDTGetProperty(chosen, "osenvironment", (void const **) &value, &size)) { in sysctl_load_devicetree_entries() 727 if (kSuccess == SecureDTGetProperty(chosen, "ephemeral-storage", (void const **) &value, &size)) { in sysctl_load_devicetree_entries() 735 …if (kSuccess == SecureDTGetProperty(chosen, "use-recovery-securityd", (void const **) &value, &siz… in sysctl_load_devicetree_entries()
|
| /xnu-12377.81.4/pexpert/gen/ |
| H A D | device_tree.c | 217 if (SecureDTGetProperty(child, "name", (void const **)&str, &dummy) != kSuccess) { in FindChild() 317 return kSuccess; in find_entry() 324 if (find_entry(propName, propValue, entryH) == kSuccess) { in find_entry() 325 return kSuccess; in find_entry() 373 return kSuccess; in SecureDTFindNodeWithPropertyEqualToValueHelper() 393 if (retval == kSuccess) { in SecureDTFindNodeWithPropertyEqualToValueHelper() 394 return kSuccess; in SecureDTFindNodeWithPropertyEqualToValueHelper() 472 return kSuccess; in SecureDTLookupEntry() 482 return kSuccess; in SecureDTLookupEntry() 511 return kSuccess; in SecureDTInitEntryIterator() [all …]
|
| H A D | pe_gen.c | 96 if (SecureDTLookupEntry(NULL, "/", &root) == kSuccess) { in pe_init_debug() 99 if (SecureDTGetProperty(root, "target-is-fpga", &prop, &size) == kSuccess) { in pe_init_debug() 177 if ((SecureDTLookupEntry(NULL, "/chosen", &entryP) != kSuccess) in PE_get_random_seed() 181 (const void **)(uintptr_t)&random_seed, &size) != kSuccess)) { in PE_get_random_seed()
|
| H A D | bootargs.c | 520 if (kSuccess == SecureDTLookupEntry(NULL, "/defaults", &dte)) { in PE_get_default() 524 if (kSuccess != SecureDTGetProperty(dte, property_name, &property_data, &property_size)) { in PE_get_default()
|
| /xnu-12377.81.4/pexpert/arm/hwtrace/ |
| H A D | hwtrace.c | 215 if (SecureDTGetProperty(entryP, entry_name, (void const **)®_prop, &prop_size) != kSuccess) { in pe_init_debug_command() 357 if (SecureDTLookupEntry(NULL, "/chosen", &ent) == kSuccess && in _is_stress_racks() 358 SecureDTGetProperty(ent, "stress-rack", &propP, &size) == kSuccess) { in _is_stress_racks() 398 if (SecureDTLookupEntry(NULL, "/chosen", &ent) != kSuccess || in panic_trace_apply_partial_policy() 399 SecureDTGetProperty(ent, "unique-chip-id", &ecid, &size) != kSuccess) { in panic_trace_apply_partial_policy() 546 if (SecureDTFindEntry("device_type", "cpu-debug-interface", &entryP) == kSuccess) { in pe_arm_debug_init_early() 548 if (SecureDTGetProperty(entryP, "reg", (void const **)®_prop, &prop_size) == kSuccess) { in pe_arm_debug_init_early()
|
| /xnu-12377.81.4/osfmk/kern/ |
| H A D | startup.c | 313 if (SecureDTLookupEntry(NULL, spec->dt_base, &base) != kSuccess) { in kernel_startup_tunable_dt_source_init() 322 if (SecureDTLookupEntry(NULL, "chosen", &chosen) != kSuccess) { in kernel_startup_tunable_dt_source_init() 326 if (chosen != NULL && SecureDTLookupEntry(chosen, spec->dt_base, &chosen_base) == kSuccess) { in kernel_startup_tunable_dt_source_init() 336 …= NULL && SecureDTGetProperty(base, spec->dt_name, (const void **)&data, &data_size) == kSuccess) { in kernel_startup_tunable_dt_source_init() 365 if (SecureDTLookupEntry(NULL, spec->dt_base, &base) != kSuccess) { in kernel_startup_tunable_dt_init() 374 if (SecureDTLookupEntry(NULL, "chosen", &chosen) != kSuccess) { in kernel_startup_tunable_dt_init() 378 if (chosen != NULL && SecureDTLookupEntry(chosen, spec->dt_base, &chosen_base) == kSuccess) { in kernel_startup_tunable_dt_init() 387 …= NULL && SecureDTGetProperty(base, spec->dt_name, (const void **)&data, &data_size) == kSuccess) { in kernel_startup_tunable_dt_init()
|
| H A D | machine.c | 1537 if (SecureDTLookupEntry(NULL, "/machine-timeouts", &base) != kSuccess) { in machine_timeout_init_with_suffix() 1541 if (SecureDTLookupEntry(NULL, "/chosen/machine-timeouts", &chosen) != kSuccess) { in machine_timeout_init_with_suffix() 1552 …base != NULL && SecureDTGetProperty(base, dt_name, (const void **)&data, &data_size) == kSuccess) { in machine_timeout_init_with_suffix() 1562 …en != NULL && SecureDTGetProperty(chosen, dt_name, (const void **)&data, &data_size) == kSuccess) { in machine_timeout_init_with_suffix() 1589 …LL && SecureDTGetProperty(base, scale_name, (const void **)&scale_data, &scale_size) == kSuccess) { in machine_timeout_init_with_suffix() 1598 … && SecureDTGetProperty(chosen, scale_name, (const void **)&scale_data, &scale_size) == kSuccess) { in machine_timeout_init_with_suffix() 1617 … (SecureDTGetProperty(base, "global-scale", (const void **)&scale_data, &scale_size) == kSuccess) { in machine_timeout_init_with_suffix() 1628 …SecureDTGetProperty(chosen, "global-scale", (const void **)&scale_data, &scale_size) == kSuccess) { in machine_timeout_init_with_suffix()
|
| /xnu-12377.81.4/pexpert/i386/ |
| H A D | pe_init.c | 137 if (kSuccess == SecureDTLookupEntry(NULL, "/chosen/memory-map", &entry)) { in PE_init_iokit() 138 if (kSuccess == SecureDTGetProperty(entry, "BootCLUT", (void const **) &map, &size)) { in PE_init_iokit() 145 if (kSuccess == SecureDTGetProperty(entry, "Pict-FailedBoot", (void const **) &map, &size)) { in PE_init_iokit() 155 if (kSuccess == SecureDTGetProperty(entry, "FailedCLUT", (void const **) &map, &size)) { in PE_init_iokit() 159 if (kSuccess == SecureDTGetProperty(entry, "FailedImage", (void const **) &map, &size)) { in PE_init_iokit()
|
| /xnu-12377.81.4/osfmk/arm/ |
| H A D | arm_init.c | 391 if (SecureDTLookupEntry(NULL, "/chosen", &chosen) != kSuccess) { in arm_init() 397 &dt_entry_size) == kSuccess) { in arm_init() 404 &dt_entry_size) == kSuccess) { in arm_init() 548 if (SecureDTLookupEntry(NULL, "/chosen", &chosen) != kSuccess) { in arm_init() 552 …(SecureDTGetProperty(chosen, "dram-base", (void const **)&dram_base, &dt_entry_size) != kSuccess) { in arm_init() 556 …(SecureDTGetProperty(chosen, "dram-size", (void const **)&dram_size, &dt_entry_size) != kSuccess) { in arm_init()
|
| /xnu-12377.81.4/osfmk/i386/ |
| H A D | tsc.c | 105 if (SecureDTLookupEntry(0, "/efi/platform", &entry) != kSuccess) { in EFI_get_frequency() 113 if (SecureDTGetProperty(entry, "InitialTSC", &value, &size) == kSuccess) { in EFI_get_frequency() 121 if (SecureDTGetProperty(entry, prop, &value, &size) != kSuccess) { in EFI_get_frequency()
|
| /xnu-12377.81.4/iokit/Kernel/ |
| H A D | IODeviceTreeSupport.cpp | 189 foundDTNode = (kSuccess == SecureDTLookupEntry( NULL, "/chosen/memory-map", &mapEntry )) in IODeviceTreeAlloc() 190 && (kSuccess == SecureDTGetProperty( mapEntry, in IODeviceTreeAlloc() 206 while (kSuccess == SecureDTIterateEntries( &iter, &dtChild)) { in IODeviceTreeAlloc() 229 if (kSuccess == SecureDTEnterEntry( &iter, dtChild)) { in IODeviceTreeAlloc() 237 && (kSuccess == SecureDTExitEntry( &iter, &dtChild))); in IODeviceTreeAlloc() 240 assert(kSuccess != SecureDTExitEntry(&iter, &dtChild)); in IODeviceTreeAlloc() 444 (kSuccess == SecureDTInitPropertyIterator( dtEntry, &dtIter))) { in MakeReferenceTable() 445 kernelOnly = (kSuccess == SecureDTGetProperty(dtEntry, "kernel-only", &prop, &propSize)); in MakeReferenceTable() 448 while (kSuccess == SecureDTIterateProperties( &dtIter, &name)) { in MakeReferenceTable() 449 if (kSuccess != SecureDTGetProperty( dtEntry, name, &prop, &propSize )) { in MakeReferenceTable()
|
| /xnu-12377.81.4/osfmk/arm64/sptm/ |
| H A D | arm_init_sptm.c | 812 if (SecureDTLookupEntry(NULL, "/chosen", &chosen) != kSuccess) { in arm_init() 818 &dt_entry_size) == kSuccess) { in arm_init() 825 &dt_entry_size) == kSuccess) { in arm_init() 999 if (SecureDTLookupEntry(NULL, "/chosen", &chosen) != kSuccess) { in arm_init() 1003 …(SecureDTGetProperty(chosen, "dram-base", (void const **)&dram_base, &dt_entry_size) != kSuccess) { in arm_init() 1007 …(SecureDTGetProperty(chosen, "dram-size", (void const **)&dram_size, &dt_entry_size) != kSuccess) { in arm_init() 1465 if (err != kSuccess) { in arm_get_bootkc_ranges_from_DT() 1478 if (err == kSuccess && rangeSize == sizeof(DTMemoryMapRange)) { in arm_get_bootkc_ranges_from_DT() 1543 assert(err == kSuccess); in arm_vm_prot_init() 1546 if (err == kSuccess) { in arm_vm_prot_init()
|
| /xnu-12377.81.4/osfmk/arm/pmap/ |
| H A D | pmap_data.c | 2115 assert(err == kSuccess); in pmap_compute_pv_targets() 2117 if (kSuccess == SecureDTGetProperty(entry, "pmap-pv-count", &prop, &prop_size)) { in pmap_compute_pv_targets() 2124 if (kSuccess == SecureDTGetProperty(entry, "pmap-kern-pv-count", &prop, &prop_size)) { in pmap_compute_pv_targets() 2131 if (kSuccess == SecureDTGetProperty(entry, "pmap-kern-pv-min", &prop, &prop_size)) { in pmap_compute_pv_targets() 3579 assert(err == kSuccess); in pmap_compute_io_rgns() 3583 if (kSuccess != SecureDTGetProperty(entry, "pmap-io-ranges", &prop, &prop_size)) { in pmap_compute_io_rgns() 3669 assert(err == kSuccess); in pmap_load_io_rgns() 3674 assert(err == kSuccess); in pmap_load_io_rgns() 3781 assert(err == kSuccess); in pmap_compute_io_filters() 3785 if (kSuccess != SecureDTGetProperty(entry, "pmap-io-filters", &prop, &prop_size)) { in pmap_compute_io_filters() [all …]
|
| /xnu-12377.81.4/pexpert/pexpert/ |
| H A D | device_tree.h | 129 kSuccess = 1 enumerator
|
| /xnu-12377.81.4/osfmk/arm64/ |
| H A D | machine_routines.c | 1024 if (SecureDTGetProperty(entry, propertyName, &prop, &propSize) == kSuccess) { in ml_readprop() 1050 if (SecureDTGetProperty(entry, propertyName, (void const **)&prop, &propSize) != kSuccess) { in ml_read_reg_range() 1069 if (SecureDTGetProperty(entry, "state", &prop, &propSize) != kSuccess) { in ml_is_boot_cpu() 1122 if ((SecureDTFindEntry("name", "arm-io", &entryP) == kSuccess)) { in ml_read_chip_revision() 1151 assert(err == kSuccess); in ml_parse_cpu_topology() 1154 assert(err == kSuccess); in ml_parse_cpu_topology() 1162 while (kSuccess == SecureDTIterateEntries(&iter, &child)) { in ml_parse_cpu_topology() 3292 if (SecureDTLookupEntry(0, "/chosen", &entry) == kSuccess && in ml_unsafe_kernel_text_init() 3293 SecureDTGetProperty(entry, "kernel-ctrr-to-be-enabled", &value, &size) == kSuccess && in ml_unsafe_kernel_text_init()
|
| H A D | cpu.c | 1209 if (kSuccess == SecureDTLookupEntry(NULL, "/chosen", &entry)) { in cpu_machine_idle_init() 1213 if (kSuccess == SecureDTGetProperty(entry, "effective-production-status-ap", &prop, &size)) { in cpu_machine_idle_init() 1277 if (kSuccess != SecureDTLookupEntry(0, "stram", &entry)) { in sleep_token_buffer_init() 1281 if (kSuccess != SecureDTGetProperty(entry, "reg", (const void **)&prop, (unsigned int *)&size)) { in sleep_token_buffer_init()
|
| /xnu-12377.81.4/bsd/dev/arm64/ |
| H A D | sysctl.c | 237 if (kSuccess != SecureDTLookupEntry(0, "/product", &node)) { in sysctl_load_brand_string() 241 if (kSuccess != SecureDTGetProperty(node, "product-soc-name", (void const **) &value, &size)) { in sysctl_load_brand_string()
|
| /xnu-12377.81.4/osfmk/arm64/sptm/pmap/ |
| H A D | pmap_data.c | 1150 assert(err == kSuccess); in pmap_compute_pv_targets() 1152 if (kSuccess == SecureDTGetProperty(entry, "pmap-pv-count", &prop, &prop_size)) { in pmap_compute_pv_targets() 1159 if (kSuccess == SecureDTGetProperty(entry, "pmap-kern-pv-count", &prop, &prop_size)) { in pmap_compute_pv_targets() 1166 if (kSuccess == SecureDTGetProperty(entry, "pmap-kern-pv-min", &prop, &prop_size)) { in pmap_compute_pv_targets()
|