Lines Matching refs:prom

148 static struct prom_t __prombss prom;  variable
445 if (prom.stdout == 0) in prom_print()
452 call_prom("write", 3, 1, prom.stdout, p, q - p); in prom_print()
456 call_prom("write", 3, 1, prom.stdout, ADDR("\r\n"), 2); in prom_print()
477 call_prom("write", 3, 1, prom.stdout, buf, nibbles); in prom_print_hex()
495 call_prom("write", 3, 1, prom.stdout, buf+i, size); in prom_print_dec()
512 call_prom("write", 3, 1, prom.stdout, p, q - p); in prom_printf()
517 call_prom("write", 3, 1, prom.stdout, in prom_printf()
605 ADDR("claim"), prom.memory, in prom_claim()
610 ADDR("claim"), prom.mmumap, in prom_claim()
614 prom.memory, size, virt); in prom_claim()
619 ADDR("map"), prom.mmumap, 0x12, size, virt, virt); in prom_claim()
793 if (!IS_ENABLED(CONFIG_CMDLINE_FORCE) && (long)prom.chosen > 0) in early_cmdline_parse()
794 l = prom_getprop(prom.chosen, "bootargs", p, COMMAND_LINE_SIZE-1); in early_cmdline_parse()
1340 int prop_len = prom_getproplen(prom.chosen, in prom_check_platform_support()
1362 prom_getprop(prom.chosen, "ibm,arch-vec-5-platform-support", &vec, sizeof(vec)); in prom_check_platform_support()
1660 prom_getprop(prom.root, "#address-cells", &val, sizeof(val)); in prom_init_mem()
1663 prom_getprop(prom.root, "#size-cells", &val, sizeof(rsc)); in prom_init_mem()
1778 if (prom_getprop(prom.chosen, "stdin", &val, sizeof(val)) > 0) { in prom_close_stdin()
2186 if (cpu_no != prom.cpu) { in prom_hold_cpus()
2217 prom.chosen = call_prom("finddevice", 1, 1, ADDR("/chosen")); in prom_init_client_services()
2218 if (!PHANDLE_VALID(prom.chosen)) in prom_init_client_services()
2222 prom.root = call_prom("finddevice", 1, 1, ADDR("/")); in prom_init_client_services()
2223 if (!PHANDLE_VALID(prom.root)) in prom_init_client_services()
2226 prom.mmumap = 0; in prom_init_client_services()
2254 prom.memory = call_prom("open", 1, 1, ADDR("/memory")); in prom_find_mmu()
2255 prom_getprop(prom.chosen, "mmu", &prom.mmumap, in prom_find_mmu()
2256 sizeof(prom.mmumap)); in prom_find_mmu()
2257 prom.mmumap = be32_to_cpu(prom.mmumap); in prom_find_mmu()
2258 if (!IHANDLE_VALID(prom.memory) || !IHANDLE_VALID(prom.mmumap)) in prom_find_mmu()
2272 if (prom_getprop(prom.chosen, "stdout", &val, sizeof(val)) <= 0) in prom_init_stdout()
2275 prom.stdout = be32_to_cpu(val); in prom_init_stdout()
2279 call_prom("instance-to-path", 3, 1, prom.stdout, path, 255); in prom_init_stdout()
2281 prom_setprop(prom.chosen, "/chosen", "linux,stdout-path", in prom_init_stdout()
2285 stdout_node = call_prom("instance-to-package", 1, 1, prom.stdout); in prom_init_stdout()
2307 len = prom_getprop(prom.root, "compatible", in prom_find_machine_type()
2338 len = prom_getprop(prom.root, "device_type", in prom_find_machine_type()
2752 hdr->boot_cpuid_phys = cpu_to_be32(prom.cpu); in flatten_device_tree()
2847 prom_getprop(prom.root, "#address-cells", &ac, sizeof(ac)); in fixup_device_tree_maple_memory_controller()
2848 prom_getprop(prom.root, "#size-cells", &sc, sizeof(sc)); in fixup_device_tree_maple_memory_controller()
3203 if (prom_getprop(prom.chosen, "cpu", &rval, sizeof(rval)) <= 0) in prom_find_boot_cpu()
3213 prom.cpu = be32_to_cpu(rval); in prom_find_boot_cpu()
3215 prom_debug("Booting CPU hw index = %d\n", prom.cpu); in prom_find_boot_cpu()
3228 prom_setprop(prom.chosen, "/chosen", "linux,initrd-start", in prom_check_initrd()
3231 prom_setprop(prom.chosen, "/chosen", "linux,initrd-end", in prom_check_initrd()
3425 prom_setprop(prom.chosen, "/chosen", "linux,memory-limit", in prom_init()
3430 prom_setprop(prom.chosen, "/chosen", "linux,iommu-off", in prom_init()
3434 prom_setprop(prom.chosen, "/chosen", "linux,iommu-force-on", in prom_init()
3438 prom_setprop(prom.chosen, "/chosen", "linux,tce-alloc-start", in prom_init()
3441 prom_setprop(prom.chosen, "/chosen", "linux,tce-alloc-end", in prom_init()