Lines Matching defs:handle

88 update_data_nodes(picl_nodehdl_t handle)
93 if ((picl_err = ptree_update_propval_by_name(handle,
108 get_strprop_by_name(picl_nodehdl_t handle, char *prop_name, char **string)
118 if ((picl_err = ptree_get_prop_by_name(handle, prop_name, &proph))
150 picl_nodehdl_t handle = TREEHDL_TO_PICLHDL(node);
153 if ((picl_err = get_strprop_by_name(handle, PICL_PROP_NAME,
159 if ((picl_err = get_strprop_by_name(handle, PICL_PROP_LABEL,
271 picl_nodehdl_t handle = TREEHDL_TO_PICLHDL(sibling);
274 rc = ptree_get_propval_by_name(handle, PICL_PROP_PEER,
286 fpt_get_child(fru_treehdl_t handle, fru_treehdl_t *child)
289 int rc = ptree_get_propval_by_name(TREEHDL_TO_PICLHDL(handle),
301 fpt_get_parent(fru_treehdl_t handle, fru_treehdl_t *parent)
307 if (TREEHDL_TO_PICLHDL(handle) == picl_root_node) {
311 rc = ptree_get_propval_by_name(TREEHDL_TO_PICLHDL(handle),
327 picl_nodehdl_t handle = TREEHDL_TO_PICLHDL(node);
329 if ((rc = ptree_get_propval_by_name(handle, PICL_PROP_CLASSNAME,
342 if (ptree_get_prop_by_name(handle,
405 * Find the handle of the segment node "segment".
414 get_segment_node(picl_nodehdl_t handle, const char *segment,
420 if ((err = update_data_nodes(handle)) != FRU_SUCCESS) {
424 if ((err = find_first_section(handle, &sect_node)) != FRU_SUCCESS) {
491 * For the section handle passed add to list all the segment names found.
556 fpt_get_seg_list(fru_treehdl_t handle, fru_strlist_t *list)
564 if ((err = update_data_nodes(TREEHDL_TO_PICLHDL(handle)))
569 if ((err = find_first_section(TREEHDL_TO_PICLHDL(handle), &sect_node))
592 fpt_get_seg_def(fru_treehdl_t handle, const char *seg_name, fru_segdef_t *def)
604 if ((err = get_segment_node(TREEHDL_TO_PICLHDL(handle), seg_name,
638 fpt_add_seg(fru_treehdl_t handle, fru_segdef_t *def)
647 if ((err = find_first_section(TREEHDL_TO_PICLHDL(handle), &section))
669 fpt_delete_seg(fru_treehdl_t handle, const char *seg_name)
678 if ((err = get_segment_node(TREEHDL_TO_PICLHDL(handle), seg_name,
690 fpt_add_tag_to_seg(fru_treehdl_t handle, const char *seg_name,
702 if ((err = get_segment_node(TREEHDL_TO_PICLHDL(handle), seg_name,
740 fpt_get_tag_list(fru_treehdl_t handle, const char *seg_name,
754 if ((err = get_segment_node(TREEHDL_TO_PICLHDL(handle), seg_name,
813 * From the handle, segment name, tag, and instance of the tag get me:
814 * segHdl: The segment handle for this segment.
815 * tagHdl: tag property handle in the tag table for this instance "tag"
818 get_tag_handle(picl_nodehdl_t handle, const char *segment,
831 if ((err = get_segment_node(TREEHDL_TO_PICLHDL(handle), segment,
863 fpt_get_tag_data(fru_treehdl_t handle, const char *seg_name,
875 if ((err = get_tag_handle(TREEHDL_TO_PICLHDL(handle), seg_name,
904 fpt_set_tag_data(fru_treehdl_t handle, const char *seg_name,
914 if ((rc = get_tag_handle(TREEHDL_TO_PICLHDL(handle), seg_name,
934 fpt_delete_tag(fru_treehdl_t handle, const char *seg_name, fru_tag_t tag,
943 /* get tag handle */
944 if ((rc = get_tag_handle(TREEHDL_TO_PICLHDL(handle), seg_name,