score              26 include/crm/common/scores.h const char *pcmk_readable_score(int score);
score              27 include/crm/common/scores.h int char2score(const char *score);
score              28 include/crm/common/scores_compat.h char *score2char(int score);
score              31 include/crm/common/scores_compat.h char *score2char_stack(int score, char *buf, size_t len);
score             248 include/crm/pengine/internal.h void resource_location(pcmk_resource_t *rsc, const pcmk_node_t *node, int score,
score             328 include/crm/pengine/internal.h                             const char *score, pcmk_scheduler_t *scheduler);
score              29 include/pcmki/pcmki_scheduler.h     int score;
score              36 lib/common/scores.c char2score(const char *score)
score              38 lib/common/scores.c     if (score == NULL) {
score              41 lib/common/scores.c     } else if (pcmk_str_is_minus_infinity(score)) {
score              44 lib/common/scores.c     } else if (pcmk_str_is_infinity(score)) {
score              47 lib/common/scores.c     } else if (pcmk__str_eq(score, PCMK_VALUE_RED, pcmk__str_casei)) {
score              50 lib/common/scores.c     } else if (pcmk__str_eq(score, PCMK_VALUE_YELLOW, pcmk__str_casei)) {
score              53 lib/common/scores.c     } else if (pcmk__str_eq(score, PCMK_VALUE_GREEN, pcmk__str_casei)) {
score              59 lib/common/scores.c         pcmk__scan_ll(score, &score_ll, 0LL);
score              86 lib/common/scores.c pcmk_readable_score(int score)
score              91 lib/common/scores.c     if (score >= PCMK_SCORE_INFINITY) {
score              94 lib/common/scores.c     } else if (score <= -PCMK_SCORE_INFINITY) {
score              99 lib/common/scores.c         snprintf(score_s, sizeof(score_s), "%d", score);
score             148 lib/common/scores.c score2char(int score)
score             150 lib/common/scores.c     return pcmk__str_copy(pcmk_readable_score(score));
score             154 lib/common/scores.c score2char_stack(int score, char *buf, size_t len)
score             158 lib/common/scores.c     strcpy(buf, pcmk_readable_score(score));
score             590 lib/pacemaker/libpacemaker_private.h void pcmk__new_colocation(const char *id, const char *node_attr, int score,
score              30 lib/pacemaker/pcmk_output.c                                    rsc->id, pcmk_readable_score(cons->score),
score              36 lib/pacemaker/pcmk_output.c                                    rsc->id, pcmk_readable_score(cons->score),
score              52 lib/pacemaker/pcmk_output.c                                         pcmk_readable_score(cons->score),
score             476 lib/pacemaker/pcmk_sched_bundle.c     if (coloc_data->colocation->score < PCMK_SCORE_INFINITY) {
score             548 lib/pacemaker/pcmk_sched_bundle.c                     pcmk_readable_score(colocation->score));
score             566 lib/pacemaker/pcmk_sched_bundle.c         if (colocation->score >= PCMK_SCORE_INFINITY) {
score             584 lib/pacemaker/pcmk_sched_bundle.c     if (colocation->score >= PCMK_SCORE_INFINITY) {
score             274 lib/pacemaker/pcmk_sched_clone.c                     pcmk_readable_score(colocation->score));
score             311 lib/pacemaker/pcmk_sched_clone.c         if (colocation->score >= PCMK_SCORE_INFINITY) {
score             327 lib/pacemaker/pcmk_sched_clone.c     if (colocation->score >= PCMK_SCORE_INFINITY) {
score             183 lib/pacemaker/pcmk_sched_colocation.c                     pcmk_readable_score(colocation->score), rsc->id);
score             243 lib/pacemaker/pcmk_sched_colocation.c                     pcmk_readable_score(colocation->score), rsc->id);
score             348 lib/pacemaker/pcmk_sched_colocation.c pcmk__new_colocation(const char *id, const char *node_attr, int score,
score             363 lib/pacemaker/pcmk_sched_colocation.c     if (score == 0) {
score             385 lib/pacemaker/pcmk_sched_colocation.c     new_con->score = score;
score             397 lib/pacemaker/pcmk_sched_colocation.c     if (score <= -PCMK_SCORE_INFINITY) {
score             439 lib/pacemaker/pcmk_sched_colocation.c unpack_colocation_set(xmlNode *set, int score, const char *coloc_id,
score             448 lib/pacemaker/pcmk_sched_colocation.c     int local_score = score;
score             574 lib/pacemaker/pcmk_sched_colocation.c                   int score, const char *influence_s,
score             589 lib/pacemaker/pcmk_sched_colocation.c     if (score == 0) {
score             637 lib/pacemaker/pcmk_sched_colocation.c         pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, role_2,
score             657 lib/pacemaker/pcmk_sched_colocation.c             pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1,
score             679 lib/pacemaker/pcmk_sched_colocation.c             pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1,
score             720 lib/pacemaker/pcmk_sched_colocation.c                 pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2,
score             734 lib/pacemaker/pcmk_sched_colocation.c     const char *score = crm_element_value(xml_obj, PCMK_XA_SCORE);
score             814 lib/pacemaker/pcmk_sched_colocation.c     if (score) {
score             815 lib/pacemaker/pcmk_sched_colocation.c         score_i = char2score(score);
score             969 lib/pacemaker/pcmk_sched_colocation.c     const char *score = NULL;
score             987 lib/pacemaker/pcmk_sched_colocation.c     score = crm_element_value(xml_obj, PCMK_XA_SCORE);
score             988 lib/pacemaker/pcmk_sched_colocation.c     if (score != NULL) {
score             989 lib/pacemaker/pcmk_sched_colocation.c         score_i = char2score(score);
score            1124 lib/pacemaker/pcmk_sched_colocation.c         if (colocation->score < PCMK_SCORE_INFINITY) {
score            1242 lib/pacemaker/pcmk_sched_colocation.c         } else if (colocation->score >= PCMK_SCORE_INFINITY) {
score            1253 lib/pacemaker/pcmk_sched_colocation.c         } else if (colocation->score <= -PCMK_SCORE_INFINITY) {
score            1271 lib/pacemaker/pcmk_sched_colocation.c                   ((colocation->score < 0)? "anti-" : ""),
score            1282 lib/pacemaker/pcmk_sched_colocation.c                   ((colocation->score < 0)? "anti-" : ""),
score            1318 lib/pacemaker/pcmk_sched_colocation.c     } else if (colocation->score < 0) {
score            1328 lib/pacemaker/pcmk_sched_colocation.c             node->weight = pcmk__add_scores(-colocation->score, node->weight);
score            1335 lib/pacemaker/pcmk_sched_colocation.c                             pcmk_readable_score(colocation->score), primary->id);
score            1348 lib/pacemaker/pcmk_sched_colocation.c             if (colocation->score < PCMK_SCORE_INFINITY) {
score            1349 lib/pacemaker/pcmk_sched_colocation.c                 node->weight = pcmk__add_scores(colocation->score,
score            1357 lib/pacemaker/pcmk_sched_colocation.c                                 pcmk_readable_score(colocation->score));
score            1362 lib/pacemaker/pcmk_sched_colocation.c         if (colocation->score >= PCMK_SCORE_INFINITY) {
score            1377 lib/pacemaker/pcmk_sched_colocation.c     if ((colocation->score <= -PCMK_SCORE_INFINITY)
score            1378 lib/pacemaker/pcmk_sched_colocation.c         || (colocation->score >= PCMK_SCORE_INFINITY)
score            1450 lib/pacemaker/pcmk_sched_colocation.c         if ((colocation->score == PCMK_SCORE_INFINITY)
score            1471 lib/pacemaker/pcmk_sched_colocation.c     priority_delta = score_multiplier * colocation->score;
score            1478 lib/pacemaker/pcmk_sched_colocation.c                     colocation->score);
score            1624 lib/pacemaker/pcmk_sched_colocation.c         int score = 0;
score            1628 lib/pacemaker/pcmk_sched_colocation.c         score = best_node_score_matching_attr(colocation, source_rsc, attr, value);
score            1630 lib/pacemaker/pcmk_sched_colocation.c         if ((factor < 0) && (score < 0)) {
score            1664 lib/pacemaker/pcmk_sched_colocation.c             if ((colocation->primary->stickiness >= -score)
score            1669 lib/pacemaker/pcmk_sched_colocation.c                           pcmk__node_name(node), node->weight, factor, score);
score            1676 lib/pacemaker/pcmk_sched_colocation.c                       pcmk__node_name(node), node->weight, factor, score);
score            1680 lib/pacemaker/pcmk_sched_colocation.c         delta_f = factor * score;
score            1689 lib/pacemaker/pcmk_sched_colocation.c         if ((delta == 0) && (score != 0)) {
score            1702 lib/pacemaker/pcmk_sched_colocation.c                       pcmk__node_name(node), node->weight, factor, score,
score            1710 lib/pacemaker/pcmk_sched_colocation.c                       pcmk__node_name(node), node->weight, factor, score,
score            1716 lib/pacemaker/pcmk_sched_colocation.c                   node->weight, factor, score, new_score);
score            1817 lib/pacemaker/pcmk_sched_colocation.c             float other_factor = factor * constraint->score
score            1883 lib/pacemaker/pcmk_sched_colocation.c     const float factor = colocation->score / (float) PCMK_SCORE_INFINITY;
score             373 lib/pacemaker/pcmk_sched_group.c         if (colocation->score >= PCMK_SCORE_INFINITY) {
score             446 lib/pacemaker/pcmk_sched_group.c         if (colocation->score >= PCMK_SCORE_INFINITY) {
score             467 lib/pacemaker/pcmk_sched_group.c     if (colocation->score >= PCMK_SCORE_INFINITY) {
score             858 lib/pacemaker/pcmk_sched_group.c                 if (colocation->score == PCMK_SCORE_INFINITY) {
score             152 lib/pacemaker/pcmk_sched_instances.c         float factor = colocation->score / (float) PCMK_SCORE_INFINITY;
score             164 lib/pacemaker/pcmk_sched_instances.c         float factor = colocation->score / (float) PCMK_SCORE_INFINITY;
score              24 lib/pacemaker/pcmk_sched_location.c get_node_score(const char *rule, const char *score, bool raw,
score              29 lib/pacemaker/pcmk_sched_location.c     if (score == NULL) {
score              33 lib/pacemaker/pcmk_sched_location.c         score_f = char2score(score);
score              42 lib/pacemaker/pcmk_sched_location.c         attr_score = pcmk__node_attr(node, score, target,
score              46 lib/pacemaker/pcmk_sched_location.c                       rule, pcmk__node_name(node), score);
score              51 lib/pacemaker/pcmk_sched_location.c                       rule, pcmk__node_name(node), attr_score, score);
score             116 lib/pacemaker/pcmk_sched_location.c     const char *score = NULL;
score             154 lib/pacemaker/pcmk_sched_location.c     score = crm_element_value(rule_xml, PCMK_XA_SCORE);
score             155 lib/pacemaker/pcmk_sched_location.c     if (score == NULL) {
score             156 lib/pacemaker/pcmk_sched_location.c         score = crm_element_value(rule_xml, PCMK_XA_SCORE_ATTRIBUTE);
score             157 lib/pacemaker/pcmk_sched_location.c         if (score != NULL) {
score             188 lib/pacemaker/pcmk_sched_location.c         char *result = pcmk__replace_submatches(score, rule_input->rsc_id,
score             193 lib/pacemaker/pcmk_sched_location.c             score = result;
score             209 lib/pacemaker/pcmk_sched_location.c             local->weight = get_node_score(rule_id, score, raw_score, node,
score             217 lib/pacemaker/pcmk_sched_location.c         free((char *)score);
score             231 lib/pacemaker/pcmk_sched_location.c                     const char *role_spec, const char *score,
score             247 lib/pacemaker/pcmk_sched_location.c     if (score == NULL) {
score             248 lib/pacemaker/pcmk_sched_location.c         score = crm_element_value(xml_obj, PCMK_XA_SCORE);
score             251 lib/pacemaker/pcmk_sched_location.c     if ((node != NULL) && (score != NULL)) {
score             252 lib/pacemaker/pcmk_sched_location.c         int score_i = char2score(score);
score              80 lib/pacemaker/pcmk_sched_ordering.c         const char *score = crm_element_value(xml_obj, PCMK_XA_SCORE);
score              84 lib/pacemaker/pcmk_sched_ordering.c         if (score) {
score              86 lib/pacemaker/pcmk_sched_ordering.c             int score_i = char2score(score);
score             307 lib/pacemaker/pcmk_sched_primitive.c         || ((colocation->score < 0)
score             308 lib/pacemaker/pcmk_sched_primitive.c             && (colocation->score > -PCMK_SCORE_INFINITY))) {
score             317 lib/pacemaker/pcmk_sched_primitive.c                         colocation->score,
score             439 lib/pacemaker/pcmk_sched_primitive.c         if ((colocation->score <= -PCMK_SCORE_INFINITY)
score             440 lib/pacemaker/pcmk_sched_primitive.c             || (colocation->score >= PCMK_SCORE_INFINITY)) {
score             447 lib/pacemaker/pcmk_sched_primitive.c         if ((colocation->score <= -PCMK_SCORE_INFINITY)
score             448 lib/pacemaker/pcmk_sched_primitive.c             || (colocation->score >= PCMK_SCORE_INFINITY)) {
score             460 lib/pacemaker/pcmk_sched_primitive.c         if ((colocation->score > -PCMK_SCORE_INFINITY)
score             461 lib/pacemaker/pcmk_sched_primitive.c             && (colocation->score < PCMK_SCORE_INFINITY)) {
score             468 lib/pacemaker/pcmk_sched_primitive.c         if ((colocation->score > -PCMK_SCORE_INFINITY)
score             469 lib/pacemaker/pcmk_sched_primitive.c             && (colocation->score < PCMK_SCORE_INFINITY)) {
score            1038 lib/pacemaker/pcmk_sched_primitive.c             int score;
score            1062 lib/pacemaker/pcmk_sched_primitive.c                 score = 10000;    /* Highly preferred but not essential */
score            1064 lib/pacemaker/pcmk_sched_primitive.c                 score = PCMK_SCORE_INFINITY; // Force to run on same host
score            1066 lib/pacemaker/pcmk_sched_primitive.c             pcmk__new_colocation("#resource-with-container", NULL, score, rsc,
score            1117 lib/pacemaker/pcmk_sched_primitive.c                     ((colocation->score > 0)? "Colocating" : "Anti-colocating"),
score            1119 lib/pacemaker/pcmk_sched_primitive.c                     colocation->score,
score             356 lib/pacemaker/pcmk_sched_promotable.c     const float factor = colocation->score / (float) PCMK_SCORE_INFINITY;
score             368 lib/pacemaker/pcmk_sched_promotable.c                     pcmk_readable_score(colocation->score));
score             681 lib/pacemaker/pcmk_sched_promotable.c         int score = 0;
score             693 lib/pacemaker/pcmk_sched_promotable.c             score += child_score;
score             695 lib/pacemaker/pcmk_sched_promotable.c         return score;
score             757 lib/pacemaker/pcmk_sched_promotable.c         int score, new_score;
score             768 lib/pacemaker/pcmk_sched_promotable.c             score = promotion_score(child_rsc, node, NULL);
score             769 lib/pacemaker/pcmk_sched_promotable.c             if (score > 0) {
score             770 lib/pacemaker/pcmk_sched_promotable.c                 new_score = pcmk__add_scores(node->weight, score);
score             776 lib/pacemaker/pcmk_sched_promotable.c                                     child_rsc->id, pcmk_readable_score(score),
score             782 lib/pacemaker/pcmk_sched_promotable.c             if (score > child_rsc->priority) {
score             786 lib/pacemaker/pcmk_sched_promotable.c                                 child_rsc->id, child_rsc->priority, score);
score             787 lib/pacemaker/pcmk_sched_promotable.c                 child_rsc->priority = score;
score            1166 lib/pacemaker/pcmk_sched_promotable.c     if (colocation->score >= PCMK_SCORE_INFINITY) {
score            1176 lib/pacemaker/pcmk_sched_promotable.c                     attr, colocation->score, dependent->id);
score            1184 lib/pacemaker/pcmk_sched_promotable.c             node->weight = pcmk__add_scores(node->weight, colocation->score);
score            1188 lib/pacemaker/pcmk_sched_promotable.c                             pcmk_readable_score(colocation->score),
score            1234 lib/pacemaker/pcmk_sched_promotable.c     if ((colocation->score >= PCMK_SCORE_INFINITY)
score            1273 lib/pacemaker/pcmk_sched_promotable.c                                             colocation->score);
score            1281 lib/pacemaker/pcmk_sched_promotable.c                         pcmk_readable_score(colocation->score),
score            1284 lib/pacemaker/pcmk_sched_promotable.c         return colocation->score;
score            1287 lib/pacemaker/pcmk_sched_promotable.c     if (colocation->score >= PCMK_SCORE_INFINITY) {
score             271 lib/pacemaker/pcmk_sched_resource.c         if ((constraint->score == PCMK_SCORE_INFINITY) &&
score             293 lib/pacemaker/pcmk_sched_resource.c         if ((constraint->score == PCMK_SCORE_INFINITY) &&
score              78 lib/pengine/pe_health.c         int score = char2score((const char *) value);
score              81 lib/pengine/pe_health.c         *health = pcmk__add_scores(score, *health);
score             121 lib/pengine/pe_health.c     int score = 0;
score             148 lib/pengine/pe_health.c             score = char2score(value);
score             149 lib/pengine/pe_health.c             if (score <= pcmk__score_red) {
score             151 lib/pengine/pe_health.c             } else if ((score <= pcmk__score_yellow)
score            2735 lib/pengine/pe_output.c     const char *score = va_arg(args, const char *);
score            2739 lib/pengine/pe_output.c                        prefix, rsc->id, uname, score);
score            2741 lib/pengine/pe_output.c         out->list_item(out, NULL, "%s: %s = %s", prefix, uname, score);
score            2755 lib/pengine/pe_output.c     const char *score = va_arg(args, const char *);
score            2760 lib/pengine/pe_output.c                                                    PCMK_XA_SCORE, score,
score            2851 lib/pengine/pe_output.c     const char *score = va_arg(args, const char *);
score            2855 lib/pengine/pe_output.c                        child_rsc->id, score);
score            2858 lib/pengine/pe_output.c                        child_rsc->id, pcmk__node_name(chosen), score);
score            2870 lib/pengine/pe_output.c     const char *score = va_arg(args, const char *);
score            2874 lib/pengine/pe_output.c                                                    PCMK_XA_SCORE, score,
score              72 lib/pengine/rules.c     const char *score = NULL;
score              93 lib/pengine/rules.c     score = crm_element_value(pair_a, PCMK_XA_SCORE);
score              94 lib/pengine/rules.c     score_a = char2score(score);
score              96 lib/pengine/rules.c     score = crm_element_value(pair_b, PCMK_XA_SCORE);
score              97 lib/pengine/rules.c     score_b = char2score(score);
score             456 lib/pengine/unpack.c                const char *score, pcmk_scheduler_t *scheduler)
score             470 lib/pengine/unpack.c     new_node->weight = char2score(score);
score             630 lib/pengine/unpack.c     const char *score = NULL;
score             641 lib/pengine/unpack.c             score = crm_element_value(xml_obj, PCMK_XA_SCORE);
score             649 lib/pengine/unpack.c             new_node = pe_create_node(id, uname, type, score, scheduler);
score            2922 lib/pengine/unpack.c     int *score = user_data;
score            2924 lib/pengine/unpack.c     node->weight = *score;
score            3671 lib/pengine/unpack.c     int score = -PCMK_SCORE_INFINITY;
score            3692 lib/pengine/unpack.c     g_hash_table_foreach(fail_rsc->allowed_nodes, set_node_score, &score);
score             322 lib/pengine/utils.c resource_node_score(pcmk_resource_t *rsc, const pcmk_node_t *node, int score,
score             342 lib/pengine/utils.c             resource_node_score(child_rsc, node, score, tag);
score             351 lib/pengine/utils.c     match->weight = pcmk__add_scores(match->weight, score);
score             354 lib/pengine/utils.c                     tag, pcmk_readable_score(score), rsc->id,
score             359 lib/pengine/utils.c resource_location(pcmk_resource_t *rsc, const pcmk_node_t *node, int score,
score             363 lib/pengine/utils.c         resource_node_score(rsc, node, score, tag);
score             371 lib/pengine/utils.c             resource_node_score(rsc, node_iter, score, tag);
score             380 lib/pengine/utils.c             resource_node_score(rsc, node_iter, score, tag);
score             384 lib/pengine/utils.c     if ((node == NULL) && (score == -PCMK_SCORE_INFINITY)) {
score             477 tools/crm_resource_runtime.c                 crm_debug("Checking %s %d", cons->id, cons->score);
score             480 tools/crm_resource_runtime.c                     || (cons->score <= 0)) {