score              48 daemons/controld/controld_fencing.c     int score = 0;
score              49 daemons/controld/controld_fencing.c     int rc = pcmk_parse_score(value, &score, DEFAULT_STONITH_MAX_ATTEMPTS);
score              52 daemons/controld/controld_fencing.c     CRM_CHECK((rc == pcmk_rc_ok) && (score > 0), return);
score              54 daemons/controld/controld_fencing.c     if (stonith_max_attempts != score) {
score              56 daemons/controld/controld_fencing.c                   score, stonith_max_attempts);
score              58 daemons/controld/controld_fencing.c     stonith_max_attempts = score;
score              26 include/crm/common/scores.h int pcmk_parse_score(const char *score_s, int *score, int default_score);
score              27 include/crm/common/scores.h const char *pcmk_readable_score(int score);
score              28 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             452 include/crm/common/xml_internal.h int pcmk__xe_get_score(const xmlNode *xml, const char *name, int *score,
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                             int score, pcmk_scheduler_t *scheduler);
score              29 include/pcmki/pcmki_scheduler.h     int score;
score              84 lib/common/health.c     int score = 0;
score              91 lib/common/health.c     rc = pcmk_parse_score(value, &score, 0);
score              96 lib/common/health.c     return score;
score              39 lib/common/scores.c pcmk_parse_score(const char *score_s, int *score, int default_score)
score              97 lib/common/scores.c     if (score != NULL) {
score              98 lib/common/scores.c         *score = local_score;
score             115 lib/common/scores.c char2score(const char *score)
score             119 lib/common/scores.c     (void) pcmk_parse_score(score, &result, 0);
score             137 lib/common/scores.c pcmk_readable_score(int score)
score             142 lib/common/scores.c     if (score >= PCMK_SCORE_INFINITY) {
score             145 lib/common/scores.c     } else if (score <= -PCMK_SCORE_INFINITY) {
score             150 lib/common/scores.c         snprintf(score_s, sizeof(score_s), "%d", score);
score             199 lib/common/scores.c score2char(int score)
score             201 lib/common/scores.c     return pcmk__str_copy(pcmk_readable_score(score));
score             205 lib/common/scores.c score2char_stack(int score, char *buf, size_t len)
score             209 lib/common/scores.c     strcpy(buf, pcmk_readable_score(score));
score              26 lib/common/tests/scores/pcmk_parse_score_test.c     int score = 0;
score              27 lib/common/tests/scores/pcmk_parse_score_test.c     int rc = pcmk_parse_score(score_s, &score, default_score);
score              30 lib/common/tests/scores/pcmk_parse_score_test.c     assert_int_equal(score, expected_score);
score              26 lib/common/tests/xml/pcmk__xe_get_score_test.c     int score = 0;
score              31 lib/common/tests/xml/pcmk__xe_get_score_test.c     rc = pcmk__xe_get_score(xml, "test_attr", &score, default_score);
score              33 lib/common/tests/xml/pcmk__xe_get_score_test.c     assert_int_equal(score, expected_score);
score              40 lib/common/tests/xml/pcmk__xe_get_score_test.c     int score = 0;
score              43 lib/common/tests/xml/pcmk__xe_get_score_test.c     assert_int_equal(pcmk__xe_get_score(NULL, NULL, &score, default_score),
score              45 lib/common/tests/xml/pcmk__xe_get_score_test.c     assert_int_equal(pcmk__xe_get_score(xml, NULL, &score, default_score),
score              47 lib/common/tests/xml/pcmk__xe_get_score_test.c     assert_int_equal(pcmk__xe_get_score(NULL, "test", &score, default_score),
score             549 lib/common/xml.c pcmk__xe_get_score(const xmlNode *xml, const char *name, int *score,
score             556 lib/common/xml.c     return pcmk_parse_score(value, score, default_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              45 lib/pacemaker/pcmk_output.c     const char *score = pcmk_readable_score(cons->score);
score              60 lib/pacemaker/pcmk_output.c                                  PCMK_XA_SCORE, 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             272 lib/pacemaker/pcmk_sched_clone.c                     pcmk_readable_score(colocation->score));
score             309 lib/pacemaker/pcmk_sched_clone.c         if (colocation->score >= PCMK_SCORE_INFINITY) {
score             325 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            1170 lib/pacemaker/pcmk_sched_colocation.c         if (colocation->score < PCMK_SCORE_INFINITY) {
score            1288 lib/pacemaker/pcmk_sched_colocation.c         } else if (colocation->score >= PCMK_SCORE_INFINITY) {
score            1299 lib/pacemaker/pcmk_sched_colocation.c         } else if (colocation->score <= -PCMK_SCORE_INFINITY) {
score            1317 lib/pacemaker/pcmk_sched_colocation.c                   ((colocation->score < 0)? "anti-" : ""),
score            1328 lib/pacemaker/pcmk_sched_colocation.c                   ((colocation->score < 0)? "anti-" : ""),
score            1364 lib/pacemaker/pcmk_sched_colocation.c     } else if (colocation->score < 0) {
score            1374 lib/pacemaker/pcmk_sched_colocation.c             node->weight = pcmk__add_scores(-colocation->score, node->weight);
score            1381 lib/pacemaker/pcmk_sched_colocation.c                             pcmk_readable_score(colocation->score), primary->id);
score            1394 lib/pacemaker/pcmk_sched_colocation.c             if (colocation->score < PCMK_SCORE_INFINITY) {
score            1395 lib/pacemaker/pcmk_sched_colocation.c                 node->weight = pcmk__add_scores(colocation->score,
score            1403 lib/pacemaker/pcmk_sched_colocation.c                                 pcmk_readable_score(colocation->score));
score            1408 lib/pacemaker/pcmk_sched_colocation.c         if (colocation->score >= PCMK_SCORE_INFINITY) {
score            1423 lib/pacemaker/pcmk_sched_colocation.c     if ((colocation->score <= -PCMK_SCORE_INFINITY)
score            1424 lib/pacemaker/pcmk_sched_colocation.c         || (colocation->score >= PCMK_SCORE_INFINITY)
score            1496 lib/pacemaker/pcmk_sched_colocation.c         if ((colocation->score == PCMK_SCORE_INFINITY)
score            1517 lib/pacemaker/pcmk_sched_colocation.c     priority_delta = score_multiplier * colocation->score;
score            1524 lib/pacemaker/pcmk_sched_colocation.c                     colocation->score);
score            1670 lib/pacemaker/pcmk_sched_colocation.c         int score = 0;
score            1674 lib/pacemaker/pcmk_sched_colocation.c         score = best_node_score_matching_attr(colocation, source_rsc, attr, value);
score            1676 lib/pacemaker/pcmk_sched_colocation.c         if ((factor < 0) && (score < 0)) {
score            1710 lib/pacemaker/pcmk_sched_colocation.c             if ((colocation->primary->stickiness >= -score)
score            1715 lib/pacemaker/pcmk_sched_colocation.c                           pcmk__node_name(node), node->weight, factor, score);
score            1722 lib/pacemaker/pcmk_sched_colocation.c                       pcmk__node_name(node), node->weight, factor, score);
score            1726 lib/pacemaker/pcmk_sched_colocation.c         delta_f = factor * score;
score            1735 lib/pacemaker/pcmk_sched_colocation.c         if ((delta == 0) && (score != 0)) {
score            1748 lib/pacemaker/pcmk_sched_colocation.c                       pcmk__node_name(node), node->weight, factor, score,
score            1756 lib/pacemaker/pcmk_sched_colocation.c                       pcmk__node_name(node), node->weight, factor, score,
score            1762 lib/pacemaker/pcmk_sched_colocation.c                   node->weight, factor, score, new_score);
score            1863 lib/pacemaker/pcmk_sched_colocation.c             float other_factor = factor * constraint->score
score            1929 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             187 lib/pacemaker/pcmk_sched_location.c         char *result = pcmk__replace_submatches(score, rule_input->rsc_id,
score             192 lib/pacemaker/pcmk_sched_location.c             score = result;
score             208 lib/pacemaker/pcmk_sched_location.c             local->weight = get_node_score(rule_id, score, raw_score, node,
score             216 lib/pacemaker/pcmk_sched_location.c         free((char *)score);
score             230 lib/pacemaker/pcmk_sched_location.c                     const char *role_spec, const char *score,
score             246 lib/pacemaker/pcmk_sched_location.c     if (score == NULL) {
score             247 lib/pacemaker/pcmk_sched_location.c         score = crm_element_value(xml_obj, PCMK_XA_SCORE);
score             250 lib/pacemaker/pcmk_sched_location.c     if ((node != NULL) && (score != NULL)) {
score             251 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              88 lib/pacemaker/pcmk_sched_ordering.c             (void) pcmk_parse_score(score, &score_i, 0);
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             668 lib/pacemaker/pcmk_sched_promotable.c     int score = 0;
score             683 lib/pacemaker/pcmk_sched_promotable.c         int score = 0;
score             695 lib/pacemaker/pcmk_sched_promotable.c             score += child_score;
score             697 lib/pacemaker/pcmk_sched_promotable.c         return score;
score             738 lib/pacemaker/pcmk_sched_promotable.c     rc = pcmk_parse_score(attr_value, &score, 0);
score             744 lib/pacemaker/pcmk_sched_promotable.c     return score;
score             766 lib/pacemaker/pcmk_sched_promotable.c         int score, new_score;
score             777 lib/pacemaker/pcmk_sched_promotable.c             score = promotion_score(child_rsc, node, NULL);
score             778 lib/pacemaker/pcmk_sched_promotable.c             if (score > 0) {
score             779 lib/pacemaker/pcmk_sched_promotable.c                 new_score = pcmk__add_scores(node->weight, score);
score             785 lib/pacemaker/pcmk_sched_promotable.c                                     child_rsc->id, pcmk_readable_score(score),
score             791 lib/pacemaker/pcmk_sched_promotable.c             if (score > child_rsc->priority) {
score             795 lib/pacemaker/pcmk_sched_promotable.c                                 child_rsc->id, child_rsc->priority, score);
score             796 lib/pacemaker/pcmk_sched_promotable.c                 child_rsc->priority = score;
score            1175 lib/pacemaker/pcmk_sched_promotable.c     if (colocation->score >= PCMK_SCORE_INFINITY) {
score            1185 lib/pacemaker/pcmk_sched_promotable.c                     attr, colocation->score, dependent->id);
score            1193 lib/pacemaker/pcmk_sched_promotable.c             node->weight = pcmk__add_scores(node->weight, colocation->score);
score            1197 lib/pacemaker/pcmk_sched_promotable.c                             pcmk_readable_score(colocation->score),
score            1243 lib/pacemaker/pcmk_sched_promotable.c     if ((colocation->score >= PCMK_SCORE_INFINITY)
score            1282 lib/pacemaker/pcmk_sched_promotable.c                                             colocation->score);
score            1290 lib/pacemaker/pcmk_sched_promotable.c                         pcmk_readable_score(colocation->score),
score            1293 lib/pacemaker/pcmk_sched_promotable.c         return colocation->score;
score            1296 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             303 lib/pengine/failcounts.c         int score = 0;
score             304 lib/pengine/failcounts.c         int rc = pcmk_parse_score(value, &score, 0);
score             313 lib/pengine/failcounts.c         fc_data->failcount = pcmk__add_scores(fc_data->failcount, score);
score              84 lib/pengine/pe_health.c         int score = 0;
score              85 lib/pengine/pe_health.c         int rc = pcmk_parse_score((const char *) value, &score, 0);
score              94 lib/pengine/pe_health.c         health_sum->sum = pcmk__add_scores(score, health_sum->sum);
score             136 lib/pengine/pe_health.c     int score = 0;
score             164 lib/pengine/pe_health.c             parse_rc = pcmk_parse_score(value, &score, 0);
score             173 lib/pengine/pe_health.c             if (score <= pcmk__score_red) {
score             175 lib/pengine/pe_health.c             } else if ((score <= pcmk__score_yellow)
score            2746 lib/pengine/pe_output.c     const char *score = va_arg(args, const char *);
score            2750 lib/pengine/pe_output.c                        prefix, rsc->id, uname, score);
score            2752 lib/pengine/pe_output.c         out->list_item(out, NULL, "%s: %s = %s", prefix, uname, score);
score            2766 lib/pengine/pe_output.c     const char *score = va_arg(args, const char *);
score            2771 lib/pengine/pe_output.c                                                    PCMK_XA_SCORE, score,
score            2862 lib/pengine/pe_output.c     const char *score = va_arg(args, const char *);
score            2866 lib/pengine/pe_output.c                        child_rsc->id, score);
score            2869 lib/pengine/pe_output.c                        child_rsc->id, pcmk__node_name(chosen), score);
score            2881 lib/pengine/pe_output.c     const char *score = va_arg(args, const char *);
score            2885 lib/pengine/pe_output.c                                                    PCMK_XA_SCORE, score,
score             471 lib/pengine/unpack.c                int score, pcmk_scheduler_t *scheduler)
score             485 lib/pengine/unpack.c     new_node->weight = score;
score             650 lib/pengine/unpack.c             int score = 0;
score             651 lib/pengine/unpack.c             int rc = pcmk__xe_get_score(xml_obj, PCMK_XA_SCORE, &score, 0);
score             673 lib/pengine/unpack.c             new_node = pe_create_node(id, uname, type, score, scheduler);
score            2955 lib/pengine/unpack.c     int *score = user_data;
score            2957 lib/pengine/unpack.c     node->weight = *score;
score            3704 lib/pengine/unpack.c     int score = -PCMK_SCORE_INFINITY;
score            3725 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)) {