Lines Matching refs:call_prom

387 static int __init call_prom(const char *service, int nargs, int nret, ...)  in call_prom()  function
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()
613 call_prom("call-method", 4, 1, ADDR("release"), in prom_claim()
618 call_prom("call-method", 6, 1, in prom_claim()
622 return call_prom("claim", 3, 1, (prom_arg_t)virt, (prom_arg_t)size, in prom_claim()
635 call_prom("exit", 0, 0); in prom_panic()
647 && (*nodep = call_prom("child", 1, 1, node)) != 0) in prom_next_node()
649 if ((*nodep = call_prom("peer", 1, 1, node)) != 0) in prom_next_node()
652 if ((node = call_prom("parent", 1, 1, node)) == 0) in prom_next_node()
654 if ((*nodep = call_prom("peer", 1, 1, node)) != 0) in prom_next_node()
662 return call_prom("getprop", 4, 1, node, ADDR(pname), in prom_getprop()
668 return call_prom("getproplen", 2, 1, node, ADDR(pname)); in prom_getproplen()
703 return call_prom("setprop", 4, 1, node, ADDR(pname), in prom_setprop()
716 return call_prom("interpret", 1, 1, (u32)(unsigned long) cmd); in prom_setprop()
1410 root = call_prom("open", 1, 1, ADDR("/")); in prom_send_capabilities()
1435 call_prom("close", 1, 0, root); in prom_send_capabilities()
1439 call_prom("close", 1, 0, root); in prom_send_capabilities()
1448 elfloader = call_prom("open", 1, 1, in prom_send_capabilities()
1454 call_prom("call-method", 3, 1, ADDR("process-elf-header"), in prom_send_capabilities()
1456 call_prom("close", 1, 0, elfloader); in prom_send_capabilities()
1702 call_prom("package-to-path", 3, 1, node, prom_scratch, in prom_init_mem()
1788 call_prom("close", 1, 0, stdin); in prom_close_stdin()
1815 rtas_node = call_prom("finddevice", 1, 1, ADDR("/rtas")); in prom_rtas_os_term()
1847 rtas_node = call_prom("finddevice", 1, 1, ADDR("/rtas")); in prom_instantiate_rtas()
1862 rtas_inst = call_prom("open", 1, 1, ADDR("/rtas")); in prom_instantiate_rtas()
1914 ibmvtpm_node = call_prom("finddevice", 1, 1, ADDR("/vdevice/vtpm")); in prom_instantiate_sml()
1919 ibmvtpm_inst = call_prom("open", 1, 1, ADDR("/vdevice/vtpm")); in prom_instantiate_sml()
2055 if (call_prom("package-to-path", 3, 1, node, in prom_initialize_tce_table()
2080 phb_node = call_prom("open", 1, 1, path); in prom_initialize_tce_table()
2086 call_prom("call-method", 6, 0, ADDR("set-64-bit-addressing"), in prom_initialize_tce_table()
2089 call_prom("close", 1, 0, phb_node); in prom_initialize_tce_table()
2197 call_prom("start-cpu", 3, 0, node, in prom_hold_cpus()
2225 prom.chosen = call_prom("finddevice", 1, 1, ADDR("/chosen")); in prom_init_client_services()
2230 prom.root = call_prom("finddevice", 1, 1, ADDR("/")); in prom_init_client_services()
2248 oprom = call_prom("finddevice", 1, 1, ADDR("/openprom")); in prom_find_mmu()
2259 call_prom("interpret", 1, 1, "dev /memory 0 to allow-reclaim"); in prom_find_mmu()
2262 prom.memory = call_prom("open", 1, 1, ADDR("/memory")); in prom_find_mmu()
2287 call_prom("instance-to-path", 3, 1, prom.stdout, path, 255); in prom_init_stdout()
2293 stdout_node = call_prom("instance-to-package", 1, 1, prom.stdout); in prom_init_stdout()
2354 rtas = call_prom("finddevice", 1, 1, ADDR("/rtas")); in prom_find_machine_type()
2370 return call_prom("call-method", 6, 1, ADDR("color!"), ih, i, b, g, r); in prom_set_color()
2423 if (call_prom("package-to-path", 3, 1, node, path, in prom_check_displays()
2428 ih = call_prom("open", 1, 1, path); in prom_check_displays()
2554 if (call_prom("nextprop", 3, 1, node, prev_name, namep) != 1) { in scan_dt_build_strings()
2580 child = call_prom("child", 1, 1, node); in scan_dt_build_strings()
2583 child = call_prom("peer", 1, 1, child); in scan_dt_build_strings()
2604 l = call_prom("package-to-path", 3, 1, node, namep, room); in scan_dt_build_struct()
2610 call_prom("package-to-path", 3, 1, node, namep, l); in scan_dt_build_struct()
2631 call_prom("package-to-path", 3, 1, node, path, sizeof(prom_scratch) - 1); in scan_dt_build_struct()
2637 if (call_prom("nextprop", 3, 1, node, prev_name, in scan_dt_build_struct()
2657 l = call_prom("getproplen", 2, 1, node, pname); in scan_dt_build_struct()
2670 call_prom("getprop", 4, 1, node, pname, valp, l); in scan_dt_build_struct()
2692 child = call_prom("child", 1, 1, node); in scan_dt_build_struct()
2695 child = call_prom("peer", 1, 1, child); in scan_dt_build_struct()
2725 root = call_prom("peer", 1, 1, (phandle)0); in flatten_device_tree()
2806 isa = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_maple()
2809 isa = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_maple()
2848 mc = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_maple_memory_controller()
2894 ph = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_chrp()
2897 ph = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_chrp()
2916 ph = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_chrp()
2943 u3 = call_prom("finddevice", 1, 1, ADDR("/u3@0,f8000000")); in fixup_device_tree_pmac()
2946 i2c = call_prom("finddevice", 1, 1, ADDR("/u3@0,f8000000/i2c@f8001000")); in fixup_device_tree_pmac()
2949 mpic = call_prom("finddevice", 1, 1, ADDR("/u3@0,f8000000/mpic@f8040000")); in fixup_device_tree_pmac()
2992 node = call_prom("finddevice", 1, 1, ADDR("/builtin/ethernet")); in fixup_device_tree_efika_add_phy()
3007 node = call_prom("finddevice", 1, 1, ADDR("/builtin/mdio")); in fixup_device_tree_efika_add_phy()
3010 call_prom("interpret", 1, 1, in fixup_device_tree_efika_add_phy()
3028 node = call_prom("finddevice", 1, 1, in fixup_device_tree_efika_add_phy()
3032 call_prom("interpret", 1, 1, in fixup_device_tree_efika_add_phy()
3059 node = call_prom("finddevice", 1, 1, ADDR("/")); in fixup_device_tree_efika()
3072 node = call_prom("finddevice", 1, 1, ADDR("/")); in fixup_device_tree_efika()
3086 node = call_prom("finddevice", 1, 1, ADDR("/builtin/bestcomm")); in fixup_device_tree_efika()
3097 node = call_prom("finddevice", 1, 1, ADDR("/builtin/sound")); in fixup_device_tree_efika()
3129 iob = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_pasemi()
3142 node = call_prom("finddevice", 1, 1, ADDR(pci_name)); in fixup_device_tree_pasemi()
3180 iob = call_prom("finddevice", 1, 1, ADDR(name)); in fixup_device_tree_pasemi()
3215 cpu_pkg = call_prom("instance-to-package", 1, 1, prom_cpu); in prom_find_boot_cpu()
3479 call_prom("quiesce", 0, 0); in prom_init()