synapse 410 daemons/controld/controld_fencing.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 412 daemons/controld/controld_fencing.c if (pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 416 daemons/controld/controld_fencing.c for (lpc2 = synapse->actions; lpc2 != NULL; lpc2 = lpc2->next) { synapse 97 daemons/controld/controld_te_events.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) gIter->data; synapse 99 daemons/controld/controld_te_events.c if (pcmk_any_flags_set(synapse->flags, pcmk__synapse_confirmed|pcmk__synapse_failed)) { synapse 104 daemons/controld/controld_te_events.c gIter2 = synapse->actions; synapse 130 daemons/controld/controld_te_events.c pcmk__set_synapse_flags(synapse, pcmk__synapse_failed); synapse 135 daemons/controld/controld_te_events.c if (pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 287 daemons/controld/controld_te_events.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) item->data; synapse 289 daemons/controld/controld_te_events.c for (GList *item2 = synapse->actions; item2; item2 = item2->next) { synapse 308 daemons/controld/controld_te_events.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) gIter->data; synapse 310 daemons/controld/controld_te_events.c gIter2 = synapse->actions; synapse 547 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 45 lib/pacemaker/pcmk_graph_consumer.c update_synapse_ready(pcmk__graph_synapse_t *synapse, int action_id) synapse 47 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 50 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_ready); // Presume ready until proven otherwise synapse 51 lib/pacemaker/pcmk_graph_consumer.c for (GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 56 lib/pacemaker/pcmk_graph_consumer.c action_id, synapse->id); synapse 60 lib/pacemaker/pcmk_graph_consumer.c pcmk__clear_synapse_flags(synapse, pcmk__synapse_ready); synapse 62 lib/pacemaker/pcmk_graph_consumer.c synapse->id, action_id); synapse 65 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 66 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Synapse %d is now ready to execute", synapse->id); synapse 78 lib/pacemaker/pcmk_graph_consumer.c update_synapse_confirmed(pcmk__graph_synapse_t *synapse, int action_id) synapse 82 lib/pacemaker/pcmk_graph_consumer.c for (GList *lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 87 lib/pacemaker/pcmk_graph_consumer.c action_id, synapse->id); synapse 93 lib/pacemaker/pcmk_graph_consumer.c synapse->id, action_id); synapse 97 lib/pacemaker/pcmk_graph_consumer.c if (all_confirmed && !(pcmk_is_set(synapse->flags, pcmk__synapse_confirmed))) { synapse 98 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Confirmed synapse %d", synapse->id); synapse 99 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_confirmed); synapse 114 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 116 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_any_flags_set(synapse->flags, pcmk__synapse_confirmed|pcmk__synapse_failed)) { synapse 119 lib/pacemaker/pcmk_graph_consumer.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 120 lib/pacemaker/pcmk_graph_consumer.c update_synapse_confirmed(synapse, action->id); synapse 122 lib/pacemaker/pcmk_graph_consumer.c } else if (!(pcmk_is_set(action->flags, pcmk__graph_action_failed)) || (synapse->priority == INFINITY)) { synapse 123 lib/pacemaker/pcmk_graph_consumer.c update_synapse_ready(synapse, action->id); synapse 168 lib/pacemaker/pcmk_graph_consumer.c should_fire_synapse(pcmk__graph_t *graph, pcmk__graph_synapse_t *synapse) synapse 172 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_ready); synapse 173 lib/pacemaker/pcmk_graph_consumer.c for (lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 178 lib/pacemaker/pcmk_graph_consumer.c prereq->id, synapse->id); synapse 179 lib/pacemaker/pcmk_graph_consumer.c pcmk__clear_synapse_flags(synapse, pcmk__synapse_ready); synapse 184 lib/pacemaker/pcmk_graph_consumer.c prereq->id, synapse->id); synapse 185 lib/pacemaker/pcmk_graph_consumer.c pcmk__clear_synapse_flags(synapse, pcmk__synapse_ready); synapse 189 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 190 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Synapse %d is ready to execute", synapse->id); synapse 195 lib/pacemaker/pcmk_graph_consumer.c for (lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 201 lib/pacemaker/pcmk_graph_consumer.c } else if (synapse->priority < graph->abort_priority) { synapse 204 lib/pacemaker/pcmk_graph_consumer.c synapse->id, synapse->priority, graph->abort_priority); synapse 209 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Deferring synapse %d: not allowed", synapse->id); synapse 273 lib/pacemaker/pcmk_graph_consumer.c fire_synapse(pcmk__graph_t *graph, pcmk__graph_synapse_t *synapse) synapse 275 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_executed); synapse 276 lib/pacemaker/pcmk_graph_consumer.c for (GList *lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 283 lib/pacemaker/pcmk_graph_consumer.c crm_element_name(action->xml), action->id, synapse->id, synapse 285 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_confirmed); synapse 372 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 374 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 377 lib/pacemaker/pcmk_graph_consumer.c } else if (!(pcmk_is_set(synapse->flags, pcmk__synapse_failed)) && pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 386 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 395 lib/pacemaker/pcmk_graph_consumer.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_failed)) { synapse 399 lib/pacemaker/pcmk_graph_consumer.c } else if (pcmk_any_flags_set(synapse->flags, pcmk__synapse_confirmed|pcmk__synapse_executed)) { synapse 402 lib/pacemaker/pcmk_graph_consumer.c } else if (should_fire_synapse(graph, synapse)) { synapse 404 lib/pacemaker/pcmk_graph_consumer.c if (fire_synapse(graph, synapse) != pcmk_rc_ok) { synapse 405 lib/pacemaker/pcmk_graph_consumer.c crm_err("Synapse %d failed to fire", synapse->id); synapse 412 lib/pacemaker/pcmk_graph_consumer.c if (!(pcmk_is_set(synapse->flags, pcmk__synapse_confirmed))) { synapse 417 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Synapse %d cannot fire", synapse->id); synapse 510 lib/pacemaker/pcmk_graph_consumer.c action->synapse = parent; synapse 788 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = user_data; synapse 790 lib/pacemaker/pcmk_graph_consumer.c g_list_free_full(synapse->actions, free_graph_action); synapse 791 lib/pacemaker/pcmk_graph_consumer.c g_list_free_full(synapse->inputs, free_graph_action); synapse 792 lib/pacemaker/pcmk_graph_consumer.c free(synapse); synapse 74 lib/pacemaker/pcmk_graph_logging.c const pcmk__graph_synapse_t *synapse = NULL; synapse 76 lib/pacemaker/pcmk_graph_logging.c synapse = (const pcmk__graph_synapse_t *) sIter->data; synapse 77 lib/pacemaker/pcmk_graph_logging.c for (const GList *aIter = synapse->actions; aIter != NULL; synapse 92 lib/pacemaker/pcmk_graph_logging.c synapse_state_str(pcmk__graph_synapse_t *synapse) synapse 94 lib/pacemaker/pcmk_graph_logging.c if (pcmk_is_set(synapse->flags, pcmk__synapse_failed)) { synapse 97 lib/pacemaker/pcmk_graph_logging.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 100 lib/pacemaker/pcmk_graph_logging.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 103 lib/pacemaker/pcmk_graph_logging.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 124 lib/pacemaker/pcmk_graph_logging.c const pcmk__graph_synapse_t *synapse) synapse 128 lib/pacemaker/pcmk_graph_logging.c for (const GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 148 lib/pacemaker/pcmk_graph_logging.c pcmk__graph_synapse_t *synapse) synapse 150 lib/pacemaker/pcmk_graph_logging.c for (GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 165 lib/pacemaker/pcmk_graph_logging.c log_synapse_action(unsigned int log_level, pcmk__graph_synapse_t *synapse, synapse 171 lib/pacemaker/pcmk_graph_logging.c synapse_state_str(synapse), synapse 177 lib/pacemaker/pcmk_graph_logging.c synapse->priority, pending_inputs); synapse 183 lib/pacemaker/pcmk_graph_logging.c pcmk__graph_synapse_t *synapse) synapse 188 lib/pacemaker/pcmk_graph_logging.c if (!pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 189 lib/pacemaker/pcmk_graph_logging.c g_pending = synapse_pending_inputs(graph, synapse); synapse 196 lib/pacemaker/pcmk_graph_logging.c for (GList *lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 197 lib/pacemaker/pcmk_graph_logging.c log_synapse_action(log_level, synapse, synapse 205 lib/pacemaker/pcmk_graph_logging.c if (!pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 206 lib/pacemaker/pcmk_graph_logging.c log_unresolved_inputs(log_level, graph, synapse); synapse 213 lib/pacemaker/pcmk_graph_logging.c log_synapse(log_level, NULL, action->synapse);