/illumos-gate/usr/src/cmd/picl/plugins/sun4u/cherrystone/frutree/ |
H A D | piclfrutree.c | 288 do_ioboard_init(picl_nodehdl_t rooth) in do_ioboard_init() argument 309 err = ptree_add_node(rooth, iobrdh); in do_ioboard_init() 322 do_rscboard_init(picl_nodehdl_t rooth) in do_rscboard_init() argument 343 err = ptree_add_node(rooth, rscbrdh); in do_rscboard_init() 356 do_fcal_init(picl_nodehdl_t rooth) in do_fcal_init() argument 373 err = ptree_add_node(rooth, fcalsloth); in do_fcal_init() 406 do_power_supplies_init(picl_nodehdl_t rooth) in do_power_supplies_init() argument 429 err = ptree_add_node(rooth, powerbrdh); in do_power_supplies_init() 489 do_centerplane_init(picl_nodehdl_t rooth) in do_centerplane_init() argument 513 err = ptree_add_node(rooth, sysboardh); in do_centerplane_init() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/littleneck/frutree/ |
H A D | piclfrutree.c | 252 do_sysboard_init(picl_nodehdl_t rooth, picl_nodehdl_t *childh) in do_sysboard_init() argument 272 err = ptree_add_node(rooth, *childh); in do_sysboard_init() 286 do_cpus_init(picl_nodehdl_t rooth) in do_cpus_init() argument 307 err = ptree_add_node(rooth, cpusloth); in do_cpus_init() 340 do_mem_init(picl_nodehdl_t rooth) in do_mem_init() argument 362 err = ptree_add_node(rooth, memsloth); in do_mem_init() 395 do_power_supplies_init(picl_nodehdl_t rooth) in do_power_supplies_init() argument 418 err = ptree_add_node(rooth, powerbrdh); in do_power_supplies_init() 478 do_fcal_init(picl_nodehdl_t rooth) in do_fcal_init() argument 499 err = ptree_add_node(rooth, fcalbrdh); in do_fcal_init() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/daktari/frutree/ |
H A D | piclfrutree.c | 349 do_ioboard_init(picl_nodehdl_t rooth) in do_ioboard_init() argument 370 err = ptree_add_node(rooth, iobrdh); in do_ioboard_init() 383 do_rscboard_init(picl_nodehdl_t rooth) in do_rscboard_init() argument 404 err = ptree_add_node(rooth, rscbrdh); in do_rscboard_init() 417 do_fcal_init(picl_nodehdl_t rooth) in do_fcal_init() argument 441 err = ptree_add_node(rooth, fcalsloth); in do_fcal_init() 487 err = ptree_add_node(rooth, fcalgbich); in do_fcal_init() 500 do_power_supplies_init(picl_nodehdl_t rooth) in do_power_supplies_init() argument 523 err = ptree_add_node(rooth, powerbrdh); in do_power_supplies_init() 583 do_motherboard_init(picl_nodehdl_t rooth) in do_motherboard_init() argument [all …]
|
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | pdevinfo_sun4v.c | 83 picl_nodehdl_t rooth; /* root PICL node for IO display */ in do_prominfo() local 125 err = picl_get_root(&rooth); in do_prominfo() 131 err = sun4v_get_node_by_name(rooth, PICL_NODE_PLATFORM, &plafh); in do_prominfo() 239 sun4v_get_node_by_name(picl_nodehdl_t rooth, char *name, in sun4v_get_node_by_name() argument 250 err = picl_get_propval_by_name(rooth, PICL_PROP_CHILD, &childh, in sun4v_get_node_by_name()
|
H A D | display_sun4v.c | 91 static picl_nodehdl_t rooth = 0, phyplatformh = 0; variable 171 if (picl_get_root(&rooth) != PICL_SUCCESS) in sun4v_display() 178 if (sun4v_get_node_by_name(rooth, PICL_NODE_PHYSICAL_PLATFORM, in sun4v_display() 1963 (void) picl_walk_tree_by_class(rooth, "openprom", NULL, in sun4v_print_openprom_rev() 1976 (void) picl_walk_tree_by_class(rooth, "openprom", NULL, in sun4v_print_openprom_rev()
|
/illumos-gate/usr/src/cmd/picl/plugins/common/frutree/ |
H A D | piclfrutree.c | 121 picl_nodehdl_t rooth; in piclfrutree_init() local 126 if (ptree_get_root(&rooth) != PICL_SUCCESS) in piclfrutree_init() 129 if (picld_pluginutil_parse_config_file(rooth, fullfilename) != in piclfrutree_init()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/taco/envd/ |
H A D | piclenvsetup.c | 589 env_parse_tunables(picl_nodehdl_t rooth) in env_parse_tunables() argument 598 (void) picld_pluginutil_parse_config_file(rooth, pname); in env_parse_tunables() 610 picl_nodehdl_t rooth; in env_picl_setup_tuneables() local 615 if (ptree_get_root(&rooth) != PICL_SUCCESS) { in env_picl_setup_tuneables() 618 err = ptree_create_and_add_node(rooth, PICL_PLUGINS_NODE, in env_picl_setup_tuneables() 631 env_parse_tunables(rooth); in env_picl_setup_tuneables() 713 picl_nodehdl_t rooth; in env_picl_setup() local 761 if (ptree_get_root(&rooth) != PICL_SUCCESS) in env_picl_setup() 763 err = picld_pluginutil_parse_config_file(rooth, fullfilename); in env_picl_setup()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/enchilada/envd/ |
H A D | piclenvsetup.c | 807 env_parse_tunables(picl_nodehdl_t rooth) in env_parse_tunables() argument 816 (void) picld_pluginutil_parse_config_file(rooth, pname); in env_parse_tunables() 828 picl_nodehdl_t rooth; in env_picl_setup_tuneables() local 833 if (ptree_get_root(&rooth) != PICL_SUCCESS) { in env_picl_setup_tuneables() 836 err = ptree_create_and_add_node(rooth, PICL_PLUGINS_NODE, in env_picl_setup_tuneables() 849 env_parse_tunables(rooth); in env_picl_setup_tuneables() 934 picl_nodehdl_t rooth; in env_picl_setup() local 1001 if (ptree_get_root(&rooth) != PICL_SUCCESS) in env_picl_setup() 1003 err = picld_pluginutil_parse_config_file(rooth, fullfilename); in env_picl_setup()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/chicago/envd/ |
H A D | piclenvsetup.c | 808 env_parse_tunables(picl_nodehdl_t rooth) in env_parse_tunables() argument 817 (void) picld_pluginutil_parse_config_file(rooth, pname); in env_parse_tunables() 829 picl_nodehdl_t rooth; in env_picl_setup_tuneables() local 834 if (ptree_get_root(&rooth) != PICL_SUCCESS) { in env_picl_setup_tuneables() 837 err = ptree_create_and_add_node(rooth, PICL_PLUGINS_NODE, in env_picl_setup_tuneables() 852 env_parse_tunables(rooth); in env_picl_setup_tuneables() 939 picl_nodehdl_t rooth; in env_picl_setup() local 1012 if (ptree_get_root(&rooth) != PICL_SUCCESS) in env_picl_setup() 1014 err = picld_pluginutil_parse_config_file(rooth, fullfilename); in env_picl_setup()
|
/illumos-gate/usr/src/lib/libpicltree/ |
H A D | picltree.h | 123 extern int ptree_create_and_add_node(picl_nodehdl_t rooth, 128 extern int ptree_walk_tree_by_class(picl_nodehdl_t rooth, 131 extern int ptree_find_node(picl_nodehdl_t rooth, char *pname,
|
H A D | picltree.c | 1194 ptree_get_root(picl_nodehdl_t *rooth) in ptree_get_root() argument 1196 *rooth = ptree_root_hdl; in ptree_get_root() 2780 get_child_by_path(picl_nodehdl_t rooth, char *prl, in get_child_by_path() argument 2827 for (err = ptree_get_propval_by_name(rooth, PICL_PROP_CHILD, &chdh, in get_child_by_path() 2899 picl_nodehdl_t rooth; in ptree_get_node_by_path() local 2929 err = ptree_get_root(&rooth); in ptree_get_node_by_path() 2933 for (chdh = rooth, tokindex = strchr(ptr, '/'); in ptree_get_node_by_path() 3027 ptree_create_and_add_node(picl_nodehdl_t rooth, const char *name, in ptree_create_and_add_node() argument 3038 err = ptree_add_node(rooth, tmph); in ptree_create_and_add_node() 3053 do_walk(picl_nodehdl_t rooth, const char *classname, in do_walk() argument [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/opl/common/ |
H A D | opl_picl.c | 60 static picl_errno_t do_walk(picl_nodehdl_t rooth, const char *classname, 62 static int opl_get_node_by_name(picl_nodehdl_t rooth, char *name, 475 picl_nodehdl_t rooth; /* root PICL node for IO display */ in do_piclinfo() local 488 err = picl_get_root(&rooth); in do_piclinfo() 495 err = opl_get_node_by_name(rooth, PICL_NODE_PLATFORM, &plafh); in do_piclinfo() 514 opl_get_node_by_name(picl_nodehdl_t rooth, char *name, in opl_get_node_by_name() argument 525 err = picl_get_propval_by_name(rooth, PICL_PROP_CHILD, &childh, in opl_get_node_by_name() 878 do_walk(picl_nodehdl_t rooth, const char *classname, in do_walk() argument 885 err = picl_get_propval_by_name(rooth, PICL_PROP_CHILD, &chdh, in do_walk()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/pri/ |
H A D | io_dev_label.c | 30 find_node_by_string_prop(picl_nodehdl_t rooth, const char *pname, 277 find_node_by_string_prop(picl_nodehdl_t rooth, const char *pname, in find_node_by_string_prop() argument 283 for (err = ptree_get_propval_by_name(rooth, PICL_PROP_CHILD, &childh, in find_node_by_string_prop()
|
/illumos-gate/usr/src/lib/libpicl/ |
H A D | picl.c | 328 picl_get_root(picl_nodehdl_t *rooth) in picl_get_root() argument 343 *rooth = ret->ret_root.rnode; in picl_get_root() 705 do_walk(picl_nodehdl_t rooth, const char *classname, in do_walk() argument 712 err = picl_get_propval_by_name(rooth, PICL_PROP_CHILD, &chdh, in do_walk() 744 picl_walk_tree_by_class(picl_nodehdl_t rooth, const char *classname, in picl_walk_tree_by_class() argument 751 err = do_walk(rooth, classname, c_args, callback_fn); in picl_walk_tree_by_class() 810 picl_find_node(picl_nodehdl_t rooth, char *pname, picl_prop_type_t ptype, in picl_find_node() argument 821 req->nodeh = rooth; in picl_find_node()
|
H A D | picl.h | 152 extern int picl_walk_tree_by_class(picl_nodehdl_t rooth, 158 extern int picl_find_node(picl_nodehdl_t rooth, char *pname,
|
/illumos-gate/usr/src/cmd/locator/ |
H A D | locator.c | 196 picl_nodehdl_t rooth; in main() local 240 err = picl_get_root(&rooth); in main() 260 err = picl_walk_tree_by_class(rooth, "led", &locator_info, in main()
|
/illumos-gate/usr/src/cmd/picl/prtpicl/ |
H A D | prtpicl.c | 514 picl_nodehdl_t rooth; in main() local 558 err = picl_get_root(&rooth); in main() 565 err = print_tree_by_class(ROOT_LEVEL, rooth, in main()
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd.c | 382 di_node_t rooth = DI_NODE_NIL; in fmd_create() local 401 } else if ((rooth = di_init("/", DINFOPROP)) != DI_NODE_NIL && in fmd_create() 403 if (di_prom_prop_lookup_bytes(promh, rooth, "chassis-sn", in fmd_create() 411 if (rooth != DI_NODE_NIL) in fmd_create() 412 di_fini(rooth); in fmd_create()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/ |
H A D | piclfrudr.c | 1670 picl_nodehdl_t rooth; in fru_add_handler() local 1705 retval = ptree_get_node_by_path(FRUTREE_PATH, &rooth); in fru_add_handler() 1707 remove_tables(rooth); in fru_add_handler() 1723 if ((ptree_get_root(&rooth) != PICL_SUCCESS) || in fru_add_handler() 1724 (picld_pluginutil_parse_config_file(rooth, path) != in fru_add_handler() 1742 picl_nodehdl_t rooth; in frutree_evhandler() local 1794 if ((ptree_get_root(&rooth) != PICL_SUCCESS) || in frutree_evhandler() 1795 (picld_pluginutil_parse_config_file(rooth, in frutree_evhandler() 1844 if ((ptree_get_root(&rooth) != PICL_SUCCESS) || in frutree_evhandler() 1845 (picld_pluginutil_parse_config_file(rooth, path) != in frutree_evhandler()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/envd/ |
H A D | piclenvsetup.c | 787 picl_nodehdl_t rooth; in env_picl_setup() local 830 if (ptree_get_root(&rooth) != PICL_SUCCESS) in env_picl_setup() 832 err = picld_pluginutil_parse_config_file(rooth, fullfilename); in env_picl_setup()
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/schumacher/common/ |
H A D | schumacher.c | 195 picldiag_get_node_by_name(picl_nodehdl_t rooth, char *name, in picldiag_get_node_by_name() argument 206 err = picl_get_propval_by_name(rooth, PICL_PROP_CHILD, &childh, in picldiag_get_node_by_name() 1954 process_io_leaves(picl_nodehdl_t rooth) in process_io_leaves() argument 1960 err = picl_get_propval_by_name(rooth, PICL_PROP_CHILD, &nodeh, in process_io_leaves() 3144 display_system_info(int serrlog, int log_flag, picl_nodehdl_t rooth) in display_system_info() argument 3150 err = picldiag_get_node_by_name(rooth, PICL_NODE_PLATFORM, &plafh); in display_system_info() 3186 err = picl_walk_tree_by_class(rooth, PICL_CLASS_OPTIONS, in display_system_info() 3191 err = picldiag_get_node_by_name(rooth, PICL_NODE_FRUTREE, in display_system_info() 3222 picl_nodehdl_t rooth; in do_prominfo() local 3232 err = picl_get_root(&rooth); in do_prominfo() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/excalibur/envd/ |
H A D | piclenvsetup.c | 835 picl_nodehdl_t rooth; in env_picl_setup() local 885 if (ptree_get_root(&rooth) != PICL_SUCCESS) in env_picl_setup() 887 err = picld_pluginutil_parse_config_file(rooth, fullfilename); in env_picl_setup()
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/desktop/common/ |
H A D | picldiag.c | 235 picldiag_get_node_by_name(picl_nodehdl_t rooth, char *name, in picldiag_get_node_by_name() argument 246 err = picl_get_propval_by_name(rooth, PICL_PROP_CHILD, &childh, in picldiag_get_node_by_name() 2280 process_io_leaves(picl_nodehdl_t rooth) in process_io_leaves() argument 2286 err = picl_get_propval_by_name(rooth, PICL_PROP_CHILD, &nodeh, in process_io_leaves() 3568 display_system_info(int serrlog, int log_flag, picl_nodehdl_t rooth) in display_system_info() argument 3574 err = picldiag_get_node_by_name(rooth, PICL_NODE_PLATFORM, &plafh); in display_system_info() 3610 err = picl_walk_tree_by_class(rooth, PICL_CLASS_OPTIONS, in display_system_info() 3619 err = picldiag_get_node_by_name(rooth, PICL_NODE_FRUTREE, in display_system_info() 3657 picl_nodehdl_t rooth; in do_prominfo() local 3667 err = picl_get_root(&rooth); in do_prominfo() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/lw8/common/ |
H A D | lw8.c | 230 picldiag_get_node_by_name(picl_nodehdl_t rooth, char *name, in picldiag_get_node_by_name() argument 241 err = picl_get_propval_by_name(rooth, PICL_PROP_CHILD, &childh, in picldiag_get_node_by_name() 2265 process_io_leaves(picl_nodehdl_t rooth) in process_io_leaves() argument 2271 err = picl_get_propval_by_name(rooth, PICL_PROP_CHILD, &nodeh, in process_io_leaves() 3536 display_system_info(int serrlog, int log_flag, picl_nodehdl_t rooth) in display_system_info() argument 3542 err = picldiag_get_node_by_name(rooth, PICL_NODE_PLATFORM, &plafh); in display_system_info() 3578 err = picl_walk_tree_by_class(rooth, PICL_CLASS_OPTIONS, in display_system_info() 3587 err = picldiag_get_node_by_name(rooth, PICL_NODE_FRUTREE, in display_system_info() 3621 picl_nodehdl_t rooth; in do_prominfo() local 3631 err = picl_get_root(&rooth); in do_prominfo() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/ |
H A D | picldevtree.c | 747 find_node_by_string_prop(picl_nodehdl_t rooth, const char *pname, in find_node_by_string_prop() argument 753 for (err = ptree_get_propval_by_name(rooth, PICL_PROP_CHILD, &childh, in find_node_by_string_prop() 1394 construct_picl_openprom(picl_nodehdl_t rooth, picl_nodehdl_t *obph) in construct_picl_openprom() argument 1399 err = ptree_create_and_add_node(rooth, PICL_NODE_OBP, in construct_picl_openprom() 1414 construct_picl_platform(picl_nodehdl_t rooth, di_node_t di_root, in construct_picl_platform() argument 1436 err = ptree_create_and_add_node(rooth, PICL_NODE_PLATFORM, in construct_picl_platform() 1800 libdevinfo_init(picl_nodehdl_t rooth) in libdevinfo_init() argument 1837 err = construct_picl_platform(rooth, di_root, &plafh); in libdevinfo_init() 1843 err = construct_picl_openprom(rooth, &obph); in libdevinfo_init() 2209 add_ffb_config_info(picl_nodehdl_t rooth) in add_ffb_config_info() argument [all …]
|