Lines Matching refs:nodeh
263 static int add_unitaddr_prop_to_subtree(picl_nodehdl_t nodeh);
264 static int get_unitaddr(picl_nodehdl_t parh, picl_nodehdl_t nodeh,
639 add_string_list_prop(picl_nodehdl_t nodeh, char *name, char *strlist, in add_string_list_prop() argument
663 err = ptree_create_and_add_prop(nodeh, &propinfo, &tblh, &proph); in add_string_list_prop()
705 compare_string_propval(picl_nodehdl_t nodeh, const char *pname, in compare_string_propval() argument
714 err = ptree_get_prop_by_name(nodeh, pname, &proph); in compare_string_propval()
741 const char *pval, picl_nodehdl_t *nodeh) in find_node_by_string_prop() argument
754 *nodeh = childh; in find_node_by_string_prop()
758 if (find_node_by_string_prop(childh, pname, pval, nodeh) == in find_node_by_string_prop()
832 process_charstring_data(picl_nodehdl_t nodeh, char *pname, unsigned char *pdata, in process_charstring_data() argument
859 err = add_string_list_prop(nodeh, pname, in process_charstring_data()
870 (void) ptree_create_and_add_prop(nodeh, &propinfo, in process_charstring_data()
880 add_openprom_props(picl_nodehdl_t nodeh, di_node_t di_node) in add_openprom_props() argument
910 (void) ptree_create_and_add_prop(nodeh, &propinfo, NULL, in add_openprom_props()
920 err = process_charstring_data(nodeh, pname, in add_openprom_props()
934 (void) ptree_create_and_add_prop(nodeh, &propinfo, in add_openprom_props()
955 (void) ptree_create_and_add_prop(nodeh, &propinfo, in add_openprom_props()
958 err = process_charstring_data(nodeh, pname, pdata, in add_openprom_props()
970 add_boolean_prop(picl_nodehdl_t nodeh, ptree_propinfo_t propinfo, char *di_val) in add_boolean_prop() argument
974 (void) ptree_create_and_add_prop(nodeh, &propinfo, NULL, NULL); in add_boolean_prop()
978 add_uints_prop(picl_nodehdl_t nodeh, ptree_propinfo_t propinfo, char *di_val, in add_uints_prop() argument
990 (void) ptree_create_and_add_prop(nodeh, &propinfo, idata, NULL); in add_uints_prop()
994 add_strings_prop(picl_nodehdl_t nodeh, ptree_propinfo_t propinfo, char *di_val, in add_strings_prop() argument
1001 (void) ptree_create_and_add_prop(nodeh, &propinfo, sdata, NULL); in add_strings_prop()
1003 (void) add_string_list_prop(nodeh, di_val, sdata, len); in add_strings_prop()
1008 add_bytes_prop(picl_nodehdl_t nodeh, ptree_propinfo_t propinfo, char *di_val, in add_bytes_prop() argument
1013 (void) ptree_create_and_add_prop(nodeh, &propinfo, bdata, NULL); in add_bytes_prop()
1051 mpnode = rarg->nodeh; in get_path_state_name()
1125 add_di_path_prop(picl_nodehdl_t nodeh, di_path_prop_t di_path_prop) in add_di_path_prop() argument
1140 add_boolean_prop(nodeh, propinfo, di_val); in add_di_path_prop()
1148 add_uints_prop(nodeh, propinfo, di_val, idata, len); in add_di_path_prop()
1154 add_strings_prop(nodeh, propinfo, di_val, sdata, len); in add_di_path_prop()
1160 add_bytes_prop(nodeh, propinfo, di_val, bdata, len); in add_di_path_prop()
1168 add_strings_prop(nodeh, propinfo, di_val, sdata, in add_di_path_prop()
1174 add_uints_prop(nodeh, propinfo, di_val, in add_di_path_prop()
1180 add_bytes_prop(nodeh, propinfo, in add_di_path_prop()
1183 add_boolean_prop(nodeh, propinfo, in add_di_path_prop()
1204 picl_nodehdl_t nodeh; in construct_mpath_node() local
1214 PICL_CLASS_MULTIPATH, &nodeh); in construct_mpath_node()
1222 (void) ptree_create_and_add_prop(nodeh, &propinfo, &instance, in construct_mpath_node()
1232 (void) ptree_create_and_add_prop(nodeh, in construct_mpath_node()
1240 (void) ptree_create_and_add_prop(nodeh, &propinfo, NULL, NULL); in construct_mpath_node()
1245 add_di_path_prop(nodeh, di_path_prop); in construct_mpath_node()
1254 add_devinfo_props(picl_nodehdl_t nodeh, di_node_t di_node) in add_devinfo_props() argument
1270 (void) ptree_create_and_add_prop(nodeh, &propinfo, &instance, NULL); in add_devinfo_props()
1277 (void) ptree_create_and_add_prop(nodeh, &propinfo, di_val, in add_devinfo_props()
1286 (void) ptree_create_and_add_prop(nodeh, &propinfo, di_val, in add_devinfo_props()
1295 (void) ptree_create_and_add_prop(nodeh, &propinfo, di_val, in add_devinfo_props()
1304 (void) ptree_create_and_add_prop(nodeh, &propinfo, di_val, in add_devinfo_props()
1318 add_boolean_prop(nodeh, propinfo, di_val); in add_devinfo_props()
1325 add_uints_prop(nodeh, propinfo, di_val, idata, len); in add_devinfo_props()
1331 add_strings_prop(nodeh, propinfo, di_val, sdata, len); in add_devinfo_props()
1337 add_bytes_prop(nodeh, propinfo, di_val, bdata, len); in add_devinfo_props()
1345 add_strings_prop(nodeh, propinfo, di_val, sdata, in add_devinfo_props()
1351 add_uints_prop(nodeh, propinfo, di_val, in add_devinfo_props()
1357 add_bytes_prop(nodeh, propinfo, in add_devinfo_props()
1360 add_boolean_prop(nodeh, propinfo, in add_devinfo_props()
1500 construct_openprom_tree(picl_nodehdl_t nodeh, di_node_t dinode) in construct_openprom_tree() argument
1506 err = construct_obp_node(nodeh, dinode, &chdh); in construct_openprom_tree()
1586 update_subtree(picl_nodehdl_t nodeh, di_node_t dinode) in update_subtree() argument
1644 err = get_unitaddr(nodeh, chdh, unitaddr, in update_subtree()
1669 if (ptree_find_node(nodeh, PICL_PROP_DEVFS_PATH, in update_subtree()
1687 err = ptree_get_propval_by_name(nodeh, PICL_PROP_CHILD, in update_subtree()
1726 if (construct_devtype_node(nodeh, nodename, nodeclass, cnode, in update_subtree()
1844 get_int_propval_by_name(picl_nodehdl_t nodeh, char *pname, int *ival) in get_int_propval_by_name() argument
1848 err = ptree_get_propval_by_name(nodeh, pname, ival, in get_int_propval_by_name()
1890 err = get_int_propval_by_name(rarg->nodeh, PICL_PROP_ID, &id); in get_pi_state()
1931 err = get_int_propval_by_name(rarg->nodeh, PICL_PROP_ID, &id); in get_processor_type()
1952 err = get_int_propval_by_name(rarg->nodeh, PICL_PROP_ID, &id); in get_fputypes()
1977 err = get_int_propval_by_name(rarg->nodeh, PICL_PROP_ID, &cpu_id); in get_pi_state_begin()
2190 picl_nodehdl_t nodeh; in add_ffb_config_info() local
2199 for (err = ptree_get_propval_by_name(rooth, PICL_PROP_CHILD, &nodeh, in add_ffb_config_info()
2201 err = ptree_get_propval_by_name(nodeh, PICL_PROP_PEER, in add_ffb_config_info()
2202 &nodeh, sizeof (picl_nodehdl_t))) { in add_ffb_config_info()
2207 err = ptree_get_propval_by_name(nodeh, PICL_PROP_CLASSNAME, in add_ffb_config_info()
2213 err = open_ffb_device(nodeh, &fd); in add_ffb_config_info()
2222 (void) ptree_create_and_add_prop(nodeh, &pinfo, in add_ffb_config_info()
2232 (void) ptree_create_and_add_prop(nodeh, &pinfo, in add_ffb_config_info()
2243 (void) ptree_create_and_add_prop(nodeh, &pinfo, in add_ffb_config_info()
2247 } else if (add_ffb_config_info(nodeh) != PICL_SUCCESS) in add_ffb_config_info()
2614 picl_nodehdl_t nodeh; in create_asr_node() local
2625 if (ptree_get_node_by_path(ptreepath, &nodeh) != PICL_SUCCESS) in create_asr_node()
2630 for (err = ptree_get_propval_by_name(nodeh, PICL_PROP_CHILD, &chdh, in create_asr_node()
2751 if (ptree_create_and_add_node(nodeh, child, class, &chdh) == in create_asr_node()
2939 get_first_reg_word(picl_nodehdl_t nodeh, uint32_t *regval) in get_first_reg_word() argument
2946 err = ptree_get_prop_by_name(nodeh, OBP_REG, ®h); in get_first_reg_word()
2968 get_device_id(picl_nodehdl_t nodeh, uint32_t *dev_id) in get_device_id() argument
2973 err = get_first_reg_word(nodeh, ®val); in get_device_id()
2988 picl_nodehdl_t nodeh; in add_sbus_slots() local
2993 for (err = ptree_get_propval_by_name(pcih, PICL_PROP_CHILD, &nodeh, in add_sbus_slots()
2995 err = ptree_get_propval_by_name(nodeh, PICL_PROP_PEER, &nodeh, in add_sbus_slots()
3000 if (get_first_reg_word(nodeh, &slot) != 0) in add_sbus_slots()
3005 (void) ptree_create_and_add_prop(nodeh, &pinfo, &slot, NULL); in add_sbus_slots()
3034 picl_nodehdl_t nodeh; in add_pci_deviceids() local
3039 for (err = ptree_get_propval_by_name(pcih, PICL_PROP_CHILD, &nodeh, in add_pci_deviceids()
3041 err = ptree_get_propval_by_name(nodeh, PICL_PROP_PEER, &nodeh, in add_pci_deviceids()
3046 if (get_device_id(nodeh, &dev_id) != 0) in add_pci_deviceids()
3051 (void) ptree_create_and_add_prop(nodeh, &pinfo, &dev_id, NULL); in add_pci_deviceids()
3238 get_addrcells_prop(picl_nodehdl_t nodeh) in get_addrcells_prop() argument
3248 err = ptree_get_prop_by_name(nodeh, OBP_PROP_ADDRESS_CELLS, &proph); in get_addrcells_prop()
3273 get_unitaddr_mapping(picl_nodehdl_t nodeh) in get_unitaddr_mapping() argument
3283 err = ptree_get_propval_by_name(nodeh, PICL_PROP_CLASSNAME, clname, in get_unitaddr_mapping()
3299 add_unitaddr_prop(picl_nodehdl_t nodeh, unitaddr_map_t *uamap, uint_t addrcells) in add_unitaddr_prop() argument
3307 err = ptree_get_prop_by_name(nodeh, OBP_REG, ®h); in add_unitaddr_prop()
3335 err = ptree_create_and_add_prop(nodeh, &pinfo, unitaddr, NULL); in add_unitaddr_prop()
3344 get_unitaddr(picl_nodehdl_t parh, picl_nodehdl_t nodeh, char *unitaddr, in get_unitaddr() argument
3357 err = ptree_get_prop_by_name(nodeh, OBP_REG, ®h); in get_unitaddr()
3386 add_unitaddr_prop_to_subtree(picl_nodehdl_t nodeh) in add_unitaddr_prop_to_subtree() argument
3397 addrcells = get_addrcells_prop(nodeh); in add_unitaddr_prop_to_subtree()
3398 uamap = get_unitaddr_mapping(nodeh); in add_unitaddr_prop_to_subtree()
3403 err = ptree_get_propval_by_name(nodeh, PICL_PROP_CHILD, &chdh, in add_unitaddr_prop_to_subtree()
3615 picl_nodehdl_t nodeh; in picldevtree_evhandler() local
3660 if (ptree_get_node_by_path(ptreepath, &nodeh) == PICL_SUCCESS) in picldevtree_evhandler()
3706 nodeclass, devnode, &nodeh); in picldevtree_evhandler()
3715 (void) update_subtree(nodeh, devnode); in picldevtree_evhandler()
3716 (void) add_unitaddr_prop_to_subtree(nodeh); in picldevtree_evhandler()
3765 if (ptree_get_node_by_path(ptreepath, &nodeh) != PICL_SUCCESS) in picldevtree_evhandler()
3768 if (ptree_delete_node(nodeh) != PICL_SUCCESS) in picldevtree_evhandler()
3773 "picldevtree: deleted node nodeh:%llx\n", nodeh); in picldevtree_evhandler()
3774 if ((ptree_get_propval_by_name(nodeh, in picldevtree_evhandler()
3777 if (post_mc_event(PICLEVENT_MC_REMOVED, nodeh) != in picldevtree_evhandler()
3782 (void) ptree_destroy_node(nodeh); in picldevtree_evhandler()