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              951 lib/pacemaker/libpacemaker_private.h                             const pcmk_node_t *node, enum rsc_role_e role,
role              957 lib/pacemaker/libpacemaker_private.h                                                 enum rsc_role_e role,
role              139 lib/pacemaker/pcmk_output.c     if ((rsc->role > pcmk_role_started)
role              148 lib/pacemaker/pcmk_output.c     if (rsc->role == rsc->next_role) {
role              154 lib/pacemaker/pcmk_output.c         details = crm_strdup_printf("%s -> %s %s", pcmk_role_text(rsc->role),
role              164 lib/pacemaker/pcmk_output.c         details = crm_strdup_printf("%s %s", pcmk_role_text(rsc->role),
role              173 lib/pacemaker/pcmk_output.c         details = crm_strdup_printf("%s %s", pcmk_role_text(rsc->role),
role              184 lib/pacemaker/pcmk_output.c                                     pcmk_role_text(rsc->role));
role              193 lib/pacemaker/pcmk_output.c         details = crm_strdup_printf("%s -> %s %s", pcmk_role_text(rsc->role),
role              200 lib/pacemaker/pcmk_output.c                                     pcmk_role_text(rsc->role),
role              259 lib/pacemaker/pcmk_output.c     if ((rsc->role > pcmk_role_started)
role              268 lib/pacemaker/pcmk_output.c     if (rsc->role == rsc->next_role) {
role              282 lib/pacemaker/pcmk_output.c                            PCMK_XA_ROLE, pcmk_role_text(rsc->role),
role              294 lib/pacemaker/pcmk_output.c                            PCMK_XA_ROLE, pcmk_role_text(rsc->role),
role              305 lib/pacemaker/pcmk_output.c                            PCMK_XA_ROLE, pcmk_role_text(rsc->role),
role              318 lib/pacemaker/pcmk_output.c                            PCMK_XA_ROLE, pcmk_role_text(rsc->role),
role              331 lib/pacemaker/pcmk_output.c                            PCMK_XA_ROLE, pcmk_role_text(rsc->role),
role              339 lib/pacemaker/pcmk_output.c                            PCMK_XA_ROLE, pcmk_role_text(rsc->role),
role             1097 lib/pacemaker/pcmk_output.c                        rsc->id, pcmk_role_text(rsc->role),
role             1150 lib/pacemaker/pcmk_output.c     if (rsc->role == rsc->next_role) {
role             1180 lib/pacemaker/pcmk_output.c                                pcmk_role_text(rsc->role),
role             1278 lib/pacemaker/pcmk_output.c     } else if (rsc->role == pcmk_role_promoted) {
role             1288 lib/pacemaker/pcmk_output.c     } else if ((rsc->role == pcmk_role_stopped)
role              875 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              182 lib/pacemaker/pcmk_sched_location.c     location_rule->role_filter = role;
role              253 lib/pacemaker/pcmk_sched_location.c         enum rsc_role_e role = pcmk_role_unknown;
role              266 lib/pacemaker/pcmk_sched_location.c         if (parse_location_role(role_spec, &role)) {
role              282 lib/pacemaker/pcmk_sched_location.c         location->role_filter = role;
role              496 lib/pacemaker/pcmk_sched_location.c     const char *role;
role              509 lib/pacemaker/pcmk_sched_location.c     role = crm_element_value(set, PCMK_XA_ROLE);
role              523 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              236 lib/pacemaker/pcmk_sched_probes.c         if (guest->role == pcmk_role_stopped) {
role              814 lib/pacemaker/pcmk_sched_promotable.c     if (rsc->role == pcmk_role_started) {
role              816 lib/pacemaker/pcmk_sched_promotable.c         rsc->role = pcmk_role_unpromoted;
role             1019 lib/pacemaker/pcmk_sched_promotable.c     if ((instance->role < pcmk_role_promoted)
role             1030 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              792 lib/pengine/complex.c     (*rsc)->role = pcmk_role_stopped;
role             1272 lib/pengine/complex.c                || (rsc->role > pcmk_role_stopped)) {
role             1292 lib/pengine/complex.c pe__set_next_role(pcmk_resource_t *rsc, enum rsc_role_e role, const char *why)
role             1295 lib/pengine/complex.c     if (rsc->next_role != role) {
role             1298 lib/pengine/complex.c                         pcmk_role_text(role), why);
role             1299 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              634 lib/pengine/pe_output.c role_desc(enum rsc_role_e role)
role              636 lib/pengine/pe_output.c     if (role == pcmk_role_promoted) {
role              328 lib/pengine/rules.c pe_test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role,
role              356 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now)
role              358 lib/pengine/rules.c     return pe_test_rule(rule, node_hash, role, now, NULL, NULL);
role              362 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              369 lib/pengine/rules.c     return pe_test_rule(rule, node_hash, role, now, NULL, &match_data);
role              373 lib/pengine/rules.c pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role,
role              376 lib/pengine/rules.c     return pe_test_rule(rule, node_hash, role, now, NULL, match_data);
role              380 lib/pengine/rules.c pe_test_expression(xmlNode *expr, GHashTable *node_hash, enum rsc_role_e role,
role              403 lib/pengine/rules.c test_expression(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now)
role              405 lib/pengine/rules.c     return pe_test_expression(expr, node_hash, role, now, NULL, NULL);
role              409 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              416 lib/pengine/rules.c     return pe_test_expression(expr, node_hash, role, now, NULL, &match_data);
role              421 lib/pengine/rules.c                         enum rsc_role_e role, crm_time_t *now,
role              424 lib/pengine/rules.c     return pe_test_expression(expr, node_hash, role, now, NULL, match_data);
role             1379 lib/pengine/unpack.c             if ((rsc == NULL) || (rsc->role != pcmk_role_started)
role             1380 lib/pengine/unpack.c                 || (rsc->container->role != pcmk_role_started)) {
role             1397 lib/pengine/unpack.c                     && (rsc->role != pcmk_role_started))) {
role             1822 lib/pengine/unpack.c     if (rsc->role == pcmk_role_started) {
role             1829 lib/pengine/unpack.c     if ((rsc->role == pcmk_role_started)
role             1849 lib/pengine/unpack.c     } else if ((rsc->role == pcmk_role_stopped)
role             1851 lib/pengine/unpack.c                    && (container->role == pcmk_role_stopped))) {
role             2331 lib/pengine/unpack.c                     rsc->id, pcmk_role_text(rsc->role), pcmk__node_name(node),
role             2335 lib/pengine/unpack.c     if (rsc->role != pcmk_role_unknown) {
role             2357 lib/pengine/unpack.c     if ((rsc->role > pcmk_role_stopped)
role             2462 lib/pengine/unpack.c             if ((rsc->role != pcmk_role_stopped)
role             2463 lib/pengine/unpack.c                 && (rsc->role != pcmk_role_unknown)) {
role             2482 lib/pengine/unpack.c             } else if ((rsc->role != pcmk_role_stopped)
role             2483 lib/pengine/unpack.c                        && (rsc->role != pcmk_role_unknown)) {
role             2506 lib/pengine/unpack.c             if (rsc->role > pcmk_role_stopped) {
role             2529 lib/pengine/unpack.c     if ((rsc->role != pcmk_role_stopped)
role             2530 lib/pengine/unpack.c         && (rsc->role != pcmk_role_unknown)) {
role             2584 lib/pengine/unpack.c     if ((rsc->role == pcmk_role_stopped)
role             2590 lib/pengine/unpack.c         rsc->role = pcmk_role_started;
role             2810 lib/pengine/unpack.c     saved_role = rsc->role;
role             2811 lib/pengine/unpack.c     rsc->role = pcmk_role_unknown;
role             2845 lib/pengine/unpack.c     if (saved_role > rsc->role) {
role             2846 lib/pengine/unpack.c         rsc->role = saved_role;
role             2945 lib/pengine/unpack.c         rsc->role = pcmk_role_unpromoted;
role             2947 lib/pengine/unpack.c         rsc->role = pcmk_role_started;
role             3267 lib/pengine/unpack.c     rsc->role = pcmk_role_stopped;
role             3369 lib/pengine/unpack.c     history->rsc->role = pcmk_role_started;
role             3446 lib/pengine/unpack.c     history->rsc->role = pcmk_role_started;
role             3513 lib/pengine/unpack.c     history->rsc->role = pcmk_role_started;
role             3837 lib/pengine/unpack.c         history->rsc->role = pcmk_role_promoted;
role             3841 lib/pengine/unpack.c             history->rsc->role = pcmk_role_promoted;
role             3846 lib/pengine/unpack.c             history->rsc->role = pcmk_role_stopped;
role             3854 lib/pengine/unpack.c             history->rsc->role = pcmk_role_unpromoted;
role             3861 lib/pengine/unpack.c         history->rsc->role = pcmk_role_stopped;
role             3863 lib/pengine/unpack.c     } else if (history->rsc->role < pcmk_role_started) {
role             3870 lib/pengine/unpack.c                     history->rsc->id, pcmk_role_text(history->rsc->role),
role             4075 lib/pengine/unpack.c                 history->rsc->role = pcmk_role_stopped;
role             4096 lib/pengine/unpack.c                 history->rsc->role = pcmk_role_promoted;
role             4102 lib/pengine/unpack.c                 history->rsc->role = pcmk_role_promoted;
role             4449 lib/pengine/unpack.c         history->rsc->role = pcmk_role_stopped;
role             4461 lib/pengine/unpack.c         if (history->rsc->role < pcmk_role_started) {
role             4466 lib/pengine/unpack.c         history->rsc->role = pcmk_role_started;
role             4470 lib/pengine/unpack.c         history->rsc->role = pcmk_role_stopped;
role             4475 lib/pengine/unpack.c         history->rsc->role = pcmk_role_promoted;
role             4486 lib/pengine/unpack.c         history->rsc->role = pcmk_role_unpromoted;
role             4490 lib/pengine/unpack.c         history->rsc->role = pcmk_role_started;
role             4497 lib/pengine/unpack.c     } else if (history->rsc->role < pcmk_role_started) {
role             4639 lib/pengine/unpack.c         if (history->rsc->role <= pcmk_role_stopped) {
role             4640 lib/pengine/unpack.c             history->rsc->role = pcmk_role_unknown;
role             4793 lib/pengine/unpack.c         history->rsc->role = pcmk_role_promoted;
role             5036 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;