Lines Matching refs:call_prom

393 static int __init call_prom(const char *service, int nargs, int nret, ...)  in call_prom()  function
458 call_prom("write", 3, 1, prom.stdout, p, q - p); in prom_print()
462 call_prom("write", 3, 1, prom.stdout, ADDR("\r\n"), 2); in prom_print()
483 call_prom("write", 3, 1, prom.stdout, buf, nibbles); in prom_print_hex()
501 call_prom("write", 3, 1, prom.stdout, buf+i, size); in prom_print_dec()
518 call_prom("write", 3, 1, prom.stdout, p, q - p); in prom_printf()
523 call_prom("write", 3, 1, prom.stdout, in prom_printf()
619 call_prom("call-method", 4, 1, ADDR("release"), in prom_claim()
624 call_prom("call-method", 6, 1, in prom_claim()
628 return call_prom("claim", 3, 1, (prom_arg_t)virt, (prom_arg_t)size, in prom_claim()
641 call_prom("exit", 0, 0); in prom_panic()
653 && (*nodep = call_prom("child", 1, 1, node)) != 0) in prom_next_node()
655 if ((*nodep = call_prom("peer", 1, 1, node)) != 0) in prom_next_node()
658 if ((node = call_prom("parent", 1, 1, node)) == 0) in prom_next_node()
660 if ((*nodep = call_prom("peer", 1, 1, node)) != 0) in prom_next_node()
668 return call_prom("getprop", 4, 1, node, ADDR(pname), in prom_getprop()
674 return call_prom("getproplen", 2, 1, node, ADDR(pname)); in prom_getproplen()
709 return call_prom("setprop", 4, 1, node, ADDR(pname), in prom_setprop()
722 return call_prom("interpret", 1, 1, (u32)(unsigned long) cmd); in prom_setprop()
1408 root = call_prom("open", 1, 1, ADDR("/")); in prom_send_capabilities()
1433 call_prom("close", 1, 0, root); in prom_send_capabilities()
1437 call_prom("close", 1, 0, root); in prom_send_capabilities()
1446 elfloader = call_prom("open", 1, 1, in prom_send_capabilities()
1452 call_prom("call-method", 3, 1, ADDR("process-elf-header"), in prom_send_capabilities()
1454 call_prom("close", 1, 0, elfloader); in prom_send_capabilities()
1700 call_prom("package-to-path", 3, 1, node, prom_scratch, in prom_init_mem()
1786 call_prom("close", 1, 0, stdin); in prom_close_stdin()
1813 rtas_node = call_prom("finddevice", 1, 1, ADDR("/rtas")); in prom_rtas_os_term()
1845 rtas_node = call_prom("finddevice", 1, 1, ADDR("/rtas")); in prom_instantiate_rtas()
1860 rtas_inst = call_prom("open", 1, 1, ADDR("/rtas")); in prom_instantiate_rtas()
1912 ibmvtpm_node = call_prom("finddevice", 1, 1, ADDR("/vdevice/vtpm")); in prom_instantiate_sml()
1917 ibmvtpm_inst = call_prom("open", 1, 1, ADDR("/vdevice/vtpm")); in prom_instantiate_sml()
2053 if (call_prom("package-to-path", 3, 1, node, in prom_initialize_tce_table()
2078 phb_node = call_prom("open", 1, 1, path); in prom_initialize_tce_table()
2084 call_prom("call-method", 6, 0, ADDR("set-64-bit-addressing"), in prom_initialize_tce_table()
2087 call_prom("close", 1, 0, phb_node); in prom_initialize_tce_table()
2195 call_prom("start-cpu", 3, 0, node, in prom_hold_cpus()
2223 prom.chosen = call_prom("finddevice", 1, 1, ADDR("/chosen")); in prom_init_client_services()
2228 prom.root = call_prom("finddevice", 1, 1, ADDR("/")); in prom_init_client_services()
2246 oprom = call_prom("finddevice", 1, 1, ADDR("/openprom")); in prom_find_mmu()
2257 call_prom("interpret", 1, 1, "dev /memory 0 to allow-reclaim"); in prom_find_mmu()
2260 prom.memory = call_prom("open", 1, 1, ADDR("/memory")); in prom_find_mmu()
2285 call_prom("instance-to-path", 3, 1, prom.stdout, path, 255); in prom_init_stdout()
2291 stdout_node = call_prom("instance-to-package", 1, 1, prom.stdout); in prom_init_stdout()
2352 rtas = call_prom("finddevice", 1, 1, ADDR("/rtas")); in prom_find_machine_type()
2368 return call_prom("call-method", 6, 1, ADDR("color!"), ih, i, b, g, r); in prom_set_color()
2421 if (call_prom("package-to-path", 3, 1, node, path, in prom_check_displays()
2426 ih = call_prom("open", 1, 1, path); in prom_check_displays()
2552 if (call_prom("nextprop", 3, 1, node, prev_name, namep) != 1) { in scan_dt_build_strings()
2578 child = call_prom("child", 1, 1, node); in scan_dt_build_strings()
2581 child = call_prom("peer", 1, 1, child); in scan_dt_build_strings()
2602 l = call_prom("package-to-path", 3, 1, node, namep, room); in scan_dt_build_struct()
2608 call_prom("package-to-path", 3, 1, node, namep, l); in scan_dt_build_struct()
2629 call_prom("package-to-path", 3, 1, node, path, sizeof(prom_scratch) - 1); in scan_dt_build_struct()
2635 if (call_prom("nextprop", 3, 1, node, prev_name, in scan_dt_build_struct()
2655 l = call_prom("getproplen", 2, 1, node, pname); in scan_dt_build_struct()
2668 call_prom("getprop", 4, 1, node, pname, valp, l); in scan_dt_build_struct()
2690 child = call_prom("child", 1, 1, node); in scan_dt_build_struct()
2693 child = call_prom("peer", 1, 1, child); in scan_dt_build_struct()
2723 root = call_prom("peer", 1, 1, (phandle)0); in flatten_device_tree()
2804 isa = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_maple()
2807 isa = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_maple()
2846 mc = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_maple_memory_controller()
2892 ph = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_chrp()
2895 ph = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_chrp()
2914 ph = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_chrp()
2941 u3 = call_prom("finddevice", 1, 1, ADDR("/u3@0,f8000000")); in fixup_device_tree_pmac()
2944 i2c = call_prom("finddevice", 1, 1, ADDR("/u3@0,f8000000/i2c@f8001000")); in fixup_device_tree_pmac()
2947 mpic = call_prom("finddevice", 1, 1, ADDR("/u3@0,f8000000/mpic@f8040000")); in fixup_device_tree_pmac()
2990 node = call_prom("finddevice", 1, 1, ADDR("/builtin/ethernet")); in fixup_device_tree_efika_add_phy()
3005 node = call_prom("finddevice", 1, 1, ADDR("/builtin/mdio")); in fixup_device_tree_efika_add_phy()
3008 call_prom("interpret", 1, 1, in fixup_device_tree_efika_add_phy()
3026 node = call_prom("finddevice", 1, 1, in fixup_device_tree_efika_add_phy()
3030 call_prom("interpret", 1, 1, in fixup_device_tree_efika_add_phy()
3057 node = call_prom("finddevice", 1, 1, ADDR("/")); in fixup_device_tree_efika()
3070 node = call_prom("finddevice", 1, 1, ADDR("/")); in fixup_device_tree_efika()
3084 node = call_prom("finddevice", 1, 1, ADDR("/builtin/bestcomm")); in fixup_device_tree_efika()
3095 node = call_prom("finddevice", 1, 1, ADDR("/builtin/sound")); in fixup_device_tree_efika()
3127 iob = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_pasemi()
3140 node = call_prom("finddevice", 1, 1, ADDR(pci_name)); in fixup_device_tree_pasemi()
3178 iob = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_pasemi()
3213 cpu_pkg = call_prom("instance-to-package", 1, 1, prom_cpu); in prom_find_boot_cpu()
3477 call_prom("quiesce", 0, 0); in prom_init()