Lines Matching refs:parh

308 static int remove_subtree(picl_nodehdl_t parh);
309 static int add_subtree(picl_nodehdl_t parh, fru_hdl_t fruparent);
310 static int add_picl_node(picl_nodehdl_t parh, sgfrunode_t *sgfrunode,
312 static int add_chassis_node(picl_nodehdl_t parh, sgfrunode_t *sgfrunode,
314 static int add_fru_node(picl_nodehdl_t parh, sgfrunode_t *sgfrunode,
316 static int add_location_node(picl_nodehdl_t parh, sgfrunode_t *sgfrunode,
328 static picl_nodehdl_t find_child_by_name(picl_nodehdl_t parh, char *name);
329 static int create_dimm_references(picl_nodehdl_t parh, int dimm_id,
477 add_subtree(picl_nodehdl_t parh, fru_hdl_t handle)
495 err = add_picl_node(parh, cp, &childh);
524 remove_subtree(picl_nodehdl_t parh)
529 if (ptree_get_propval_by_name(parh, PICL_PROP_CHILD, &chdh,
534 return (remove_picl_node(parh));
546 add_picl_node(picl_nodehdl_t parh, sgfrunode_t *sgfrunode,
551 return (add_chassis_node(parh, sgfrunode, childp));
554 return (add_fru_node(parh, sgfrunode, childp));
557 return (add_location_node(parh, sgfrunode, childp));
569 add_chassis_node(picl_nodehdl_t parh, sgfrunode_t *sgfrunode,
579 err = ptree_create_and_add_node(parh, PICL_PROPVAL_CHASSIS,
732 * create fru node, based on sgfru node "sgfrunode" under parent parh. Return
736 add_fru_node(picl_nodehdl_t parh, sgfrunode_t *sgfrunode,
748 childh = find_child_by_name(parh, nodename);
785 err = ptree_create_and_add_node(parh, nodename, PICL_CLASS_FRU,
810 post_frudr_event(PICL_FRU_ADDED, parh, NULL);
838 err = create_dimm_references(parh, nodename[1] - '0',
870 * create location node, based on sgfru node "sgfrunode" under parent parh.
874 add_location_node(picl_nodehdl_t parh, sgfrunode_t *sgfrunode,
909 * add intermediate nodes - parh will point to the created node
912 err = add_intermediate_nodes(&parh, labelp, &tblhdl,
915 err = add_intermediate_nodes(&parh, labelp, &tblhdl,
925 err = create_cpu_references(labelp, parh, tblhdl);
928 err = add_board_status(parh, labelp);
943 childh = find_child_by_name(parh, labelp);
952 err = ptree_create_and_add_node(parh, labelp, PICL_CLASS_LOCATION,
1426 * subroutine for various functions. Finds immediate child of parh with
1430 find_child_by_name(picl_nodehdl_t parh, char *name)
1436 err = ptree_get_propval_by_name(parh, PICL_PROP_CHILD,
1456 create_dimm_references(picl_nodehdl_t parh, int dimm_id,
1475 err = ptree_get_propval_by_name(parh, PICL_PROP_PARENT, &parentfruh,
2004 frudr_add_subtree(picl_nodehdl_t parh)
2007 if (ptree_get_propval_by_name(parh, PICL_PROP_SC_HANDLE,
2011 (void) add_subtree(parh, sgfruhdl);
2020 picl_nodehdl_t parh;
2036 parh = NULL;
2038 PICLEVENTARG_PARENTHANDLE, &parh);
2039 if (parh != NULL) {
2040 frudr_add_subtree(parh);
2207 picl_nodehdl_t parh;
2216 if (ptree_get_node_by_path(CHASSIS_PATH, &parh) !=
2230 err = ptree_get_prop_by_name(parh, PICL_PROP_SC_HANDLE,
2242 err = add_prop_ull(parh, sgfruchassisp->handle,
2252 if (ptree_get_propval_by_name(parh, PICL_PROP_CHILD, &chdh,
2282 (void) add_subtree(parh, sgfruchassisp->handle);