constraint 79 include/pcmki/pcmki_sched_allocate.h pcmk__colocation_t *constraint, constraint 82 include/pcmki/pcmki_sched_allocate.h pcmk__colocation_t *constraint, constraint 86 include/pcmki/pcmki_sched_allocate.h void native_rsc_location(pe_resource_t *rsc, pe__location_t *constraint); constraint 97 include/pcmki/pcmki_sched_allocate.h pcmk__colocation_t *constraint, constraint 100 include/pcmki/pcmki_sched_allocate.h pcmk__colocation_t *constraint, constraint 103 include/pcmki/pcmki_sched_allocate.h void group_rsc_location(pe_resource_t *rsc, pe__location_t *constraint); constraint 118 include/pcmki/pcmki_sched_allocate.h pcmk__colocation_t *constraint, constraint 122 include/pcmki/pcmki_sched_allocate.h pcmk__colocation_t *constraint, constraint 124 include/pcmki/pcmki_sched_allocate.h void pcmk__bundle_rsc_location(pe_resource_t *rsc, pe__location_t *constraint); constraint 135 include/pcmki/pcmki_sched_allocate.h pcmk__colocation_t *constraint, constraint 138 include/pcmki/pcmki_sched_allocate.h pcmk__colocation_t *constraint, constraint 140 include/pcmki/pcmki_sched_allocate.h void clone_rsc_location(pe_resource_t *rsc, pe__location_t *constraint); constraint 154 include/pcmki/pcmki_sched_allocate.h pcmk__colocation_t *constraint, constraint 24 include/pcmki/pcmki_sched_utils.h pcmk__colocation_t *invert_constraint(pcmk__colocation_t *constraint); constraint 26 include/pcmki/pcmki_sched_utils.h pe__location_t *copy_constraint(pe__location_t *constraint); constraint 75 lib/pacemaker/libpacemaker_private.h void pcmk__apply_location(pe__location_t *constraint, pe_resource_t *rsc); constraint 89 lib/pacemaker/libpacemaker_private.h pcmk__colocation_t *constraint, constraint 95 lib/pacemaker/libpacemaker_private.h pcmk__colocation_t *constraint); constraint 100 lib/pacemaker/libpacemaker_private.h pcmk__colocation_t *constraint); constraint 413 lib/pacemaker/pcmk_sched_bundle.c pcmk__colocation_t *constraint, constraint 466 lib/pacemaker/pcmk_sched_bundle.c pcmk__colocation_t *constraint, constraint 472 lib/pacemaker/pcmk_sched_bundle.c CRM_CHECK(constraint != NULL, return); constraint 474 lib/pacemaker/pcmk_sched_bundle.c pe_err("dependent was NULL for %s", constraint->id); return); constraint 476 lib/pacemaker/pcmk_sched_bundle.c pe_err("primary was NULL for %s", constraint->id); return); constraint 483 lib/pacemaker/pcmk_sched_bundle.c } else if(constraint->dependent->variant > pe_group) { constraint 492 lib/pacemaker/pcmk_sched_bundle.c constraint, data_set); constraint 494 lib/pacemaker/pcmk_sched_bundle.c } else if (constraint->score >= INFINITY) { constraint 509 lib/pacemaker/pcmk_sched_bundle.c constraint->id, dependent->id, primary->id, constraint->score); constraint 515 lib/pacemaker/pcmk_sched_bundle.c if (constraint->score < INFINITY) { constraint 518 lib/pacemaker/pcmk_sched_bundle.c constraint, data_set); constraint 528 lib/pacemaker/pcmk_sched_bundle.c if ((constraint->primary_role >= RSC_ROLE_PROMOTED) constraint 532 lib/pacemaker/pcmk_sched_bundle.c if ((constraint->primary_role >= RSC_ROLE_PROMOTED) constraint 538 lib/pacemaker/pcmk_sched_bundle.c constraint->id, chosen->details->uname, constraint 544 lib/pacemaker/pcmk_sched_bundle.c if (constraint->score >= INFINITY) { constraint 864 lib/pacemaker/pcmk_sched_bundle.c pcmk__bundle_rsc_location(pe_resource_t *rsc, pe__location_t *constraint) constraint 869 lib/pacemaker/pcmk_sched_bundle.c pcmk__apply_location(constraint, rsc); constraint 877 lib/pacemaker/pcmk_sched_bundle.c constraint); constraint 880 lib/pacemaker/pcmk_sched_bundle.c replica->ip->cmds->rsc_location(replica->ip, constraint); constraint 885 lib/pacemaker/pcmk_sched_bundle.c && ((constraint->role_filter == RSC_ROLE_UNPROMOTED) constraint 886 lib/pacemaker/pcmk_sched_bundle.c || (constraint->role_filter == RSC_ROLE_PROMOTED))) { constraint 887 lib/pacemaker/pcmk_sched_bundle.c bundle_data->child->cmds->rsc_location(bundle_data->child, constraint); constraint 889 lib/pacemaker/pcmk_sched_bundle.c constraint); constraint 125 lib/pacemaker/pcmk_sched_clone.c pcmk__colocation_t *constraint = (pcmk__colocation_t *) gIter->data; constraint 127 lib/pacemaker/pcmk_sched_clone.c crm_trace("Applying %s to %s", constraint->id, rsc1->id); constraint 129 lib/pacemaker/pcmk_sched_clone.c hash1 = pcmk__native_merge_weights(constraint->primary, rsc1->id, hash1, constraint 130 lib/pacemaker/pcmk_sched_clone.c constraint->node_attribute, constraint 131 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, constraint 138 lib/pacemaker/pcmk_sched_clone.c pcmk__colocation_t *constraint = (pcmk__colocation_t *) gIter->data; constraint 140 lib/pacemaker/pcmk_sched_clone.c if (!pcmk__colocation_has_influence(constraint, rsc1)) { constraint 143 lib/pacemaker/pcmk_sched_clone.c crm_trace("Applying %s to %s", constraint->id, rsc1->id); constraint 145 lib/pacemaker/pcmk_sched_clone.c hash1 = pcmk__native_merge_weights(constraint->dependent, rsc1->id, constraint 146 lib/pacemaker/pcmk_sched_clone.c hash1, constraint->node_attribute, constraint 147 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, constraint 155 lib/pacemaker/pcmk_sched_clone.c pcmk__colocation_t *constraint = (pcmk__colocation_t *) gIter->data; constraint 157 lib/pacemaker/pcmk_sched_clone.c crm_trace("Applying %s to %s", constraint->id, rsc2->id); constraint 159 lib/pacemaker/pcmk_sched_clone.c hash2 = pcmk__native_merge_weights(constraint->primary, rsc2->id, hash2, constraint 160 lib/pacemaker/pcmk_sched_clone.c constraint->node_attribute, constraint 161 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, constraint 168 lib/pacemaker/pcmk_sched_clone.c pcmk__colocation_t *constraint = (pcmk__colocation_t *) gIter->data; constraint 170 lib/pacemaker/pcmk_sched_clone.c if (!pcmk__colocation_has_influence(constraint, rsc2)) { constraint 173 lib/pacemaker/pcmk_sched_clone.c crm_trace("Applying %s to %s", constraint->id, rsc2->id); constraint 175 lib/pacemaker/pcmk_sched_clone.c hash2 = pcmk__native_merge_weights(constraint->dependent, rsc2->id, constraint 176 lib/pacemaker/pcmk_sched_clone.c hash2, constraint->node_attribute, constraint 177 lib/pacemaker/pcmk_sched_clone.c constraint->score / (float) INFINITY, constraint 706 lib/pacemaker/pcmk_sched_clone.c pcmk__colocation_t *constraint = (pcmk__colocation_t *) gIter->data; constraint 709 lib/pacemaker/pcmk_sched_clone.c rsc->id, constraint->primary->id); constraint 710 lib/pacemaker/pcmk_sched_clone.c constraint->primary->cmds->allocate(constraint->primary, prefer, constraint 715 lib/pacemaker/pcmk_sched_clone.c pcmk__colocation_t *constraint = (pcmk__colocation_t *) gIter->data; constraint 717 lib/pacemaker/pcmk_sched_clone.c if (!pcmk__colocation_has_influence(constraint, NULL)) { constraint 720 lib/pacemaker/pcmk_sched_clone.c rsc->allowed_nodes = constraint->dependent->cmds->merge_weights( constraint 721 lib/pacemaker/pcmk_sched_clone.c constraint->dependent, rsc->id, rsc->allowed_nodes, constraint 722 lib/pacemaker/pcmk_sched_clone.c constraint->node_attribute, (float)constraint->score / INFINITY, constraint 1094 lib/pacemaker/pcmk_sched_clone.c pcmk__colocation_t *constraint, constraint 1106 lib/pacemaker/pcmk_sched_clone.c pcmk__colocation_t *constraint, constraint 1113 lib/pacemaker/pcmk_sched_clone.c CRM_CHECK(constraint != NULL, return); constraint 1115 lib/pacemaker/pcmk_sched_clone.c pe_err("dependent was NULL for %s", constraint->id); return); constraint 1117 lib/pacemaker/pcmk_sched_clone.c pe_err("primary was NULL for %s", constraint->id); return); constraint 1121 lib/pacemaker/pcmk_sched_clone.c constraint->id, dependent->id, primary->id, constraint->score); constraint 1127 lib/pacemaker/pcmk_sched_clone.c } else if (constraint->primary_role == RSC_ROLE_UNKNOWN) { constraint 1129 lib/pacemaker/pcmk_sched_clone.c constraint->id); constraint 1131 lib/pacemaker/pcmk_sched_clone.c promotable_colocation_rh(dependent, primary, constraint, data_set); constraint 1137 lib/pacemaker/pcmk_sched_clone.c interleave_s = g_hash_table_lookup(constraint->dependent->meta, constraint 1140 lib/pacemaker/pcmk_sched_clone.c && (constraint->dependent->variant > pe_group)) { constraint 1144 lib/pacemaker/pcmk_sched_clone.c if (copies_per_node(constraint->dependent) != copies_per_node(constraint->primary)) { constraint 1147 lib/pacemaker/pcmk_sched_clone.c constraint->dependent->id, constraint 1148 lib/pacemaker/pcmk_sched_clone.c constraint->primary->id); constraint 1169 lib/pacemaker/pcmk_sched_clone.c constraint, data_set); constraint 1171 lib/pacemaker/pcmk_sched_clone.c } else if (constraint->score >= INFINITY) { constraint 1183 lib/pacemaker/pcmk_sched_clone.c } else if (constraint->score >= INFINITY) { constraint 1193 lib/pacemaker/pcmk_sched_clone.c constraint->id, chosen->details->uname, constraint 1208 lib/pacemaker/pcmk_sched_clone.c child_rsc->cmds->rsc_colocation_rh(dependent, child_rsc, constraint, constraint 1308 lib/pacemaker/pcmk_sched_clone.c clone_rsc_location(pe_resource_t *rsc, pe__location_t *constraint) constraint 1312 lib/pacemaker/pcmk_sched_clone.c pe_rsc_trace(rsc, "Processing location constraint %s for %s", constraint->id, rsc->id); constraint 1314 lib/pacemaker/pcmk_sched_clone.c pcmk__apply_location(constraint, rsc); constraint 1319 lib/pacemaker/pcmk_sched_clone.c child_rsc->cmds->rsc_location(child_rsc, constraint); constraint 835 lib/pacemaker/pcmk_sched_colocation.c pcmk__colocation_t *constraint, bool preview) constraint 842 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->dependent_role >= RSC_ROLE_UNPROMOTED) constraint 864 lib/pacemaker/pcmk_sched_colocation.c constraint->id, dependent->id); constraint 866 lib/pacemaker/pcmk_sched_colocation.c } else if (constraint->score >= INFINITY) { constraint 877 lib/pacemaker/pcmk_sched_colocation.c } else if (constraint->score <= -CRM_SCORE_INFINITY) { constraint 890 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score > 0) constraint 891 lib/pacemaker/pcmk_sched_colocation.c && (constraint->dependent_role != RSC_ROLE_UNKNOWN) constraint 892 lib/pacemaker/pcmk_sched_colocation.c && (constraint->dependent_role != dependent->next_role)) { constraint 896 lib/pacemaker/pcmk_sched_colocation.c constraint->id, role2text(constraint->dependent_role), constraint 901 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score > 0) constraint 902 lib/pacemaker/pcmk_sched_colocation.c && (constraint->primary_role != RSC_ROLE_UNKNOWN) constraint 903 lib/pacemaker/pcmk_sched_colocation.c && (constraint->primary_role != primary->next_role)) { constraint 907 lib/pacemaker/pcmk_sched_colocation.c constraint->id, role2text(constraint->primary_role), constraint 912 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score < 0) constraint 913 lib/pacemaker/pcmk_sched_colocation.c && (constraint->dependent_role != RSC_ROLE_UNKNOWN) constraint 914 lib/pacemaker/pcmk_sched_colocation.c && (constraint->dependent_role == dependent->next_role)) { constraint 916 lib/pacemaker/pcmk_sched_colocation.c constraint->id, role2text(constraint->dependent_role)); constraint 920 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score < 0) constraint 921 lib/pacemaker/pcmk_sched_colocation.c && (constraint->primary_role != RSC_ROLE_UNKNOWN) constraint 922 lib/pacemaker/pcmk_sched_colocation.c && (constraint->primary_role == primary->next_role)) { constraint 924 lib/pacemaker/pcmk_sched_colocation.c constraint->id, role2text(constraint->primary_role)); constraint 944 lib/pacemaker/pcmk_sched_colocation.c pcmk__colocation_t *constraint) constraint 952 lib/pacemaker/pcmk_sched_colocation.c if (constraint->node_attribute != NULL) { constraint 953 lib/pacemaker/pcmk_sched_colocation.c attribute = constraint->node_attribute; constraint 959 lib/pacemaker/pcmk_sched_colocation.c } else if (constraint->score < 0) { constraint 970 lib/pacemaker/pcmk_sched_colocation.c constraint->id, dependent->id, node->details->uname, constraint 971 lib/pacemaker/pcmk_sched_colocation.c constraint->score, primary->id); constraint 972 lib/pacemaker/pcmk_sched_colocation.c node->weight = pe__add_scores(-constraint->score, node->weight); constraint 976 lib/pacemaker/pcmk_sched_colocation.c if (constraint->score < CRM_SCORE_INFINITY) { constraint 978 lib/pacemaker/pcmk_sched_colocation.c constraint->id, dependent->id, constraint 979 lib/pacemaker/pcmk_sched_colocation.c node->details->uname, constraint->score); constraint 980 lib/pacemaker/pcmk_sched_colocation.c node->weight = pe__add_scores(constraint->score, node->weight); constraint 983 lib/pacemaker/pcmk_sched_colocation.c } else if (constraint->score >= CRM_SCORE_INFINITY) { constraint 985 lib/pacemaker/pcmk_sched_colocation.c constraint->id, dependent->id, node->details->uname, constraint 986 lib/pacemaker/pcmk_sched_colocation.c constraint->score, attribute); constraint 987 lib/pacemaker/pcmk_sched_colocation.c node->weight = pe__add_scores(-constraint->score, node->weight); constraint 991 lib/pacemaker/pcmk_sched_colocation.c if (can_run_any(work) || (constraint->score <= -INFINITY) constraint 992 lib/pacemaker/pcmk_sched_colocation.c || (constraint->score >= INFINITY)) { constraint 1022 lib/pacemaker/pcmk_sched_colocation.c pcmk__colocation_t *constraint) constraint 1033 lib/pacemaker/pcmk_sched_colocation.c if (constraint->node_attribute != NULL) { constraint 1034 lib/pacemaker/pcmk_sched_colocation.c attribute = constraint->node_attribute; constraint 1041 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->score == INFINITY) constraint 1042 lib/pacemaker/pcmk_sched_colocation.c && (constraint->dependent_role == RSC_ROLE_PROMOTED)) { constraint 1048 lib/pacemaker/pcmk_sched_colocation.c if ((constraint->primary_role != RSC_ROLE_UNKNOWN) constraint 1049 lib/pacemaker/pcmk_sched_colocation.c && (constraint->primary_role != primary->next_role)) { constraint 1053 lib/pacemaker/pcmk_sched_colocation.c if (constraint->dependent_role == RSC_ROLE_UNPROMOTED) { constraint 1057 lib/pacemaker/pcmk_sched_colocation.c dependent->priority = pe__add_scores(score_multiplier * constraint->score, constraint 64 lib/pacemaker/pcmk_sched_group.c pcmk__colocation_t *constraint = (pcmk__colocation_t *) cons_iter->data; constraint 66 lib/pacemaker/pcmk_sched_group.c if (constraint->score == INFINITY) { constraint 67 lib/pacemaker/pcmk_sched_group.c member->rsc_cons = g_list_prepend(member->rsc_cons, constraint); constraint 360 lib/pacemaker/pcmk_sched_group.c pcmk__colocation_t *constraint, constraint 367 lib/pacemaker/pcmk_sched_group.c pe_err("dependent was NULL for %s", constraint->id); constraint 371 lib/pacemaker/pcmk_sched_group.c pe_err("primary was NULL for %s", constraint->id); constraint 382 lib/pacemaker/pcmk_sched_group.c primary, constraint, constraint 386 lib/pacemaker/pcmk_sched_group.c } else if (constraint->score >= INFINITY) { constraint 396 lib/pacemaker/pcmk_sched_group.c child_rsc->cmds->rsc_colocation_lh(child_rsc, primary, constraint, constraint 403 lib/pacemaker/pcmk_sched_group.c pcmk__colocation_t *constraint, constraint 413 lib/pacemaker/pcmk_sched_group.c primary->id, constraint->id, dependent->id); constraint 419 lib/pacemaker/pcmk_sched_group.c if (constraint->score >= INFINITY) { constraint 423 lib/pacemaker/pcmk_sched_group.c constraint, constraint 429 lib/pacemaker/pcmk_sched_group.c constraint, constraint 435 lib/pacemaker/pcmk_sched_group.c } else if (constraint->score >= INFINITY) { constraint 444 lib/pacemaker/pcmk_sched_group.c child_rsc->cmds->rsc_colocation_rh(dependent, child_rsc, constraint, constraint 521 lib/pacemaker/pcmk_sched_group.c group_rsc_location(pe_resource_t *rsc, pe__location_t *constraint) constraint 524 lib/pacemaker/pcmk_sched_group.c GList *saved = constraint->node_list_rh; constraint 525 lib/pacemaker/pcmk_sched_group.c GList *zero = pcmk__copy_node_list(constraint->node_list_rh, true); constraint 531 lib/pacemaker/pcmk_sched_group.c pe_rsc_debug(rsc, "Processing rsc_location %s for %s", constraint->id, rsc->id); constraint 533 lib/pacemaker/pcmk_sched_group.c pcmk__apply_location(constraint, rsc); constraint 538 lib/pacemaker/pcmk_sched_group.c child_rsc->cmds->rsc_location(child_rsc, constraint); constraint 541 lib/pacemaker/pcmk_sched_group.c constraint->node_list_rh = zero; constraint 545 lib/pacemaker/pcmk_sched_group.c constraint->node_list_rh = saved; constraint 587 lib/pacemaker/pcmk_sched_group.c pcmk__colocation_t *constraint = (pcmk__colocation_t *) gIter->data; constraint 589 lib/pacemaker/pcmk_sched_group.c nodes = pcmk__native_merge_weights(constraint->dependent, rsc->id, constraint 590 lib/pacemaker/pcmk_sched_group.c nodes, constraint->node_attribute, constraint 591 lib/pacemaker/pcmk_sched_group.c constraint->score / (float) INFINITY, constraint 616 lib/pacemaker/pcmk_sched_location.c pcmk__apply_location(pe__location_t *constraint, pe_resource_t *rsc) constraint 620 lib/pacemaker/pcmk_sched_location.c CRM_CHECK((constraint != NULL) && (rsc != NULL), return); constraint 623 lib/pacemaker/pcmk_sched_location.c need_role = (constraint->role_filter > RSC_ROLE_UNKNOWN); constraint 624 lib/pacemaker/pcmk_sched_location.c if (need_role && (constraint->role_filter != rsc->next_role)) { constraint 627 lib/pacemaker/pcmk_sched_location.c constraint->id, rsc->id, role2text(rsc->next_role), constraint 628 lib/pacemaker/pcmk_sched_location.c role2text(constraint->role_filter)); constraint 632 lib/pacemaker/pcmk_sched_location.c if (constraint->node_list_rh == NULL) { constraint 634 lib/pacemaker/pcmk_sched_location.c constraint->id, rsc->id); constraint 638 lib/pacemaker/pcmk_sched_location.c pe_rsc_trace(rsc, "Applying %s%s%s to %s", constraint->id, constraint 640 lib/pacemaker/pcmk_sched_location.c (need_role? role2text(constraint->role_filter) : ""), rsc->id); constraint 642 lib/pacemaker/pcmk_sched_location.c for (GList *gIter = constraint->node_list_rh; gIter != NULL; constraint 664 lib/pacemaker/pcmk_sched_location.c if (weighted_node->rsc_discover_mode < constraint->discover_mode) { constraint 665 lib/pacemaker/pcmk_sched_location.c if (constraint->discover_mode == pe_discover_exclusive) { constraint 669 lib/pacemaker/pcmk_sched_location.c weighted_node->rsc_discover_mode = constraint->discover_mode; constraint 444 lib/pacemaker/pcmk_sched_native.c pcmk__colocation_t *constraint = (pcmk__colocation_t *) gIter->data; constraint 447 lib/pacemaker/pcmk_sched_native.c other = constraint->primary; constraint 448 lib/pacemaker/pcmk_sched_native.c } else if (!pcmk__colocation_has_influence(constraint, NULL)) { constraint 451 lib/pacemaker/pcmk_sched_native.c other = constraint->dependent; constraint 455 lib/pacemaker/pcmk_sched_native.c constraint->id, constraint->dependent->id, constraint 456 lib/pacemaker/pcmk_sched_native.c constraint->primary->id); constraint 458 lib/pacemaker/pcmk_sched_native.c constraint->node_attribute, constraint 459 lib/pacemaker/pcmk_sched_native.c multiplier * constraint->score / (float) INFINITY, constraint 519 lib/pacemaker/pcmk_sched_native.c pcmk__colocation_t *constraint = (pcmk__colocation_t *) gIter->data; constraint 522 lib/pacemaker/pcmk_sched_native.c pe_resource_t *primary = constraint->primary; constraint 524 lib/pacemaker/pcmk_sched_native.c if ((constraint->dependent_role >= RSC_ROLE_PROMOTED) constraint 525 lib/pacemaker/pcmk_sched_native.c || (constraint->score < 0 && constraint->score > -INFINITY)) { constraint 531 lib/pacemaker/pcmk_sched_native.c rsc->id, primary->id, constraint->id, constraint 532 lib/pacemaker/pcmk_sched_native.c constraint->score, role2text(constraint->dependent_role)); constraint 534 lib/pacemaker/pcmk_sched_native.c rsc->cmds->rsc_colocation_lh(rsc, primary, constraint, data_set); constraint 550 lib/pacemaker/pcmk_sched_native.c pcmk__colocation_t *constraint = (pcmk__colocation_t *) gIter->data; constraint 552 lib/pacemaker/pcmk_sched_native.c if (!pcmk__colocation_has_influence(constraint, NULL)) { constraint 556 lib/pacemaker/pcmk_sched_native.c constraint->id, constraint->dependent->id, constraint 557 lib/pacemaker/pcmk_sched_native.c constraint->primary->id); constraint 558 lib/pacemaker/pcmk_sched_native.c rsc->allowed_nodes = constraint->dependent->cmds->merge_weights( constraint 559 lib/pacemaker/pcmk_sched_native.c constraint->dependent, rsc->id, rsc->allowed_nodes, constraint 560 lib/pacemaker/pcmk_sched_native.c constraint->node_attribute, constraint->score / (float) INFINITY, constraint 1701 lib/pacemaker/pcmk_sched_native.c pcmk__colocation_t *constraint, constraint 1705 lib/pacemaker/pcmk_sched_native.c pe_err("dependent was NULL for %s", constraint->id); constraint 1708 lib/pacemaker/pcmk_sched_native.c } else if (constraint->primary == NULL) { constraint 1709 lib/pacemaker/pcmk_sched_native.c pe_err("primary was NULL for %s", constraint->id); constraint 1717 lib/pacemaker/pcmk_sched_native.c primary->cmds->rsc_colocation_rh(dependent, primary, constraint, data_set); constraint 1722 lib/pacemaker/pcmk_sched_native.c pcmk__colocation_t *constraint, constraint 1728 lib/pacemaker/pcmk_sched_native.c filter_results = pcmk__colocation_affects(dependent, primary, constraint, constraint 1731 lib/pacemaker/pcmk_sched_native.c ((constraint->score > 0)? "Colocating" : "Anti-colocating"), constraint 1732 lib/pacemaker/pcmk_sched_native.c dependent->id, primary->id, constraint->id, constraint->score, constraint 1737 lib/pacemaker/pcmk_sched_native.c pcmk__apply_coloc_to_priority(dependent, primary, constraint); constraint 1740 lib/pacemaker/pcmk_sched_native.c pcmk__apply_coloc_to_weights(dependent, primary, constraint); constraint 1991 lib/pacemaker/pcmk_sched_native.c native_rsc_location(pe_resource_t *rsc, pe__location_t *constraint) constraint 1993 lib/pacemaker/pcmk_sched_native.c pcmk__apply_location(constraint, rsc); constraint 339 lib/pacemaker/pcmk_sched_promotable.c pcmk__colocation_t *constraint = (pcmk__colocation_t *) gIter->data; constraint 344 lib/pacemaker/pcmk_sched_promotable.c if (constraint->dependent_role == RSC_ROLE_PROMOTED) { constraint 345 lib/pacemaker/pcmk_sched_promotable.c enum pe_weights flags = constraint->score == INFINITY ? 0 : pe_weights_rollback; constraint 348 lib/pacemaker/pcmk_sched_promotable.c constraint->dependent->id, constraint->primary->id, constraint 349 lib/pacemaker/pcmk_sched_promotable.c constraint->score); constraint 350 lib/pacemaker/pcmk_sched_promotable.c rsc->allowed_nodes = constraint->primary->cmds->merge_weights( constraint 351 lib/pacemaker/pcmk_sched_promotable.c constraint->primary, rsc->id, rsc->allowed_nodes, constraint 352 lib/pacemaker/pcmk_sched_promotable.c constraint->node_attribute, constraint 353 lib/pacemaker/pcmk_sched_promotable.c constraint->score / (float) INFINITY, flags); constraint 359 lib/pacemaker/pcmk_sched_promotable.c pcmk__colocation_t *constraint = (pcmk__colocation_t *) gIter->data; constraint 361 lib/pacemaker/pcmk_sched_promotable.c if (!pcmk__colocation_has_influence(constraint, NULL)) { constraint 368 lib/pacemaker/pcmk_sched_promotable.c if (constraint->primary_role == RSC_ROLE_PROMOTED) { constraint 370 lib/pacemaker/pcmk_sched_promotable.c constraint->dependent->id, constraint->primary->id, constraint 371 lib/pacemaker/pcmk_sched_promotable.c constraint->score); constraint 372 lib/pacemaker/pcmk_sched_promotable.c rsc->allowed_nodes = constraint->dependent->cmds->merge_weights( constraint 373 lib/pacemaker/pcmk_sched_promotable.c constraint->dependent, rsc->id, rsc->allowed_nodes, constraint 374 lib/pacemaker/pcmk_sched_promotable.c constraint->node_attribute, constraint 375 lib/pacemaker/pcmk_sched_promotable.c constraint->score / (float) INFINITY, constraint 987 lib/pacemaker/pcmk_sched_promotable.c pcmk__colocation_t *constraint, constraint 1001 lib/pacemaker/pcmk_sched_promotable.c if ((chosen != NULL) && (next_role == constraint->primary_role)) { constraint 1003 lib/pacemaker/pcmk_sched_promotable.c role2text(next_role), chosen->details->uname, constraint->score); constraint 1004 lib/pacemaker/pcmk_sched_promotable.c if (constraint->score < INFINITY) { constraint 1006 lib/pacemaker/pcmk_sched_promotable.c constraint->node_attribute, constraint->score); constraint 1016 lib/pacemaker/pcmk_sched_promotable.c if ((constraint->dependent_role != RSC_ROLE_PROMOTED) constraint 1017 lib/pacemaker/pcmk_sched_promotable.c || (constraint->primary_role != RSC_ROLE_PROMOTED)) { constraint 1019 lib/pacemaker/pcmk_sched_promotable.c if (constraint->score >= INFINITY) { constraint 1026 lib/pacemaker/pcmk_sched_promotable.c } else if (constraint->dependent_role == RSC_ROLE_PROMOTED) { constraint 1030 lib/pacemaker/pcmk_sched_promotable.c constraint->primary_role, constraint 1032 lib/pacemaker/pcmk_sched_promotable.c if ((primary_instance == NULL) && (constraint->score >= INFINITY)) { constraint 1034 lib/pacemaker/pcmk_sched_promotable.c dependent->id, constraint->id); constraint 1039 lib/pacemaker/pcmk_sched_promotable.c constraint->score); constraint 1042 lib/pacemaker/pcmk_sched_promotable.c constraint->id, dependent->id); constraint 37 lib/pacemaker/pcmk_sched_resource.c pcmk__colocation_t *constraint = (pcmk__colocation_t *) gIter->data; constraint 38 lib/pacemaker/pcmk_sched_resource.c pe_resource_t *primary = constraint->primary; constraint 44 lib/pacemaker/pcmk_sched_resource.c if ((constraint->score == INFINITY) && constraint 45 lib/pacemaker/pcmk_sched_resource.c (pcmk__colocation_affects(rsc, primary, constraint, constraint 56 lib/pacemaker/pcmk_sched_resource.c pcmk__colocation_t *constraint = (pcmk__colocation_t *) gIter->data; constraint 57 lib/pacemaker/pcmk_sched_resource.c pe_resource_t *dependent = constraint->dependent; constraint 67 lib/pacemaker/pcmk_sched_resource.c if ((constraint->score == INFINITY) && constraint 68 lib/pacemaker/pcmk_sched_resource.c (pcmk__colocation_affects(dependent, rsc, constraint, constraint 187 maint/gnulib/lib/dfa.c newline_constraint (int constraint) constraint 189 maint/gnulib/lib/dfa.c return (constraint >> 6) & 7; constraint 192 maint/gnulib/lib/dfa.c letter_constraint (int constraint) constraint 194 maint/gnulib/lib/dfa.c return (constraint >> 3) & 7; constraint 197 maint/gnulib/lib/dfa.c other_constraint (int constraint) constraint 199 maint/gnulib/lib/dfa.c return constraint & 7; constraint 203 maint/gnulib/lib/dfa.c succeeds_in_context (int constraint, int prev, int curr) constraint 205 maint/gnulib/lib/dfa.c return !! (((curr & CTX_NONE ? other_constraint (constraint) : 0) \ constraint 206 maint/gnulib/lib/dfa.c | (curr & CTX_LETTER ? letter_constraint (constraint) : 0) \ constraint 207 maint/gnulib/lib/dfa.c | (curr & CTX_NEWLINE ? newline_constraint (constraint) : 0)) \ constraint 213 maint/gnulib/lib/dfa.c prev_newline_dependent (int constraint) constraint 215 maint/gnulib/lib/dfa.c return ((constraint ^ constraint >> 2) & 0111) != 0; constraint 218 maint/gnulib/lib/dfa.c prev_letter_dependent (int constraint) constraint 220 maint/gnulib/lib/dfa.c return ((constraint ^ constraint >> 1) & 0111) != 0; constraint 355 maint/gnulib/lib/dfa.c unsigned int constraint; /* Constraint for matching this position. */ constraint 374 maint/gnulib/lib/dfa.c unsigned short constraint; /* Constraint for this state to accept. */ constraint 605 maint/gnulib/lib/dfa.c return r->states[s].constraint != 0; constraint 612 maint/gnulib/lib/dfa.c return succeeds_in_context (dfa->states[state].constraint, prev, curr); constraint 2038 maint/gnulib/lib/dfa.c s->elems[mid].constraint |= p.constraint; constraint 2082 maint/gnulib/lib/dfa.c ? s2->elems[j++].constraint & c2 constraint 2085 maint/gnulib/lib/dfa.c m->elems[m->nelem++].constraint = s1->elems[i++].constraint | c; constraint 2089 maint/gnulib/lib/dfa.c if (s2->elems[j].constraint & c2) constraint 2092 maint/gnulib/lib/dfa.c m->elems[m->nelem++].constraint = s2->elems[j].constraint & c2; constraint 2137 maint/gnulib/lib/dfa.c unsigned int c = s->elems[mid].constraint; constraint 2153 maint/gnulib/lib/dfa.c unsigned int constraint, position_set *tmp) constraint 2155 maint/gnulib/lib/dfa.c unsigned int c = delete (del, dst) & constraint; constraint 2171 maint/gnulib/lib/dfa.c int constraint = 0; constraint 2177 maint/gnulib/lib/dfa.c hash ^= ind + s->elems[i].constraint; constraint 2188 maint/gnulib/lib/dfa.c if (s->elems[j].constraint != d->states[i].elems.elems[j].constraint constraint 2224 maint/gnulib/lib/dfa.c constraint |= c; constraint 2227 maint/gnulib/lib/dfa.c constraint = NO_CONSTRAINT; constraint 2238 maint/gnulib/lib/dfa.c d->states[i].constraint = constraint; constraint 2262 maint/gnulib/lib/dfa.c unsigned int constraint; constraint 2269 maint/gnulib/lib/dfa.c constraint = BEGLINE_CONSTRAINT; constraint 2272 maint/gnulib/lib/dfa.c constraint = ENDLINE_CONSTRAINT; constraint 2275 maint/gnulib/lib/dfa.c constraint = BEGWORD_CONSTRAINT; constraint 2278 maint/gnulib/lib/dfa.c constraint = ENDWORD_CONSTRAINT; constraint 2281 maint/gnulib/lib/dfa.c constraint = LIMWORD_CONSTRAINT; constraint 2284 maint/gnulib/lib/dfa.c constraint = NOTLIMWORD_CONSTRAINT; constraint 2287 maint/gnulib/lib/dfa.c constraint = NO_CONSTRAINT; constraint 2295 maint/gnulib/lib/dfa.c constraint, &tmp); constraint 2373 maint/gnulib/lib/dfa.c unsigned int iconstraint = follows[tindex].elems[i].constraint; constraint 2379 maint/gnulib/lib/dfa.c d->constraints[tindex] |= follows[tindex].elems[i].constraint; constraint 2394 maint/gnulib/lib/dfa.c if (follows[tindex].elems[j].constraint != iconstraint) constraint 2744 maint/gnulib/lib/dfa.c firstpos->constraint = lastpos->constraint = NO_CONSTRAINT; constraint 2804 maint/gnulib/lib/dfa.c pos.constraint = NO_CONSTRAINT; constraint 2821 maint/gnulib/lib/dfa.c if (prev_newline_dependent (d->follows[i].elems[j].constraint)) constraint 2823 maint/gnulib/lib/dfa.c if (prev_letter_dependent (d->follows[i].elems[j].constraint)) constraint 3016 maint/gnulib/lib/dfa.c if (succeeds_in_context (pos.constraint, d->states[s].context, constraint 3029 maint/gnulib/lib/dfa.c if (pos.constraint != NO_CONSTRAINT) constraint 3031 maint/gnulib/lib/dfa.c if (!succeeds_in_context (pos.constraint, constraint 3035 maint/gnulib/lib/dfa.c if (!succeeds_in_context (pos.constraint, constraint 3039 maint/gnulib/lib/dfa.c if (!succeeds_in_context (pos.constraint, constraint 52 maint/gnulib/lib/regcomp.c static Idx duplicate_node (re_dfa_t *dfa, Idx org_idx, unsigned int constraint); constraint 54 maint/gnulib/lib/regcomp.c unsigned int constraint); constraint 1397 maint/gnulib/lib/regcomp.c dfa->nodes[node->node_idx].constraint = node->token.opr.ctx_type; constraint 1492 maint/gnulib/lib/regcomp.c unsigned int constraint = init_constraint; constraint 1504 maint/gnulib/lib/regcomp.c clone_dest = duplicate_node (dfa, org_dest, constraint); constraint 1536 maint/gnulib/lib/regcomp.c constraint |= dfa->nodes[org_node].constraint; constraint 1537 maint/gnulib/lib/regcomp.c clone_dest = duplicate_node (dfa, org_dest, constraint); constraint 1551 maint/gnulib/lib/regcomp.c clone_dest = search_duplicated_node (dfa, org_dest, constraint); constraint 1556 maint/gnulib/lib/regcomp.c clone_dest = duplicate_node (dfa, org_dest, constraint); constraint 1563 maint/gnulib/lib/regcomp.c root_node, constraint); constraint 1577 maint/gnulib/lib/regcomp.c clone_dest = duplicate_node (dfa, org_dest, constraint); constraint 1595 maint/gnulib/lib/regcomp.c unsigned int constraint) constraint 1601 maint/gnulib/lib/regcomp.c && constraint == dfa->nodes[idx].constraint) constraint 1612 maint/gnulib/lib/regcomp.c duplicate_node (re_dfa_t *dfa, Idx org_idx, unsigned int constraint) constraint 1617 maint/gnulib/lib/regcomp.c dfa->nodes[dup_idx].constraint = constraint; constraint 1618 maint/gnulib/lib/regcomp.c dfa->nodes[dup_idx].constraint |= dfa->nodes[org_idx].constraint; constraint 1712 maint/gnulib/lib/regcomp.c if (dfa->nodes[node].constraint constraint 1717 maint/gnulib/lib/regcomp.c dfa->nodes[node].constraint); constraint 1453 maint/gnulib/lib/regex_internal.c dfa->nodes[dfa->nodes_len].constraint = 0; constraint 1652 maint/gnulib/lib/regex_internal.c if (type == CHARACTER && !node->constraint) constraint 1663 maint/gnulib/lib/regex_internal.c else if (type == ANCHOR || node->constraint) constraint 1704 maint/gnulib/lib/regex_internal.c unsigned int constraint = node->constraint; constraint 1706 maint/gnulib/lib/regex_internal.c if (type == CHARACTER && !constraint) constraint 1718 maint/gnulib/lib/regex_internal.c if (constraint) constraint 1739 maint/gnulib/lib/regex_internal.c if (NOT_SATISFY_PREV_CONSTRAINT (constraint,context)) constraint 355 maint/gnulib/lib/regex_internal.h unsigned int constraint : 10; /* context constraint */ constraint 510 maint/gnulib/lib/regex_internal.h #define NOT_SATISFY_PREV_CONSTRAINT(constraint,context) \ constraint 511 maint/gnulib/lib/regex_internal.h ((((constraint) & PREV_WORD_CONSTRAINT) && !IS_WORD_CONTEXT (context)) \ constraint 512 maint/gnulib/lib/regex_internal.h || ((constraint & PREV_NOTWORD_CONSTRAINT) && IS_WORD_CONTEXT (context)) \ constraint 513 maint/gnulib/lib/regex_internal.h || ((constraint & PREV_NEWLINE_CONSTRAINT) && !IS_NEWLINE_CONTEXT (context))\ constraint 514 maint/gnulib/lib/regex_internal.h || ((constraint & PREV_BEGBUF_CONSTRAINT) && !IS_BEGBUF_CONTEXT (context))) constraint 516 maint/gnulib/lib/regex_internal.h #define NOT_SATISFY_NEXT_CONSTRAINT(constraint,context) \ constraint 517 maint/gnulib/lib/regex_internal.h ((((constraint) & NEXT_WORD_CONSTRAINT) && !IS_WORD_CONTEXT (context)) \ constraint 518 maint/gnulib/lib/regex_internal.h || (((constraint) & NEXT_NOTWORD_CONSTRAINT) && IS_WORD_CONTEXT (context)) \ constraint 519 maint/gnulib/lib/regex_internal.h || (((constraint) & NEXT_NEWLINE_CONSTRAINT) && !IS_NEWLINE_CONTEXT (context)) \ constraint 520 maint/gnulib/lib/regex_internal.h || (((constraint) & NEXT_ENDBUF_CONSTRAINT) && !IS_ENDBUF_CONTEXT (context))) constraint 1179 maint/gnulib/lib/regexec.c unsigned int constraint = dfa->nodes[node].constraint; constraint 1182 maint/gnulib/lib/regexec.c if (!constraint) constraint 1184 maint/gnulib/lib/regexec.c if (NOT_SATISFY_NEXT_CONSTRAINT (constraint, context)) constraint 2468 maint/gnulib/lib/regexec.c if (dfa->nodes[cur_node_idx].constraint) constraint 2473 maint/gnulib/lib/regexec.c if (NOT_SATISFY_NEXT_CONSTRAINT (dfa->nodes[cur_node_idx].constraint, constraint 2538 maint/gnulib/lib/regexec.c if (node->constraint) constraint 2542 maint/gnulib/lib/regexec.c if (NOT_SATISFY_NEXT_CONSTRAINT (node->constraint, context)) constraint 3468 maint/gnulib/lib/regexec.c unsigned int constraint = node->constraint; constraint 3508 maint/gnulib/lib/regexec.c if (constraint) constraint 3510 maint/gnulib/lib/regexec.c if (constraint & NEXT_NEWLINE_CONSTRAINT) constraint 3519 maint/gnulib/lib/regexec.c if (constraint & NEXT_ENDBUF_CONSTRAINT) constraint 3525 maint/gnulib/lib/regexec.c if (constraint & NEXT_WORD_CONSTRAINT) constraint 3544 maint/gnulib/lib/regexec.c if (constraint & NEXT_NOTWORD_CONSTRAINT) constraint 3970 maint/gnulib/lib/regexec.c if (node->constraint) constraint 3976 maint/gnulib/lib/regexec.c if (NOT_SATISFY_NEXT_CONSTRAINT (node->constraint, context))