Lines Matching refs:nodeh
266 static int add_unitaddr_prop_to_subtree(picl_nodehdl_t nodeh);
267 static int get_unitaddr(picl_nodehdl_t parh, picl_nodehdl_t nodeh,
642 add_string_list_prop(picl_nodehdl_t nodeh, char *name, char *strlist, in add_string_list_prop() argument
666 err = ptree_create_and_add_prop(nodeh, &propinfo, &tblh, &proph); in add_string_list_prop()
708 compare_string_propval(picl_nodehdl_t nodeh, const char *pname, in compare_string_propval() argument
718 err = ptree_get_prop_by_name(nodeh, pname, &proph); in compare_string_propval()
748 const char *pval, picl_nodehdl_t *nodeh) in find_node_by_string_prop() argument
761 *nodeh = childh; in find_node_by_string_prop()
765 if (find_node_by_string_prop(childh, pname, pval, nodeh) == in find_node_by_string_prop()
839 process_charstring_data(picl_nodehdl_t nodeh, char *pname, unsigned char *pdata, in process_charstring_data() argument
871 err = add_string_list_prop(nodeh, pname, in process_charstring_data()
886 (void) ptree_create_and_add_prop(nodeh, &propinfo, in process_charstring_data()
898 add_openprom_props(picl_nodehdl_t nodeh, di_node_t di_node) in add_openprom_props() argument
928 (void) ptree_create_and_add_prop(nodeh, &propinfo, NULL, in add_openprom_props()
938 err = process_charstring_data(nodeh, pname, in add_openprom_props()
952 (void) ptree_create_and_add_prop(nodeh, &propinfo, in add_openprom_props()
973 (void) ptree_create_and_add_prop(nodeh, &propinfo, in add_openprom_props()
976 err = process_charstring_data(nodeh, pname, pdata, in add_openprom_props()
988 add_boolean_prop(picl_nodehdl_t nodeh, ptree_propinfo_t propinfo, char *di_val) in add_boolean_prop() argument
992 (void) ptree_create_and_add_prop(nodeh, &propinfo, NULL, NULL); in add_boolean_prop()
996 add_uints_prop(picl_nodehdl_t nodeh, ptree_propinfo_t propinfo, char *di_val, in add_uints_prop() argument
1008 (void) ptree_create_and_add_prop(nodeh, &propinfo, idata, NULL); in add_uints_prop()
1012 add_strings_prop(picl_nodehdl_t nodeh, ptree_propinfo_t propinfo, char *di_val, in add_strings_prop() argument
1019 (void) ptree_create_and_add_prop(nodeh, &propinfo, sdata, NULL); in add_strings_prop()
1021 (void) add_string_list_prop(nodeh, di_val, sdata, len); in add_strings_prop()
1026 add_bytes_prop(picl_nodehdl_t nodeh, ptree_propinfo_t propinfo, char *di_val, in add_bytes_prop() argument
1031 (void) ptree_create_and_add_prop(nodeh, &propinfo, bdata, NULL); in add_bytes_prop()
1069 mpnode = rarg->nodeh; in get_path_state_name()
1143 add_di_path_prop(picl_nodehdl_t nodeh, di_path_prop_t di_path_prop) in add_di_path_prop() argument
1158 add_boolean_prop(nodeh, propinfo, di_val); in add_di_path_prop()
1166 add_uints_prop(nodeh, propinfo, di_val, idata, len); in add_di_path_prop()
1172 add_strings_prop(nodeh, propinfo, di_val, sdata, len); in add_di_path_prop()
1178 add_bytes_prop(nodeh, propinfo, di_val, bdata, len); in add_di_path_prop()
1186 add_strings_prop(nodeh, propinfo, di_val, sdata, in add_di_path_prop()
1192 add_uints_prop(nodeh, propinfo, di_val, in add_di_path_prop()
1198 add_bytes_prop(nodeh, propinfo, in add_di_path_prop()
1201 add_boolean_prop(nodeh, propinfo, in add_di_path_prop()
1222 picl_nodehdl_t nodeh; in construct_mpath_node() local
1232 PICL_CLASS_MULTIPATH, &nodeh); in construct_mpath_node()
1240 (void) ptree_create_and_add_prop(nodeh, &propinfo, &instance, in construct_mpath_node()
1250 (void) ptree_create_and_add_prop(nodeh, in construct_mpath_node()
1258 (void) ptree_create_and_add_prop(nodeh, &propinfo, NULL, NULL); in construct_mpath_node()
1263 add_di_path_prop(nodeh, di_path_prop); in construct_mpath_node()
1272 add_devinfo_props(picl_nodehdl_t nodeh, di_node_t di_node) in add_devinfo_props() argument
1288 (void) ptree_create_and_add_prop(nodeh, &propinfo, &instance, NULL); 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()
1313 (void) ptree_create_and_add_prop(nodeh, &propinfo, di_val, in add_devinfo_props()
1322 (void) ptree_create_and_add_prop(nodeh, &propinfo, di_val, in add_devinfo_props()
1336 add_boolean_prop(nodeh, propinfo, di_val); in add_devinfo_props()
1343 add_uints_prop(nodeh, propinfo, di_val, idata, len); in add_devinfo_props()
1349 add_strings_prop(nodeh, propinfo, di_val, sdata, len); in add_devinfo_props()
1355 add_bytes_prop(nodeh, propinfo, di_val, bdata, len); in add_devinfo_props()
1363 add_strings_prop(nodeh, propinfo, di_val, sdata, in add_devinfo_props()
1369 add_uints_prop(nodeh, propinfo, di_val, in add_devinfo_props()
1375 add_bytes_prop(nodeh, propinfo, in add_devinfo_props()
1378 add_boolean_prop(nodeh, propinfo, in add_devinfo_props()
1518 construct_openprom_tree(picl_nodehdl_t nodeh, di_node_t dinode) in construct_openprom_tree() argument
1524 err = construct_obp_node(nodeh, dinode, &chdh); in construct_openprom_tree()
1604 update_subtree(picl_nodehdl_t nodeh, di_node_t dinode) in update_subtree() argument
1662 err = get_unitaddr(nodeh, chdh, unitaddr, in update_subtree()
1687 if (ptree_find_node(nodeh, PICL_PROP_DEVFS_PATH, in update_subtree()
1705 err = ptree_get_propval_by_name(nodeh, PICL_PROP_CHILD, in update_subtree()
1744 if (construct_devtype_node(nodeh, nodename, nodeclass, cnode, in update_subtree()
1862 get_int_propval_by_name(picl_nodehdl_t nodeh, char *pname, int *ival) in get_int_propval_by_name() argument
1866 err = ptree_get_propval_by_name(nodeh, pname, ival, in get_int_propval_by_name()
1908 err = get_int_propval_by_name(rarg->nodeh, PICL_PROP_ID, &id); in get_pi_state()
1952 err = get_int_propval_by_name(rarg->nodeh, PICL_PROP_ID, &id); in get_processor_type()
1973 err = get_int_propval_by_name(rarg->nodeh, PICL_PROP_ID, &id); in get_fputypes()
1998 err = get_int_propval_by_name(rarg->nodeh, PICL_PROP_ID, &cpu_id); in get_pi_state_begin()
2211 picl_nodehdl_t nodeh; in add_ffb_config_info() local
2220 for (err = ptree_get_propval_by_name(rooth, PICL_PROP_CHILD, &nodeh, in add_ffb_config_info()
2222 err = ptree_get_propval_by_name(nodeh, PICL_PROP_PEER, in add_ffb_config_info()
2223 &nodeh, sizeof (picl_nodehdl_t))) { in add_ffb_config_info()
2228 err = ptree_get_propval_by_name(nodeh, PICL_PROP_CLASSNAME, in add_ffb_config_info()
2234 err = open_ffb_device(nodeh, &fd); in add_ffb_config_info()
2243 (void) ptree_create_and_add_prop(nodeh, &pinfo, in add_ffb_config_info()
2253 (void) ptree_create_and_add_prop(nodeh, &pinfo, in add_ffb_config_info()
2264 (void) ptree_create_and_add_prop(nodeh, &pinfo, in add_ffb_config_info()
2268 } else if (add_ffb_config_info(nodeh) != PICL_SUCCESS) in add_ffb_config_info()
2636 picl_nodehdl_t nodeh; in create_asr_node() local
2647 if (ptree_get_node_by_path(ptreepath, &nodeh) != PICL_SUCCESS) in create_asr_node()
2652 for (err = ptree_get_propval_by_name(nodeh, PICL_PROP_CHILD, &chdh, in create_asr_node()
2773 if (ptree_create_and_add_node(nodeh, child, class, &chdh) == in create_asr_node()
2961 get_first_reg_word(picl_nodehdl_t nodeh, uint32_t *regval) in get_first_reg_word() argument
2968 err = ptree_get_prop_by_name(nodeh, OBP_REG, ®h); in get_first_reg_word()
2990 get_device_id(picl_nodehdl_t nodeh, uint32_t *dev_id) in get_device_id() argument
2995 err = get_first_reg_word(nodeh, ®val); in get_device_id()
3010 picl_nodehdl_t nodeh; in add_sbus_slots() local
3015 for (err = ptree_get_propval_by_name(pcih, PICL_PROP_CHILD, &nodeh, in add_sbus_slots()
3017 err = ptree_get_propval_by_name(nodeh, PICL_PROP_PEER, &nodeh, in add_sbus_slots()
3022 if (get_first_reg_word(nodeh, &slot) != 0) in add_sbus_slots()
3027 (void) ptree_create_and_add_prop(nodeh, &pinfo, &slot, NULL); in add_sbus_slots()
3056 picl_nodehdl_t nodeh; in add_pci_deviceids() local
3061 for (err = ptree_get_propval_by_name(pcih, PICL_PROP_CHILD, &nodeh, in add_pci_deviceids()
3063 err = ptree_get_propval_by_name(nodeh, PICL_PROP_PEER, &nodeh, in add_pci_deviceids()
3068 if (get_device_id(nodeh, &dev_id) != 0) in add_pci_deviceids()
3073 (void) ptree_create_and_add_prop(nodeh, &pinfo, &dev_id, NULL); in add_pci_deviceids()
3260 get_addrcells_prop(picl_nodehdl_t nodeh) in get_addrcells_prop() argument
3270 err = ptree_get_prop_by_name(nodeh, OBP_PROP_ADDRESS_CELLS, &proph); in get_addrcells_prop()
3295 get_unitaddr_mapping(picl_nodehdl_t nodeh) in get_unitaddr_mapping() argument
3305 err = ptree_get_propval_by_name(nodeh, PICL_PROP_CLASSNAME, clname, in get_unitaddr_mapping()
3321 add_unitaddr_prop(picl_nodehdl_t nodeh, unitaddr_map_t *uamap, uint_t addrcells) in add_unitaddr_prop() argument
3329 err = ptree_get_prop_by_name(nodeh, OBP_REG, ®h); in add_unitaddr_prop()
3358 err = ptree_create_and_add_prop(nodeh, &pinfo, unitaddr, NULL); in add_unitaddr_prop()
3368 get_unitaddr(picl_nodehdl_t parh, picl_nodehdl_t nodeh, char *unitaddr, in get_unitaddr() argument
3381 err = ptree_get_prop_by_name(nodeh, OBP_REG, ®h); in get_unitaddr()
3412 add_unitaddr_prop_to_subtree(picl_nodehdl_t nodeh) in add_unitaddr_prop_to_subtree() argument
3423 addrcells = get_addrcells_prop(nodeh); in add_unitaddr_prop_to_subtree()
3424 uamap = get_unitaddr_mapping(nodeh); in add_unitaddr_prop_to_subtree()
3429 err = ptree_get_propval_by_name(nodeh, PICL_PROP_CHILD, &chdh, in add_unitaddr_prop_to_subtree()
3645 picl_nodehdl_t nodeh; in picldevtree_evhandler() local
3689 if (ptree_get_node_by_path(ptreepath, &nodeh) == PICL_SUCCESS) in picldevtree_evhandler()
3735 nodeclass, devnode, &nodeh); in picldevtree_evhandler()
3744 (void) update_subtree(nodeh, devnode); in picldevtree_evhandler()
3745 (void) add_unitaddr_prop_to_subtree(nodeh); in picldevtree_evhandler()
3794 if (ptree_get_node_by_path(ptreepath, &nodeh) != PICL_SUCCESS) in picldevtree_evhandler()
3797 if (ptree_delete_node(nodeh) != PICL_SUCCESS) in picldevtree_evhandler()
3802 "picldevtree: deleted node nodeh:%llx\n", nodeh); in picldevtree_evhandler()
3803 if ((ptree_get_propval_by_name(nodeh, in picldevtree_evhandler()
3806 if (post_mc_event(PICLEVENT_MC_REMOVED, nodeh) != in picldevtree_evhandler()
3811 (void) ptree_destroy_node(nodeh); in picldevtree_evhandler()