Lines Matching refs:root
67 hp_node_t root = NULL;
82 if ((rv = getinfo(path, connection, 0, &root)) != 0) {
89 *old_statep = hp_state(root);
92 use_rcm = check_rcm_required(root, state);
100 if ((rv = rcm_resources(root, &rsrcs)) != 0) {
103 hp_fini(root);
109 ((rv = rcm_offline(rsrcs, flags, root)) != 0)) {
114 *resultsp = root;
120 hp_fini(root);
228 * Given the root of a changestate operation and the target
232 check_rcm_required(hp_node_t root, int target_state)
238 if ((root->hp_type == HP_NODE_CONNECTOR) &&
239 HP_IS_ENABLED(root->hp_state) && !HP_IS_ENABLED(target_state))
246 if ((root->hp_type == HP_NODE_PORT) &&
247 HP_IS_ONLINE(root->hp_state) && HP_IS_OFFLINE(target_state))