role              464 include/crm/common/resources.h     enum rsc_role_e role;           // Resource's current role
role               65 include/crm/common/roles.h const char *pcmk_role_text(enum rsc_role_e role);
role               66 include/crm/common/roles.h enum rsc_role_e pcmk_parse_role(const char *role);
role               47 include/crm/pengine/common.h     enum rsc_role_e role;           //!< \deprecated Ignored
role               59 include/crm/pengine/common_compat.h const char *role2text(enum rsc_role_e role);
role               62 include/crm/pengine/common_compat.h enum rsc_role_e text2role(const char *role);
role              254 include/crm/pengine/internal.h gboolean get_target_role(const pcmk_resource_t *rsc, enum rsc_role_e *role);
role              255 include/crm/pengine/internal.h void pe__set_next_role(pcmk_resource_t *rsc, enum rsc_role_e role,
role               43 include/crm/pengine/rules_compat.h gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role,
role               48 include/crm/pengine/rules_compat.h                       enum rsc_role_e role, crm_time_t *now,
role               53 include/crm/pengine/rules_compat.h                          enum rsc_role_e role, crm_time_t *now,
role               58 include/crm/pengine/rules_compat.h                            enum rsc_role_e role, crm_time_t *now,
role               63 include/crm/pengine/rules_compat.h                             enum rsc_role_e role, crm_time_t *now,
role               69 include/crm/pengine/rules_compat.h                          enum rsc_role_e role, crm_time_t *now);
role               73 include/crm/pengine/rules_compat.h                          enum rsc_role_e role, crm_time_t *now,
role               78 include/crm/pengine/rules_compat.h                                  enum rsc_role_e role,
role              149 lib/common/acl.c                 xmlNode *role = NULL;
role              151 lib/common/acl.c                 for (role = pcmk__xe_first_child(acl_top, NULL, NULL, NULL);
role              152 lib/common/acl.c                      role != NULL; role = pcmk__xe_next(role)) {
role              154 lib/common/acl.c                     if (!strcmp(PCMK_XE_ACL_ROLE, (const char *) role->name)) {
role              155 lib/common/acl.c                         const char *role_id = crm_element_value(role,
role              161 lib/common/acl.c                             acls = parse_acl_entry(acl_top, role, acls);
role               23 lib/common/roles.c pcmk_role_text(enum rsc_role_e role)
role               25 lib/common/roles.c     switch (role) {
role               59 lib/common/roles.c pcmk_parse_role(const char *role)
role               61 lib/common/roles.c     if (pcmk__str_eq(role, PCMK__ROLE_UNKNOWN,
role               64 lib/common/roles.c     } else if (pcmk__str_eq(role, PCMK_ROLE_STOPPED, pcmk__str_casei)) {
role               66 lib/common/roles.c     } else if (pcmk__str_eq(role, PCMK_ROLE_STARTED, pcmk__str_casei)) {
role               68 lib/common/roles.c     } else if (pcmk__str_eq(role, PCMK__ROLE_UNPROMOTED_LEGACY, pcmk__str_casei)) {
role               75 lib/common/roles.c     } else if (pcmk__str_eq(role, PCMK_ROLE_UNPROMOTED, pcmk__str_casei)) {
role               77 lib/common/roles.c     } else if (pcmk__str_eq(role, PCMK__ROLE_PROMOTED_LEGACY, pcmk__str_casei)) {
role               84 lib/common/roles.c     } else if (pcmk__str_eq(role, PCMK_ROLE_PROMOTED, pcmk__str_casei)) {
role              993 lib/pacemaker/libpacemaker_private.h                             const pcmk_node_t *node, enum rsc_role_e role,
role              999 lib/pacemaker/libpacemaker_private.h                                                 enum rsc_role_e role,
role              143 lib/pacemaker/pcmk_output.c     if ((rsc->role > pcmk_role_started)
role              152 lib/pacemaker/pcmk_output.c     if (rsc->role == rsc->next_role) {
role              158 lib/pacemaker/pcmk_output.c         details = crm_strdup_printf("%s -> %s %s", pcmk_role_text(rsc->role),
role              168 lib/pacemaker/pcmk_output.c         details = crm_strdup_printf("%s %s", pcmk_role_text(rsc->role),
role              177 lib/pacemaker/pcmk_output.c         details = crm_strdup_printf("%s %s", pcmk_role_text(rsc->role),
role              188 lib/pacemaker/pcmk_output.c                                     pcmk_role_text(rsc->role));
role              197 lib/pacemaker/pcmk_output.c         details = crm_strdup_printf("%s -> %s %s", pcmk_role_text(rsc->role),
role              204 lib/pacemaker/pcmk_output.c                                     pcmk_role_text(rsc->role),
role              263 lib/pacemaker/pcmk_output.c     if ((rsc->role > pcmk_role_started)
role              272 lib/pacemaker/pcmk_output.c     if (rsc->role == rsc->next_role) {
role              286 lib/pacemaker/pcmk_output.c                            PCMK_XA_ROLE, pcmk_role_text(rsc->role),
role              298 lib/pacemaker/pcmk_output.c                            PCMK_XA_ROLE, pcmk_role_text(rsc->role),
role              309 lib/pacemaker/pcmk_output.c                            PCMK_XA_ROLE, pcmk_role_text(rsc->role),
role              322 lib/pacemaker/pcmk_output.c                            PCMK_XA_ROLE, pcmk_role_text(rsc->role),
role              335 lib/pacemaker/pcmk_output.c                            PCMK_XA_ROLE, pcmk_role_text(rsc->role),
role              343 lib/pacemaker/pcmk_output.c                            PCMK_XA_ROLE, pcmk_role_text(rsc->role),
role             1101 lib/pacemaker/pcmk_output.c                        rsc->id, pcmk_role_text(rsc->role),
role             1154 lib/pacemaker/pcmk_output.c     if (rsc->role == rsc->next_role) {
role             1184 lib/pacemaker/pcmk_output.c                                pcmk_role_text(rsc->role),
role             1282 lib/pacemaker/pcmk_output.c     } else if (rsc->role == pcmk_role_promoted) {
role             1292 lib/pacemaker/pcmk_output.c     } else if ((rsc->role == pcmk_role_stopped)
role              876 lib/pacemaker/pcmk_sched_actions.c         && (then->rsc != NULL) && (then->rsc->role == pcmk_role_promoted)
role              446 lib/pacemaker/pcmk_sched_colocation.c     const char *role = crm_element_value(set, PCMK_XA_ROLE);
role              507 lib/pacemaker/pcmk_sched_colocation.c                                          other, role, role, flags);
role              512 lib/pacemaker/pcmk_sched_colocation.c                                          resource, role, role, flags);
role              554 lib/pacemaker/pcmk_sched_colocation.c                                      resource, other, role, role, flags);
role               65 lib/pacemaker/pcmk_sched_group.c     rsc->role = first_member->role;
role             1077 lib/pacemaker/pcmk_sched_instances.c                        enum rsc_role_e role, bool current)
role             1083 lib/pacemaker/pcmk_sched_instances.c     if ((role != pcmk_role_unknown)
role             1084 lib/pacemaker/pcmk_sched_instances.c         && (role != instance->fns->state(instance, current))) {
role             1087 lib/pacemaker/pcmk_sched_instances.c                         instance->id, pcmk_role_text(role));
role             1135 lib/pacemaker/pcmk_sched_instances.c                                  const pcmk_node_t *node, enum rsc_role_e role,
role             1144 lib/pacemaker/pcmk_sched_instances.c         if (pcmk__instance_matches(instance, node, role, current)) {
role             1147 lib/pacemaker/pcmk_sched_instances.c                             display_role(role), rsc->id, instance->id,
role             1157 lib/pacemaker/pcmk_sched_instances.c                     display_role(role), rsc->id, match_rsc->id,
role             1177 lib/pacemaker/pcmk_sched_instances.c                                const pcmk_resource_t *rsc, enum rsc_role_e role,
role             1187 lib/pacemaker/pcmk_sched_instances.c         return find_compatible_instance_on_node(match_rsc, rsc, node, role,
role             1198 lib/pacemaker/pcmk_sched_instances.c                                                     role, current);
role               68 lib/pacemaker/pcmk_sched_location.c parse_location_role(const char *role_spec, enum rsc_role_e *role)
role               71 lib/pacemaker/pcmk_sched_location.c         *role = pcmk_role_unknown;
role               75 lib/pacemaker/pcmk_sched_location.c     *role = pcmk_parse_role(role_spec);
role               76 lib/pacemaker/pcmk_sched_location.c     switch (*role) {
role               86 lib/pacemaker/pcmk_sched_location.c             *role = pcmk_role_unknown;
role              126 lib/pacemaker/pcmk_sched_location.c     enum rsc_role_e role = pcmk_role_unknown;
role              144 lib/pacemaker/pcmk_sched_location.c     if (parse_location_role(role_spec, &role)) {
role              183 lib/pacemaker/pcmk_sched_location.c     location_rule->role_filter = role;
role              254 lib/pacemaker/pcmk_sched_location.c         enum rsc_role_e role = pcmk_role_unknown;
role              267 lib/pacemaker/pcmk_sched_location.c         if (parse_location_role(role_spec, &role)) {
role              283 lib/pacemaker/pcmk_sched_location.c         location->role_filter = role;
role              497 lib/pacemaker/pcmk_sched_location.c     const char *role;
role              510 lib/pacemaker/pcmk_sched_location.c     role = crm_element_value(set, PCMK_XA_ROLE);
role              524 lib/pacemaker/pcmk_sched_location.c         unpack_rsc_location(location, resource, role, local_score, NULL, 0,
role              484 lib/pacemaker/pcmk_sched_primitive.c     } else if ((rsc->next_role > rsc->role)
role              489 lib/pacemaker/pcmk_sched_primitive.c                    rsc->id, pcmk_role_text(rsc->role),
role              491 lib/pacemaker/pcmk_sched_primitive.c         pe__set_next_role(rsc, rsc->role,
role              510 lib/pacemaker/pcmk_sched_primitive.c         pe__set_next_role(rsc, rsc->role, "unmanaged");
role              514 lib/pacemaker/pcmk_sched_primitive.c         } else if (rsc->role == pcmk_role_promoted) {
role              568 lib/pacemaker/pcmk_sched_primitive.c     enum rsc_role_e role = rsc->role;
role              575 lib/pacemaker/pcmk_sched_primitive.c     while (role != pcmk_role_stopped) {
role              576 lib/pacemaker/pcmk_sched_primitive.c         next_role = rsc_state_matrix[role][pcmk_role_stopped];
role              579 lib/pacemaker/pcmk_sched_primitive.c                         pcmk_role_text(role), pcmk_role_text(next_role));
role              580 lib/pacemaker/pcmk_sched_primitive.c         fn = rsc_action_matrix[role][next_role];
role              585 lib/pacemaker/pcmk_sched_primitive.c         role = next_role;
role              589 lib/pacemaker/pcmk_sched_primitive.c     while ((rsc->role <= rsc->next_role) && (role != rsc->role)
role              593 lib/pacemaker/pcmk_sched_primitive.c         next_role = rsc_state_matrix[role][rsc->role];
role              599 lib/pacemaker/pcmk_sched_primitive.c                         pcmk_role_text(role), pcmk_role_text(next_role));
role              600 lib/pacemaker/pcmk_sched_primitive.c         fn = rsc_action_matrix[role][next_role];
role              605 lib/pacemaker/pcmk_sched_primitive.c         role = next_role;
role              661 lib/pacemaker/pcmk_sched_primitive.c     enum rsc_role_e role = rsc->role;
role              663 lib/pacemaker/pcmk_sched_primitive.c     while (role != rsc->next_role) {
role              664 lib/pacemaker/pcmk_sched_primitive.c         enum rsc_role_e next_role = rsc_state_matrix[role][rsc->next_role];
role              670 lib/pacemaker/pcmk_sched_primitive.c                         rsc->id, pcmk_role_text(role),
role              673 lib/pacemaker/pcmk_sched_primitive.c         fn = rsc_action_matrix[role][next_role];
role              678 lib/pacemaker/pcmk_sched_primitive.c         role = next_role;
role              708 lib/pacemaker/pcmk_sched_primitive.c                     rsc->id, pcmk_role_text(rsc->role),
role              828 lib/pacemaker/pcmk_sched_primitive.c     } else if ((rsc->role > pcmk_role_started) && (current != NULL)
role              948 lib/pacemaker/pcmk_sched_primitive.c         || (rsc->role > pcmk_role_unpromoted)) {
role               38 lib/pacemaker/pcmk_sched_probes.c     } else if (rsc->role == pcmk_role_promoted) {
role              112 lib/pacemaker/pcmk_sched_probes.c            || ((guest_rsc->role > pcmk_role_stopped)
role              134 lib/pacemaker/pcmk_sched_probes.c               pcmk_role_text(rsc->role), rsc->id, pcmk__node_name(node));
role              238 lib/pacemaker/pcmk_sched_probes.c         if (guest->role == pcmk_role_stopped) {
role              805 lib/pacemaker/pcmk_sched_promotable.c     if (rsc->role == pcmk_role_started) {
role              807 lib/pacemaker/pcmk_sched_promotable.c         rsc->role = pcmk_role_unpromoted;
role             1010 lib/pacemaker/pcmk_sched_promotable.c     if ((instance->role < pcmk_role_promoted)
role             1021 lib/pacemaker/pcmk_sched_promotable.c                    instance->id, pcmk_role_text(instance->role),
role               28 lib/pacemaker/pcmk_sched_recurring.c     enum rsc_role_e role;   // Action role (or pcmk_role_unknown for default)
role              133 lib/pacemaker/pcmk_sched_recurring.c     const char *role = NULL;
role              159 lib/pacemaker/pcmk_sched_recurring.c     role = crm_element_value(xml, PCMK_XA_ROLE);
role              160 lib/pacemaker/pcmk_sched_recurring.c     if (role == NULL) {
role              161 lib/pacemaker/pcmk_sched_recurring.c         op->role = pcmk_role_unknown;
role              163 lib/pacemaker/pcmk_sched_recurring.c         op->role = pcmk_parse_role(role);
role              164 lib/pacemaker/pcmk_sched_recurring.c         if (op->role == pcmk_role_unknown) {
role              166 lib/pacemaker/pcmk_sched_recurring.c                              op->id, role);
role              260 lib/pacemaker/pcmk_sched_recurring.c     enum rsc_role_e monitor_role = op->role;
role              285 lib/pacemaker/pcmk_sched_recurring.c             switch (rsc->role) {
role              369 lib/pacemaker/pcmk_sched_recurring.c         } else if (rsc->role == pcmk_role_promoted) {
role              503 lib/pacemaker/pcmk_sched_recurring.c     if (op->role != pcmk_role_stopped) {
role              338 lib/pacemaker/pcmk_sched_resource.c         if (rsc->role == pcmk_role_stopped) {
role              342 lib/pacemaker/pcmk_sched_resource.c             rsc->role = pcmk_role_started;
role               34 lib/pacemaker/pcmk_sched_tickets.c     int role;
role               49 lib/pacemaker/pcmk_sched_tickets.c     if ((rsc_ticket->role == pcmk_role_unknown)
role               50 lib/pacemaker/pcmk_sched_tickets.c         || (rsc_ticket->role == rsc->role)) {
role               54 lib/pacemaker/pcmk_sched_tickets.c                     pcmk_role_text(rsc_ticket->role));
role               85 lib/pacemaker/pcmk_sched_tickets.c                     pcmk_role_text(rsc_ticket->role));
role               97 lib/pacemaker/pcmk_sched_tickets.c                 if (rsc_ticket->role != pcmk_role_promoted) {
role              130 lib/pacemaker/pcmk_sched_tickets.c         if ((rsc_ticket->role != pcmk_role_promoted)
role              138 lib/pacemaker/pcmk_sched_tickets.c         if ((rsc_ticket->role != pcmk_role_promoted)
role              171 lib/pacemaker/pcmk_sched_tickets.c     new_rsc_ticket->role = pcmk_parse_role(state);
role              187 lib/pacemaker/pcmk_sched_tickets.c                   pcmk_role_text(new_rsc_ticket->role));
role              192 lib/pacemaker/pcmk_sched_tickets.c                   pcmk_role_text(new_rsc_ticket->role));
role              198 lib/pacemaker/pcmk_sched_tickets.c                   pcmk_role_text(new_rsc_ticket->role));
role              204 lib/pacemaker/pcmk_sched_tickets.c                   pcmk_role_text(new_rsc_ticket->role));
role              208 lib/pacemaker/pcmk_sched_tickets.c         if (new_rsc_ticket->role == pcmk_role_promoted) {
role              211 lib/pacemaker/pcmk_sched_tickets.c                       pcmk_role_text(new_rsc_ticket->role));
role              217 lib/pacemaker/pcmk_sched_tickets.c                       pcmk_role_text(new_rsc_ticket->role));
role              223 lib/pacemaker/pcmk_sched_tickets.c                     rsc->id, pcmk_role_text(new_rsc_ticket->role), ticket->id);
role              241 lib/pacemaker/pcmk_sched_tickets.c     const char *role = NULL;
role              253 lib/pacemaker/pcmk_sched_tickets.c     role = crm_element_value(set, PCMK_XA_ROLE);
role              270 lib/pacemaker/pcmk_sched_tickets.c         rsc_ticket_new(set_id, resource, ticket, role, loss_policy);
role              527 lib/pacemaker/pcmk_sched_tickets.c         if ((rsc_ticket->role == pcmk_role_promoted)
role              671 lib/pacemaker/pcmk_scheduler.c             || (rsc->role != pcmk_role_stopped)) {
role              535 lib/pengine/clone.c     enum rsc_role_e role = pcmk_role_unknown;
role              539 lib/pengine/clone.c         role = pcmk_parse_role(target_role);
role              540 lib/pengine/clone.c         if (role == pcmk_role_unknown) {
role              545 lib/pengine/clone.c     return role;
role              772 lib/pengine/clone.c             enum rsc_role_e role = configured_role(rsc);
role              774 lib/pengine/clone.c             if (role == pcmk_role_unpromoted) {
role              793 lib/pengine/clone.c         enum rsc_role_e role = configured_role(rsc);
role              795 lib/pengine/clone.c         if (role == pcmk_role_stopped) {
role             1106 lib/pengine/clone.c             enum rsc_role_e role = configured_role(rsc);
role             1108 lib/pengine/clone.c             if (role == pcmk_role_unpromoted) {
role               26 lib/pengine/common.c role2text(enum rsc_role_e role)
role               28 lib/pengine/common.c     return pcmk_role_text(role);
role               32 lib/pengine/common.c text2role(const char *role)
role               34 lib/pengine/common.c     return pcmk_parse_role(role);
role              279 lib/pengine/complex.c     const char *role = crm_element_value(op, PCMK_XA_ROLE);
role              282 lib/pengine/complex.c     if ((role == NULL)
role              283 lib/pengine/complex.c         || pcmk__strcase_any_of(role, PCMK_ROLE_STARTED, PCMK_ROLE_UNPROMOTED,
role              285 lib/pengine/complex.c         role = PCMK__ROLE_UNKNOWN;
role              288 lib/pengine/complex.c     key = crm_strdup_printf("%s-%s", name, role);
role              740 lib/pengine/complex.c     (*rsc)->role = pcmk_role_stopped;
role             1233 lib/pengine/complex.c                || (rsc->role > pcmk_role_stopped)) {
role             1253 lib/pengine/complex.c pe__set_next_role(pcmk_resource_t *rsc, enum rsc_role_e role, const char *why)
role             1256 lib/pengine/complex.c     if (rsc->next_role != role) {
role             1259 lib/pengine/complex.c                         pcmk_role_text(role), why);
role             1260 lib/pengine/complex.c         rsc->next_role = role;
role              486 lib/pengine/group.c         enum rsc_role_e role = child_rsc->fns->state(child_rsc, current);
role              488 lib/pengine/group.c         if (role > group_role) {
role              489 lib/pengine/group.c             group_role = role;
role               53 lib/pengine/native.c     if (rsc->role == pcmk_role_promoted) {
role               64 lib/pengine/native.c                     (rsc->role == pcmk_role_promoted)? "promoted " : "",
role               66 lib/pengine/native.c                     (rsc->role == pcmk_role_promoted)? " + 1" : "");
role               82 lib/pengine/native.c                             (rsc->role == pcmk_role_promoted)? "promoted " : "",
role               84 lib/pengine/native.c                             (rsc->role == pcmk_role_promoted)? " + 1" : "",
role              430 lib/pengine/native.c     enum rsc_role_e role = rsc->role;
role              432 lib/pengine/native.c     if ((role == pcmk_role_started)
role              436 lib/pengine/native.c         role = pcmk_role_unpromoted;
role              438 lib/pengine/native.c     return role;
role              601 lib/pengine/native.c         enum rsc_role_e role = native_displayable_role(rsc);
role              604 lib/pengine/native.c         if (role > pcmk_role_unpromoted) {
role              605 lib/pengine/native.c             pcmk__add_word(&outstr, 0, pcmk_role_text(role));
role             1113 lib/pengine/native.c     enum rsc_role_e role = rsc->next_role;
role             1116 lib/pengine/native.c         role = rsc->role;
role             1118 lib/pengine/native.c     pcmk__rsc_trace(rsc, "%s state: %s", rsc->id, pcmk_role_text(role));
role             1119 lib/pengine/native.c     return role;
role              298 lib/pengine/pe_actions.c         switch (rsc->role) {
role              390 lib/pengine/pe_actions.c                     || (action->rsc->next_role > action->rsc->role)) {
role              456 lib/pengine/pe_actions.c     const char *role = NULL;
role              499 lib/pengine/pe_actions.c             role = crm_element_value(operation, PCMK_XA_ROLE);
role              501 lib/pengine/pe_actions.c                 || !pcmk__strcase_any_of(role, PCMK_ROLE_PROMOTED,
role              541 lib/pengine/pe_actions.c         role = crm_element_value(action_config, PCMK_XA_ROLE);
role              548 lib/pengine/pe_actions.c                 || !pcmk__strcase_any_of(role, PCMK_ROLE_PROMOTED,
role             1035 lib/pengine/pe_actions.c     enum rsc_role_e role = pcmk_role_unknown;
role             1040 lib/pengine/pe_actions.c             role = pcmk_role_stopped;
role             1045 lib/pengine/pe_actions.c                 role = pcmk_role_stopped;
role             1059 lib/pengine/pe_actions.c         if (role == pcmk_role_unknown) {
role             1060 lib/pengine/pe_actions.c             role = pcmk_parse_role(value);
role             1061 lib/pengine/pe_actions.c             if (role == pcmk_role_unknown) {
role             1069 lib/pengine/pe_actions.c     if (role == pcmk_role_unknown) {
role             1072 lib/pengine/pe_actions.c             role = pcmk_role_unpromoted;
role             1074 lib/pengine/pe_actions.c             role = pcmk_role_started;
role             1078 lib/pengine/pe_actions.c                     rsc->id, action_name, pcmk_role_text(role));
role             1079 lib/pengine/pe_actions.c     return role;
role              570 lib/pengine/pe_notif.c     switch (rsc->role) {
role              595 lib/pengine/pe_notif.c                             pcmk_role_text(rsc->role));
role              870 lib/pengine/pe_notif.c     if ((rsc->role != pcmk_role_stopped)
role              633 lib/pengine/pe_output.c role_desc(enum rsc_role_e role)
role              635 lib/pengine/pe_output.c     if (role == pcmk_role_promoted) {
role              316 lib/pengine/rules.c pe_test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role,
role              344 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now)
role              346 lib/pengine/rules.c     return pe_test_rule(rule, node_hash, role, now, NULL, NULL);
role              350 lib/pengine/rules.c pe_test_rule_re(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, pe_re_match_data_t * re_match_data)
role              357 lib/pengine/rules.c     return pe_test_rule(rule, node_hash, role, now, NULL, &match_data);
role              361 lib/pengine/rules.c pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role,
role              364 lib/pengine/rules.c     return pe_test_rule(rule, node_hash, role, now, NULL, match_data);
role              368 lib/pengine/rules.c pe_test_expression(xmlNode *expr, GHashTable *node_hash, enum rsc_role_e role,
role              391 lib/pengine/rules.c test_expression(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now)
role              393 lib/pengine/rules.c     return pe_test_expression(expr, node_hash, role, now, NULL, NULL);
role              397 lib/pengine/rules.c pe_test_expression_re(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, pe_re_match_data_t * re_match_data)
role              404 lib/pengine/rules.c     return pe_test_expression(expr, node_hash, role, now, NULL, &match_data);
role              409 lib/pengine/rules.c                         enum rsc_role_e role, crm_time_t *now,
role              412 lib/pengine/rules.c     return pe_test_expression(expr, node_hash, role, now, NULL, match_data);
role             1349 lib/pengine/unpack.c             if ((rsc == NULL) || (rsc->role != pcmk_role_started)
role             1350 lib/pengine/unpack.c                 || (rsc->container->role != pcmk_role_started)) {
role             1367 lib/pengine/unpack.c                     && (rsc->role != pcmk_role_started))) {
role             1789 lib/pengine/unpack.c     if (rsc->role == pcmk_role_started) {
role             1796 lib/pengine/unpack.c     if ((rsc->role == pcmk_role_started)
role             1816 lib/pengine/unpack.c     } else if ((rsc->role == pcmk_role_stopped)
role             1818 lib/pengine/unpack.c                    && (container->role == pcmk_role_stopped))) {
role             2298 lib/pengine/unpack.c                     rsc->id, pcmk_role_text(rsc->role), pcmk__node_name(node),
role             2302 lib/pengine/unpack.c     if (rsc->role != pcmk_role_unknown) {
role             2324 lib/pengine/unpack.c     if ((rsc->role > pcmk_role_stopped)
role             2429 lib/pengine/unpack.c             if ((rsc->role != pcmk_role_stopped)
role             2430 lib/pengine/unpack.c                 && (rsc->role != pcmk_role_unknown)) {
role             2449 lib/pengine/unpack.c             } else if ((rsc->role != pcmk_role_stopped)
role             2450 lib/pengine/unpack.c                        && (rsc->role != pcmk_role_unknown)) {
role             2473 lib/pengine/unpack.c             if (rsc->role > pcmk_role_stopped) {
role             2496 lib/pengine/unpack.c     if ((rsc->role != pcmk_role_stopped)
role             2497 lib/pengine/unpack.c         && (rsc->role != pcmk_role_unknown)) {
role             2551 lib/pengine/unpack.c     if ((rsc->role == pcmk_role_stopped)
role             2557 lib/pengine/unpack.c         rsc->role = pcmk_role_started;
role             2777 lib/pengine/unpack.c     saved_role = rsc->role;
role             2778 lib/pengine/unpack.c     rsc->role = pcmk_role_unknown;
role             2812 lib/pengine/unpack.c     if (saved_role > rsc->role) {
role             2813 lib/pengine/unpack.c         rsc->role = saved_role;
role             2912 lib/pengine/unpack.c         rsc->role = pcmk_role_unpromoted;
role             2914 lib/pengine/unpack.c         rsc->role = pcmk_role_started;
role             3234 lib/pengine/unpack.c     rsc->role = pcmk_role_stopped;
role             3336 lib/pengine/unpack.c     history->rsc->role = pcmk_role_started;
role             3413 lib/pengine/unpack.c     history->rsc->role = pcmk_role_started;
role             3480 lib/pengine/unpack.c     history->rsc->role = pcmk_role_started;
role             3804 lib/pengine/unpack.c         history->rsc->role = pcmk_role_promoted;
role             3808 lib/pengine/unpack.c             history->rsc->role = pcmk_role_promoted;
role             3813 lib/pengine/unpack.c             history->rsc->role = pcmk_role_stopped;
role             3821 lib/pengine/unpack.c             history->rsc->role = pcmk_role_unpromoted;
role             3828 lib/pengine/unpack.c         history->rsc->role = pcmk_role_stopped;
role             3830 lib/pengine/unpack.c     } else if (history->rsc->role < pcmk_role_started) {
role             3837 lib/pengine/unpack.c                     history->rsc->id, pcmk_role_text(history->rsc->role),
role             4042 lib/pengine/unpack.c                 history->rsc->role = pcmk_role_stopped;
role             4063 lib/pengine/unpack.c                 history->rsc->role = pcmk_role_promoted;
role             4069 lib/pengine/unpack.c                 history->rsc->role = pcmk_role_promoted;
role             4416 lib/pengine/unpack.c         history->rsc->role = pcmk_role_stopped;
role             4428 lib/pengine/unpack.c         if (history->rsc->role < pcmk_role_started) {
role             4433 lib/pengine/unpack.c         history->rsc->role = pcmk_role_started;
role             4437 lib/pengine/unpack.c         history->rsc->role = pcmk_role_stopped;
role             4442 lib/pengine/unpack.c         history->rsc->role = pcmk_role_promoted;
role             4453 lib/pengine/unpack.c         history->rsc->role = pcmk_role_unpromoted;
role             4457 lib/pengine/unpack.c         history->rsc->role = pcmk_role_started;
role             4464 lib/pengine/unpack.c     } else if (history->rsc->role < pcmk_role_started) {
role             4606 lib/pengine/unpack.c         if (history->rsc->role <= pcmk_role_stopped) {
role             4607 lib/pengine/unpack.c             history->rsc->role = pcmk_role_unknown;
role             4760 lib/pengine/unpack.c         history->rsc->role = pcmk_role_promoted;
role             5003 lib/pengine/unpack.c                     pcmk_role_text(rsc->role),
role              410 lib/pengine/utils.c get_target_role(const pcmk_resource_t *rsc, enum rsc_role_e *role)
role              415 lib/pengine/utils.c     CRM_CHECK(role != NULL, return FALSE);
role              452 lib/pengine/utils.c     *role = local_role;