| /xnu-11215.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() 712 if (SecureDTGetProperty(devicetree_node, "reg", (const void **)®, ®_size) != kSuccess) { in pl011_uart_setup() 847 if (SecureDTFindNodeWithStringProperty("name", "defaults", &defaults_node) != kSuccess) { in serial_init() 853 …TGetProperty(defaults_node, "serial-device", (const void **)&phandle, &phandle_size) == kSuccess) { in serial_init() [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-11215.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 | 519 if (kSuccess == SecureDTLookupEntry(NULL, "/defaults", &dte)) { in PE_get_default() 523 if (kSuccess != SecureDTGetProperty(dte, property_name, &property_data, &property_size)) { in PE_get_default()
|
| /xnu-11215.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() 129 return (SecureDTLookupEntry(0, "/chosen", &entry) == kSuccess && in _csr_is_iuou_or_iuos_device() 131 (SecureDTLookupEntry(0, "/chosen/manifest-properties", &entry) == kSuccess && in _csr_is_iuou_or_iuos_device() 147 SecureDTLookupEntry(0, "/chosen", &chosen) == kSuccess && in _csr_should_allow_device_configuration() 180 if (SecureDTLookupEntry(0, "/chosen/asmb", &entry) == kSuccess && in csr_bootstrap()
|
| /xnu-11215.81.4/pexpert/arm/hwtrace/ |
| H A D | hwtrace.c | 209 if (SecureDTGetProperty(entryP, entry_name, (void const **)®_prop, &prop_size) != kSuccess) { in pe_init_debug_command() 353 if (SecureDTLookupEntry(NULL, "/chosen", &ent) == kSuccess && in panic_trace_apply_stress_rack_policy() 354 SecureDTGetProperty(ent, "stress-rack", &propP, &size) == kSuccess) { in panic_trace_apply_stress_rack_policy() 385 if (SecureDTLookupEntry(NULL, "/chosen", &ent) != kSuccess || in panic_trace_apply_partial_policy() 386 SecureDTGetProperty(ent, "unique-chip-id", &ecid, &size) != kSuccess) { in panic_trace_apply_partial_policy() 528 if (SecureDTFindEntry("device_type", "cpu-debug-interface", &entryP) == kSuccess) { in pe_arm_init_debug() 530 if (SecureDTGetProperty(entryP, "reg", (void const **)®_prop, &prop_size) == kSuccess) { in pe_arm_init_debug()
|
| /xnu-11215.81.4/pexpert/i386/ |
| H A D | pe_init.c | 136 if (kSuccess == SecureDTLookupEntry(NULL, "/chosen/memory-map", &entry)) { in PE_init_iokit() 137 if (kSuccess == SecureDTGetProperty(entry, "BootCLUT", (void const **) &map, &size)) { in PE_init_iokit() 144 if (kSuccess == SecureDTGetProperty(entry, "Pict-FailedBoot", (void const **) &map, &size)) { in PE_init_iokit() 154 if (kSuccess == SecureDTGetProperty(entry, "FailedCLUT", (void const **) &map, &size)) { in PE_init_iokit() 158 if (kSuccess == SecureDTGetProperty(entry, "FailedImage", (void const **) &map, &size)) { in PE_init_iokit()
|
| /xnu-11215.81.4/osfmk/arm/ |
| H A D | arm_init.c | 395 if (SecureDTLookupEntry(NULL, "/chosen", &chosen) != kSuccess) { in arm_init() 401 &dt_entry_size) == kSuccess) { in arm_init() 550 if (SecureDTLookupEntry(NULL, "/chosen", &chosen) != kSuccess) { in arm_init() 554 …(SecureDTGetProperty(chosen, "dram-base", (void const **)&dram_base, &dt_entry_size) != kSuccess) { in arm_init() 558 …(SecureDTGetProperty(chosen, "dram-size", (void const **)&dram_size, &dt_entry_size) != kSuccess) { in arm_init()
|
| /xnu-11215.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-11215.81.4/osfmk/kern/ |
| H A D | startup.c | 307 if (SecureDTLookupEntry(NULL, spec->dt_base, &base) != kSuccess) { in kernel_startup_tunable_dt_init() 316 if (SecureDTLookupEntry(NULL, "chosen", &chosen) != kSuccess) { in kernel_startup_tunable_dt_init() 320 if (chosen != NULL && SecureDTLookupEntry(chosen, spec->dt_base, &chosen_base) == kSuccess) { in kernel_startup_tunable_dt_init() 329 …= NULL && SecureDTGetProperty(base, spec->dt_name, (const void **)&data, &data_size) == kSuccess) { in kernel_startup_tunable_dt_init()
|
| H A D | machine.c | 1371 if (SecureDTLookupEntry(NULL, "/machine-timeouts", &base) != kSuccess) { in machine_timeout_init_with_suffix() 1375 if (SecureDTLookupEntry(NULL, "/chosen/machine-timeouts", &chosen) != kSuccess) { in machine_timeout_init_with_suffix() 1386 …base != NULL && SecureDTGetProperty(base, dt_name, (const void **)&data, &data_size) == kSuccess) { in machine_timeout_init_with_suffix() 1396 …en != NULL && SecureDTGetProperty(chosen, dt_name, (const void **)&data, &data_size) == kSuccess) { in machine_timeout_init_with_suffix() 1423 …LL && SecureDTGetProperty(base, scale_name, (const void **)&scale_data, &scale_size) == kSuccess) { in machine_timeout_init_with_suffix() 1432 … && SecureDTGetProperty(chosen, scale_name, (const void **)&scale_data, &scale_size) == kSuccess) { in machine_timeout_init_with_suffix() 1451 … (SecureDTGetProperty(base, "global-scale", (const void **)&scale_data, &scale_size) == kSuccess) { in machine_timeout_init_with_suffix() 1462 …SecureDTGetProperty(chosen, "global-scale", (const void **)&scale_data, &scale_size) == kSuccess) { in machine_timeout_init_with_suffix()
|
| H A D | debug.c | 2134 if (kSuccess != SecureDTLookupEntry(NULL, "/product", &node)) { 2137 if (kSuccess != SecureDTGetProperty(node, "ephemeral-data-mode", (void const **) &value, &size)) { 2315 if (SecureDTLookupEntry(NULL, "/arm-io/wdt", &base) != kSuccess) { 2321 …SecureDTGetProperty(base, "awl-scratch-supported", (const void **)&data, &data_size) == kSuccess) {
|
| H A D | exclaves_storage.c | 236 SecureDTGetProperty(*entry, name, &value, &size) == kSuccess && in dt_string_is_equal() 253 return SecureDTLookupEntry(0, "/chosen", &chosen) == kSuccess && in is_recovery_environment()
|
| /xnu-11215.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-11215.81.4/osfmk/arm/pmap/ |
| H A D | pmap_data.c | 2109 assert(err == kSuccess); in pmap_compute_pv_targets() 2111 if (kSuccess == SecureDTGetProperty(entry, "pmap-pv-count", &prop, &prop_size)) { in pmap_compute_pv_targets() 2118 if (kSuccess == SecureDTGetProperty(entry, "pmap-kern-pv-count", &prop, &prop_size)) { in pmap_compute_pv_targets() 2125 if (kSuccess == SecureDTGetProperty(entry, "pmap-kern-pv-min", &prop, &prop_size)) { in pmap_compute_pv_targets() 3575 assert(err == kSuccess); in pmap_compute_io_rgns() 3579 if (kSuccess != SecureDTGetProperty(entry, "pmap-io-ranges", &prop, &prop_size)) { in pmap_compute_io_rgns() 3666 assert(err == kSuccess); in pmap_load_io_rgns() 3671 assert(err == kSuccess); in pmap_load_io_rgns() 3778 assert(err == kSuccess); in pmap_compute_io_filters() 3782 if (kSuccess != SecureDTGetProperty(entry, "pmap-io-filters", &prop, &prop_size)) { in pmap_compute_io_filters() [all …]
|
| /xnu-11215.81.4/osfmk/arm64/sptm/ |
| H A D | arm_init_sptm.c | 945 if (SecureDTLookupEntry(NULL, "/chosen", &chosen) != kSuccess) { in arm_init() 949 …(SecureDTGetProperty(chosen, "dram-base", (void const **)&dram_base, &dt_entry_size) != kSuccess) { in arm_init() 953 …(SecureDTGetProperty(chosen, "dram-size", (void const **)&dram_size, &dt_entry_size) != kSuccess) { in arm_init() 1264 if (err != kSuccess) { in arm_get_bootkc_ranges_from_DT() 1277 if (err == kSuccess && rangeSize == sizeof(DTMemoryMapRange)) { in arm_get_bootkc_ranges_from_DT() 1342 assert(err == kSuccess); in arm_vm_prot_init() 1345 if (err == kSuccess) { in arm_vm_prot_init()
|
| /xnu-11215.81.4/pexpert/pexpert/ |
| H A D | device_tree.h | 129 kSuccess = 1 enumerator
|
| /xnu-11215.81.4/bsd/dev/arm64/ |
| H A D | sysctl.c | 233 if (kSuccess != SecureDTLookupEntry(0, "/product", &node)) { in sysctl_load_brand_string() 237 if (kSuccess != SecureDTGetProperty(node, "product-soc-name", (void const **) &value, &size)) { in sysctl_load_brand_string()
|
| /xnu-11215.81.4/osfmk/arm64/ |
| H A D | cpu.c | 1211 if (kSuccess == SecureDTLookupEntry(NULL, "/chosen", &entry)) { in cpu_machine_idle_init() 1215 if (kSuccess == SecureDTGetProperty(entry, "effective-production-status-ap", &prop, &size)) { in cpu_machine_idle_init() 1279 if (kSuccess != SecureDTLookupEntry(0, "stram", &entry)) { in sleep_token_buffer_init() 1283 if (kSuccess != SecureDTGetProperty(entry, "reg", (const void **)&prop, (unsigned int *)&size)) { in sleep_token_buffer_init()
|
| H A D | machine_routines.c | 1015 if (SecureDTGetProperty(entry, propertyName, &prop, &propSize) == kSuccess) { in ml_readprop() 1041 if (SecureDTGetProperty(entry, propertyName, (void const **)&prop, &propSize) != kSuccess) { in ml_read_reg_range() 1060 if (SecureDTGetProperty(entry, "state", &prop, &propSize) != kSuccess) { in ml_is_boot_cpu() 1112 if ((SecureDTFindEntry("name", "arm-io", &entryP) == kSuccess)) { in ml_read_chip_revision() 1141 assert(err == kSuccess); in ml_parse_cpu_topology() 1144 assert(err == kSuccess); in ml_parse_cpu_topology() 1152 while (kSuccess == SecureDTIterateEntries(&iter, &child)) { in ml_parse_cpu_topology()
|
| /xnu-11215.81.4/osfmk/arm64/sptm/pmap/ |
| H A D | pmap_data.c | 1118 assert(err == kSuccess); in pmap_compute_pv_targets() 1120 if (kSuccess == SecureDTGetProperty(entry, "pmap-pv-count", &prop, &prop_size)) { in pmap_compute_pv_targets() 1127 if (kSuccess == SecureDTGetProperty(entry, "pmap-kern-pv-count", &prop, &prop_size)) { in pmap_compute_pv_targets() 1134 if (kSuccess == SecureDTGetProperty(entry, "pmap-kern-pv-min", &prop, &prop_size)) { in pmap_compute_pv_targets()
|