score              47 include/crm/common/util.h const char *pcmk_readable_score(int score);
score              48 include/crm/common/util.h int char2score(const char *score);
score             162 include/crm/common/util_compat.h char *score2char(int score);
score             165 include/crm/common/util_compat.h char *score2char_stack(int score, char *buf, size_t len);
score             416 include/crm/pengine/internal.h void resource_location(pcmk_resource_t *rsc, const pcmk_node_t *node, int score,
score             506 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 >= CRM_SCORE_INFINITY) {
score              94 lib/common/scores.c     } else if (score <= -CRM_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     char *result = strdup(pcmk_readable_score(score));
score             157 lib/common/scores.c score2char_stack(int score, char *buf, size_t len)
score             161 lib/common/scores.c     strcpy(buf, pcmk_readable_score(score));
score             584 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              35 lib/pacemaker/pcmk_output.c                                    rsc->id, pcmk_readable_score(cons->score),
score              51 lib/pacemaker/pcmk_output.c                                         pcmk_readable_score(cons->score),
score             474 lib/pacemaker/pcmk_sched_bundle.c     if (coloc_data->colocation->score < INFINITY) {
score             543 lib/pacemaker/pcmk_sched_bundle.c                  pcmk_readable_score(colocation->score));
score             558 lib/pacemaker/pcmk_sched_bundle.c         } else if (colocation->score >= INFINITY) { // Failure, and it's fatal
score             575 lib/pacemaker/pcmk_sched_bundle.c     if (colocation->score >= INFINITY) {
score             272 lib/pacemaker/pcmk_sched_clone.c                  pcmk_readable_score(colocation->score));
score             306 lib/pacemaker/pcmk_sched_clone.c         } else if (colocation->score >= INFINITY) {
score             322 lib/pacemaker/pcmk_sched_clone.c     if (colocation->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             386 lib/pacemaker/pcmk_sched_colocation.c     new_con->score = score;
score             398 lib/pacemaker/pcmk_sched_colocation.c     if (score <= -INFINITY) {
score             440 lib/pacemaker/pcmk_sched_colocation.c unpack_colocation_set(xmlNode *set, int score, const char *coloc_id,
score             449 lib/pacemaker/pcmk_sched_colocation.c     int local_score = score;
score             566 lib/pacemaker/pcmk_sched_colocation.c                   int score, const char *influence_s,
score             581 lib/pacemaker/pcmk_sched_colocation.c     if (score == 0) {
score             626 lib/pacemaker/pcmk_sched_colocation.c         pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1, role_2,
score             644 lib/pacemaker/pcmk_sched_colocation.c             pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1,
score             664 lib/pacemaker/pcmk_sched_colocation.c             pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2, role_1,
score             702 lib/pacemaker/pcmk_sched_colocation.c                 pcmk__new_colocation(id, NULL, score, rsc_1, rsc_2,
score             716 lib/pacemaker/pcmk_sched_colocation.c     const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE);
score             800 lib/pacemaker/pcmk_sched_colocation.c     if (score) {
score             801 lib/pacemaker/pcmk_sched_colocation.c         score_i = char2score(score);
score             947 lib/pacemaker/pcmk_sched_colocation.c     const char *score = NULL;
score             965 lib/pacemaker/pcmk_sched_colocation.c     score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE);
score             966 lib/pacemaker/pcmk_sched_colocation.c     if (score != NULL) {
score             967 lib/pacemaker/pcmk_sched_colocation.c         score_i = char2score(score);
score            1102 lib/pacemaker/pcmk_sched_colocation.c         if (colocation->score < INFINITY) {
score            1220 lib/pacemaker/pcmk_sched_colocation.c         } else if (colocation->score >= INFINITY) {
score            1230 lib/pacemaker/pcmk_sched_colocation.c         } else if (colocation->score <= -CRM_SCORE_INFINITY) {
score            1248 lib/pacemaker/pcmk_sched_colocation.c                   ((colocation->score < 0)? "anti-" : ""),
score            1259 lib/pacemaker/pcmk_sched_colocation.c                   ((colocation->score < 0)? "anti-" : ""),
score            1294 lib/pacemaker/pcmk_sched_colocation.c     } else if (colocation->score < 0) {
score            1304 lib/pacemaker/pcmk_sched_colocation.c             node->weight = pcmk__add_scores(-colocation->score, node->weight);
score            1310 lib/pacemaker/pcmk_sched_colocation.c                          pcmk_readable_score(colocation->score), primary->id);
score            1323 lib/pacemaker/pcmk_sched_colocation.c             if (colocation->score < CRM_SCORE_INFINITY) {
score            1324 lib/pacemaker/pcmk_sched_colocation.c                 node->weight = pcmk__add_scores(colocation->score,
score            1331 lib/pacemaker/pcmk_sched_colocation.c                              pcmk_readable_score(colocation->score));
score            1336 lib/pacemaker/pcmk_sched_colocation.c         if (colocation->score >= CRM_SCORE_INFINITY) {
score            1351 lib/pacemaker/pcmk_sched_colocation.c     if ((colocation->score <= -INFINITY) || (colocation->score >= INFINITY)
score            1407 lib/pacemaker/pcmk_sched_colocation.c         if ((colocation->score == INFINITY)
score            1423 lib/pacemaker/pcmk_sched_colocation.c     dependent->priority = pcmk__add_scores(score_multiplier * colocation->score,
score            1430 lib/pacemaker/pcmk_sched_colocation.c                  pcmk_readable_score(colocation->score));
score            1538 lib/pacemaker/pcmk_sched_colocation.c         int score = 0;
score            1542 lib/pacemaker/pcmk_sched_colocation.c         score = best_node_score_matching_attr(source_rsc, attr, value);
score            1544 lib/pacemaker/pcmk_sched_colocation.c         if ((factor < 0) && (score < 0)) {
score            1578 lib/pacemaker/pcmk_sched_colocation.c             if ((colocation->primary->stickiness >= -score)
score            1583 lib/pacemaker/pcmk_sched_colocation.c                           pe__node_name(node), node->weight, factor, score);
score            1590 lib/pacemaker/pcmk_sched_colocation.c                       pe__node_name(node), node->weight, factor, score);
score            1594 lib/pacemaker/pcmk_sched_colocation.c         delta_f = factor * score;
score            1603 lib/pacemaker/pcmk_sched_colocation.c         if ((delta == 0) && (score != 0)) {
score            1616 lib/pacemaker/pcmk_sched_colocation.c                       pe__node_name(node), node->weight, factor, score,
score            1624 lib/pacemaker/pcmk_sched_colocation.c                       pe__node_name(node), node->weight, factor, score,
score            1630 lib/pacemaker/pcmk_sched_colocation.c                   node->weight, factor, score, new_score);
score            1731 lib/pacemaker/pcmk_sched_colocation.c             float other_factor = factor * constraint->score / (float) INFINITY;
score            1796 lib/pacemaker/pcmk_sched_colocation.c     const float factor = colocation->score / (float) INFINITY;
score             366 lib/pacemaker/pcmk_sched_group.c     if (colocation->score >= INFINITY) {
score             408 lib/pacemaker/pcmk_sched_group.c         if (colocation->score >= INFINITY) {
score             429 lib/pacemaker/pcmk_sched_group.c     if (colocation->score >= INFINITY) {
score             803 lib/pacemaker/pcmk_sched_group.c                 if (colocation->score == INFINITY) {
score             151 lib/pacemaker/pcmk_sched_instances.c         float factor = colocation->score / (float) INFINITY;
score             163 lib/pacemaker/pcmk_sched_instances.c         float factor = colocation->score / (float) INFINITY;
score              23 lib/pacemaker/pcmk_sched_location.c get_node_score(const char *rule, const char *score, bool raw,
score              28 lib/pacemaker/pcmk_sched_location.c     if (score == NULL) {
score              32 lib/pacemaker/pcmk_sched_location.c         score_f = char2score(score);
score              37 lib/pacemaker/pcmk_sched_location.c         attr_score = pe__node_attribute_calculated(node, score, rsc,
score              43 lib/pacemaker/pcmk_sched_location.c                       rule, pe__node_name(node), score);
score              48 lib/pacemaker/pcmk_sched_location.c                       rule, pe__node_name(node), attr_score, score);
score              61 lib/pacemaker/pcmk_sched_location.c     const char *score = NULL;
score              91 lib/pacemaker/pcmk_sched_location.c     score = crm_element_value(rule_xml, XML_RULE_ATTR_SCORE);
score              92 lib/pacemaker/pcmk_sched_location.c     if (score == NULL) {
score              93 lib/pacemaker/pcmk_sched_location.c         score = crm_element_value(rule_xml, XML_RULE_ATTR_SCORE_ATTRIBUTE);
score              94 lib/pacemaker/pcmk_sched_location.c         if (score != NULL) {
score             111 lib/pacemaker/pcmk_sched_location.c         char *result = pe_expand_re_matches(score, re_match_data);
score             114 lib/pacemaker/pcmk_sched_location.c             score = result;
score             135 lib/pacemaker/pcmk_sched_location.c             node->weight = get_node_score(rule_id, score, raw_score, node, rsc);
score             154 lib/pacemaker/pcmk_sched_location.c         score_f = get_node_score(rule_id, score, raw_score, node, rsc);
score             186 lib/pacemaker/pcmk_sched_location.c         free((char *)score);
score             202 lib/pacemaker/pcmk_sched_location.c                     const char *score, pe_re_match_data_t *re_match_data)
score             217 lib/pacemaker/pcmk_sched_location.c     if (score == NULL) {
score             218 lib/pacemaker/pcmk_sched_location.c         score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE);
score             221 lib/pacemaker/pcmk_sched_location.c     if ((node != NULL) && (score != NULL)) {
score             222 lib/pacemaker/pcmk_sched_location.c         int score_i = char2score(score);
score              79 lib/pacemaker/pcmk_sched_ordering.c         const char *score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE);
score              83 lib/pacemaker/pcmk_sched_ordering.c         if (score) {
score              85 lib/pacemaker/pcmk_sched_ordering.c             int score_i = char2score(score);
score             306 lib/pacemaker/pcmk_sched_primitive.c         || ((colocation->score < 0) && (colocation->score > -INFINITY))) {
score             315 lib/pacemaker/pcmk_sched_primitive.c                      colocation->score, role2text(colocation->dependent_role));
score             436 lib/pacemaker/pcmk_sched_primitive.c         if ((colocation->score <= -CRM_SCORE_INFINITY)
score             437 lib/pacemaker/pcmk_sched_primitive.c             || (colocation->score >= CRM_SCORE_INFINITY)) {
score             444 lib/pacemaker/pcmk_sched_primitive.c         if ((colocation->score <= -CRM_SCORE_INFINITY)
score             445 lib/pacemaker/pcmk_sched_primitive.c             || (colocation->score >= CRM_SCORE_INFINITY)) {
score             457 lib/pacemaker/pcmk_sched_primitive.c         if ((colocation->score > -CRM_SCORE_INFINITY)
score             458 lib/pacemaker/pcmk_sched_primitive.c             && (colocation->score < CRM_SCORE_INFINITY)) {
score             465 lib/pacemaker/pcmk_sched_primitive.c         if ((colocation->score > -CRM_SCORE_INFINITY)
score             466 lib/pacemaker/pcmk_sched_primitive.c             && (colocation->score < CRM_SCORE_INFINITY)) {
score            1026 lib/pacemaker/pcmk_sched_primitive.c             int score;
score            1050 lib/pacemaker/pcmk_sched_primitive.c                 score = 10000;    /* Highly preferred but not essential */
score            1052 lib/pacemaker/pcmk_sched_primitive.c                 score = INFINITY; /* Force them to run on the same host */
score            1054 lib/pacemaker/pcmk_sched_primitive.c             pcmk__new_colocation("#resource-with-container", NULL, score, rsc,
score            1103 lib/pacemaker/pcmk_sched_primitive.c                  ((colocation->score > 0)? "Colocating" : "Anti-colocating"),
score            1104 lib/pacemaker/pcmk_sched_primitive.c                  dependent->id, primary->id, colocation->id, colocation->score,
score             353 lib/pacemaker/pcmk_sched_promotable.c     float factor = colocation->score / (float) INFINITY;
score             358 lib/pacemaker/pcmk_sched_promotable.c     if (colocation->score < INFINITY) {
score             364 lib/pacemaker/pcmk_sched_promotable.c                  pcmk_readable_score(colocation->score));
score             383 lib/pacemaker/pcmk_sched_promotable.c     const float factor = colocation->score / (float) INFINITY;
score             395 lib/pacemaker/pcmk_sched_promotable.c                  pcmk_readable_score(colocation->score));
score             699 lib/pacemaker/pcmk_sched_promotable.c         int score = 0;
score             711 lib/pacemaker/pcmk_sched_promotable.c             score += child_score;
score             713 lib/pacemaker/pcmk_sched_promotable.c         return score;
score             774 lib/pacemaker/pcmk_sched_promotable.c         int score, new_score;
score             785 lib/pacemaker/pcmk_sched_promotable.c             score = promotion_score(child_rsc, node, NULL);
score             786 lib/pacemaker/pcmk_sched_promotable.c             if (score > 0) {
score             787 lib/pacemaker/pcmk_sched_promotable.c                 new_score = pcmk__add_scores(node->weight, score);
score             793 lib/pacemaker/pcmk_sched_promotable.c                                  child_rsc->id, pcmk_readable_score(score),
score             799 lib/pacemaker/pcmk_sched_promotable.c             if (score > child_rsc->priority) {
score             802 lib/pacemaker/pcmk_sched_promotable.c                              child_rsc->id, child_rsc->priority, score);
score             803 lib/pacemaker/pcmk_sched_promotable.c                 child_rsc->priority = score;
score            1178 lib/pacemaker/pcmk_sched_promotable.c     if (colocation->score >= INFINITY) {
score            1188 lib/pacemaker/pcmk_sched_promotable.c                  colocation->score, dependent->id);
score            1196 lib/pacemaker/pcmk_sched_promotable.c             node->weight = pcmk__add_scores(node->weight, colocation->score);
score            1199 lib/pacemaker/pcmk_sched_promotable.c                          colocation->id, pcmk_readable_score(colocation->score),
score            1245 lib/pacemaker/pcmk_sched_promotable.c     if ((colocation->score >= INFINITY)
score            1282 lib/pacemaker/pcmk_sched_promotable.c                                             colocation->score);
score            1289 lib/pacemaker/pcmk_sched_promotable.c                      pcmk_readable_score(colocation->score),
score            1293 lib/pacemaker/pcmk_sched_promotable.c     } else if (colocation->score >= INFINITY) {
score             271 lib/pacemaker/pcmk_sched_resource.c         if ((constraint->score == INFINITY) &&
score             293 lib/pacemaker/pcmk_sched_resource.c         if ((constraint->score == INFINITY) &&
score              77 lib/pengine/pe_health.c         int score = char2score((const char *) value);
score              80 lib/pengine/pe_health.c         *health = pcmk__add_scores(score, *health);
score             120 lib/pengine/pe_health.c     int score = 0;
score             147 lib/pengine/pe_health.c             score = char2score(value);
score             148 lib/pengine/pe_health.c             if (score <= pcmk__score_red) {
score             150 lib/pengine/pe_health.c             } else if ((score <= pcmk__score_yellow)
score            2532 lib/pengine/pe_output.c     const char *score = va_arg(args, const char *);
score            2536 lib/pengine/pe_output.c                        prefix, rsc->id, uname, score);
score            2538 lib/pengine/pe_output.c         out->list_item(out, NULL, "%s: %s = %s", prefix, uname, score);
score            2552 lib/pengine/pe_output.c     const char *score = va_arg(args, const char *);
score            2557 lib/pengine/pe_output.c                                                    "score", score,
score            2644 lib/pengine/pe_output.c     const char *score = va_arg(args, const char *);
score            2649 lib/pengine/pe_output.c                    score);
score            2660 lib/pengine/pe_output.c     const char *score = va_arg(args, const char *);
score            2664 lib/pengine/pe_output.c                                                    "score", score,
score             317 lib/pengine/rules.c     int score;                  // This block's score for sorting
score             349 lib/pengine/rules.c     if (pair_a->score < pair_b->score) {
score             351 lib/pengine/rules.c     } else if (pair_a->score > pair_b->score) {
score             433 lib/pengine/rules.c               pair->name, pair->score,
score             463 lib/pengine/rules.c             const char *score = NULL;
score             478 lib/pengine/rules.c             score = crm_element_value(expanded_attr_set, XML_RULE_ATTR_SCORE);
score             479 lib/pengine/rules.c             pair->score = char2score(score);
score             441 lib/pengine/unpack.c                const char *score, pcmk_scheduler_t *scheduler)
score             454 lib/pengine/unpack.c     new_node->weight = char2score(score);
score             604 lib/pengine/unpack.c     const char *score = NULL;
score             615 lib/pengine/unpack.c             score = crm_element_value(xml_obj, XML_RULE_ATTR_SCORE);
score             623 lib/pengine/unpack.c             new_node = pe_create_node(id, uname, type, score, scheduler);
score            2821 lib/pengine/unpack.c     int *score = user_data;
score            2823 lib/pengine/unpack.c     node->weight = *score;
score            3568 lib/pengine/unpack.c     int score = -INFINITY;
score            3588 lib/pengine/unpack.c     g_hash_table_foreach(fail_rsc->allowed_nodes, set_node_score, &score);
score             323 lib/pengine/utils.c resource_node_score(pcmk_resource_t *rsc, const pcmk_node_t *node, int score,
score             343 lib/pengine/utils.c             resource_node_score(child_rsc, node, score, tag);
score             352 lib/pengine/utils.c     match->weight = pcmk__add_scores(match->weight, score);
score             355 lib/pengine/utils.c                  tag, pcmk_readable_score(score), rsc->id, pe__node_name(node),
score             360 lib/pengine/utils.c resource_location(pcmk_resource_t *rsc, const pcmk_node_t *node, int score,
score             364 lib/pengine/utils.c         resource_node_score(rsc, node, score, tag);
score             372 lib/pengine/utils.c             resource_node_score(rsc, node_iter, score, tag);
score             381 lib/pengine/utils.c             resource_node_score(rsc, node_iter, score, tag);
score             385 lib/pengine/utils.c     if (node == NULL && score == -INFINITY) {
score             427 tools/crm_resource_runtime.c                 crm_debug("Checking %s %d", cons->id, cons->score);
score             429 tools/crm_resource_runtime.c                     && (cons->score > 0)) {