synapse 424 daemons/controld/controld_fencing.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 426 daemons/controld/controld_fencing.c if (pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 430 daemons/controld/controld_fencing.c for (lpc2 = synapse->actions; lpc2 != NULL; lpc2 = lpc2->next) { synapse 96 daemons/controld/controld_te_events.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) gIter->data; synapse 98 daemons/controld/controld_te_events.c if (pcmk_any_flags_set(synapse->flags, pcmk__synapse_confirmed|pcmk__synapse_failed)) { synapse 103 daemons/controld/controld_te_events.c gIter2 = synapse->actions; synapse 134 daemons/controld/controld_te_events.c pcmk__set_synapse_flags(synapse, pcmk__synapse_failed); synapse 139 daemons/controld/controld_te_events.c if (pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 294 daemons/controld/controld_te_events.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) item->data; synapse 296 daemons/controld/controld_te_events.c for (GList *item2 = synapse->actions; item2; item2 = item2->next) { synapse 315 daemons/controld/controld_te_events.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) gIter->data; synapse 317 daemons/controld/controld_te_events.c gIter2 = synapse->actions; synapse 559 daemons/controld/controld_te_events.c abort_transition(action->synapse->priority + 1, synapse 45 include/pcmki/pcmki_transition.h #define pcmk__set_synapse_flags(synapse, flags_to_set) do { \ synapse 46 include/pcmki/pcmki_transition.h (synapse)->flags = pcmk__set_flags_as(__func__, __LINE__, \ synapse 49 include/pcmki/pcmki_transition.h (synapse)->flags, (flags_to_set), #flags_to_set); \ synapse 52 include/pcmki/pcmki_transition.h #define pcmk__clear_synapse_flags(synapse, flags_to_clear) do { \ synapse 53 include/pcmki/pcmki_transition.h (synapse)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ synapse 56 include/pcmki/pcmki_transition.h (synapse)->flags, (flags_to_clear), #flags_to_clear); \ synapse 74 include/pcmki/pcmki_transition.h pcmk__graph_synapse_t *synapse; synapse 57 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = user_data; synapse 59 lib/pacemaker/pcmk_graph_consumer.c g_list_free_full(synapse->actions, free_graph_action); synapse 60 lib/pacemaker/pcmk_graph_consumer.c g_list_free_full(synapse->inputs, free_graph_action); synapse 61 lib/pacemaker/pcmk_graph_consumer.c free(synapse); synapse 105 lib/pacemaker/pcmk_graph_consumer.c update_synapse_ready(pcmk__graph_synapse_t *synapse, int action_id) synapse 107 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 112 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_ready); synapse 114 lib/pacemaker/pcmk_graph_consumer.c for (GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 119 lib/pacemaker/pcmk_graph_consumer.c action_id, synapse->id); synapse 123 lib/pacemaker/pcmk_graph_consumer.c pcmk__clear_synapse_flags(synapse, pcmk__synapse_ready); synapse 125 lib/pacemaker/pcmk_graph_consumer.c synapse->id, action_id); synapse 128 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 129 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Synapse %d is now ready to execute", synapse->id); synapse 141 lib/pacemaker/pcmk_graph_consumer.c update_synapse_confirmed(pcmk__graph_synapse_t *synapse, int action_id) synapse 145 lib/pacemaker/pcmk_graph_consumer.c for (GList *lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 150 lib/pacemaker/pcmk_graph_consumer.c action_id, synapse->id); synapse 157 lib/pacemaker/pcmk_graph_consumer.c synapse->id, action_id); synapse 162 lib/pacemaker/pcmk_graph_consumer.c && !pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 163 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Confirmed synapse %d", synapse->id); synapse 164 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_confirmed); synapse 179 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 181 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_any_flags_set(synapse->flags, synapse 185 lib/pacemaker/pcmk_graph_consumer.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 186 lib/pacemaker/pcmk_graph_consumer.c update_synapse_confirmed(synapse, action->id); synapse 189 lib/pacemaker/pcmk_graph_consumer.c || (synapse->priority == PCMK_SCORE_INFINITY)) { synapse 190 lib/pacemaker/pcmk_graph_consumer.c update_synapse_ready(synapse, action->id); synapse 232 lib/pacemaker/pcmk_graph_consumer.c should_fire_synapse(pcmk__graph_t *graph, pcmk__graph_synapse_t *synapse) synapse 236 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_ready); synapse 237 lib/pacemaker/pcmk_graph_consumer.c for (lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 242 lib/pacemaker/pcmk_graph_consumer.c prereq->id, synapse->id); synapse 243 lib/pacemaker/pcmk_graph_consumer.c pcmk__clear_synapse_flags(synapse, pcmk__synapse_ready); synapse 250 lib/pacemaker/pcmk_graph_consumer.c prereq->id, synapse->id); synapse 251 lib/pacemaker/pcmk_graph_consumer.c pcmk__clear_synapse_flags(synapse, pcmk__synapse_ready); synapse 255 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 256 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Synapse %d is ready to execute", synapse->id); synapse 261 lib/pacemaker/pcmk_graph_consumer.c for (lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 267 lib/pacemaker/pcmk_graph_consumer.c } else if (synapse->priority < graph->abort_priority) { synapse 270 lib/pacemaker/pcmk_graph_consumer.c synapse->id, synapse->priority, graph->abort_priority); synapse 275 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Deferring synapse %d: not allowed", synapse->id); synapse 339 lib/pacemaker/pcmk_graph_consumer.c fire_synapse(pcmk__graph_t *graph, pcmk__graph_synapse_t *synapse) synapse 341 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_executed); synapse 342 lib/pacemaker/pcmk_graph_consumer.c for (GList *lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 349 lib/pacemaker/pcmk_graph_consumer.c action->xml->name, action->id, synapse->id, synapse 351 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_confirmed); synapse 438 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 440 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 443 lib/pacemaker/pcmk_graph_consumer.c } else if (!pcmk_is_set(synapse->flags, pcmk__synapse_failed) synapse 444 lib/pacemaker/pcmk_graph_consumer.c && pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 453 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 462 lib/pacemaker/pcmk_graph_consumer.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_failed)) { synapse 466 lib/pacemaker/pcmk_graph_consumer.c } else if (pcmk_any_flags_set(synapse->flags, synapse 471 lib/pacemaker/pcmk_graph_consumer.c } else if (should_fire_synapse(graph, synapse)) { synapse 473 lib/pacemaker/pcmk_graph_consumer.c if (fire_synapse(graph, synapse) != pcmk_rc_ok) { synapse 474 lib/pacemaker/pcmk_graph_consumer.c crm_err("Synapse %d failed to fire", synapse->id); synapse 481 lib/pacemaker/pcmk_graph_consumer.c if (!(pcmk_is_set(synapse->flags, pcmk__synapse_confirmed))) { synapse 486 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Synapse %d cannot fire", synapse->id); synapse 577 lib/pacemaker/pcmk_graph_consumer.c action->synapse = parent; synapse 73 lib/pacemaker/pcmk_graph_logging.c const pcmk__graph_synapse_t *synapse = synapse_iter->data; synapse 75 lib/pacemaker/pcmk_graph_logging.c for (const GList *action_iter = synapse->actions; synapse 88 lib/pacemaker/pcmk_graph_logging.c synapse_state_str(pcmk__graph_synapse_t *synapse) synapse 90 lib/pacemaker/pcmk_graph_logging.c if (pcmk_is_set(synapse->flags, pcmk__synapse_failed)) { synapse 93 lib/pacemaker/pcmk_graph_logging.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 96 lib/pacemaker/pcmk_graph_logging.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 99 lib/pacemaker/pcmk_graph_logging.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 120 lib/pacemaker/pcmk_graph_logging.c const pcmk__graph_synapse_t *synapse) synapse 124 lib/pacemaker/pcmk_graph_logging.c for (const GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 144 lib/pacemaker/pcmk_graph_logging.c pcmk__graph_synapse_t *synapse) synapse 146 lib/pacemaker/pcmk_graph_logging.c for (GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 161 lib/pacemaker/pcmk_graph_logging.c log_synapse_action(unsigned int log_level, pcmk__graph_synapse_t *synapse, synapse 167 lib/pacemaker/pcmk_graph_logging.c synapse_state_str(synapse), synapse 173 lib/pacemaker/pcmk_graph_logging.c synapse->priority, pending_inputs); synapse 179 lib/pacemaker/pcmk_graph_logging.c pcmk__graph_synapse_t *synapse) synapse 184 lib/pacemaker/pcmk_graph_logging.c if (!pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 185 lib/pacemaker/pcmk_graph_logging.c g_pending = synapse_pending_inputs(graph, synapse); synapse 192 lib/pacemaker/pcmk_graph_logging.c for (GList *lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 193 lib/pacemaker/pcmk_graph_logging.c log_synapse_action(log_level, synapse, synapse 201 lib/pacemaker/pcmk_graph_logging.c if (!pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 202 lib/pacemaker/pcmk_graph_logging.c log_unresolved_inputs(log_level, graph, synapse); synapse 209 lib/pacemaker/pcmk_graph_logging.c log_synapse(log_level, NULL, action->synapse);