synapse 374 daemons/controld/controld_fencing.c synapse_t *synapse = (synapse_t *) lpc->data; synapse 376 daemons/controld/controld_fencing.c if (pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 380 daemons/controld/controld_fencing.c for (lpc2 = synapse->actions; lpc2 != NULL; lpc2 = lpc2->next) { synapse 40 daemons/controld/controld_te_events.c synapse_t *synapse = (synapse_t *) gIter->data; synapse 42 daemons/controld/controld_te_events.c if (pcmk_any_flags_set(synapse->flags, pcmk__synapse_confirmed|pcmk__synapse_failed)) { synapse 47 daemons/controld/controld_te_events.c gIter2 = synapse->actions; synapse 72 daemons/controld/controld_te_events.c pcmk__set_synapse_flags(synapse, pcmk__synapse_failed); synapse 77 daemons/controld/controld_te_events.c if (pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 203 daemons/controld/controld_te_events.c synapse_t *synapse = (synapse_t *) item->data; synapse 205 daemons/controld/controld_te_events.c for (GList *item2 = synapse->actions; item2; item2 = item2->next) { synapse 224 daemons/controld/controld_te_events.c synapse_t *synapse = (synapse_t *) gIter->data; synapse 226 daemons/controld/controld_te_events.c gIter2 = synapse->actions; synapse 453 daemons/controld/controld_te_events.c abort_transition(action->synapse->priority + 1, tg_restart, synapse 48 include/pcmki/pcmki_transition.h const char *synapse_state_str(synapse_t *synapse); synapse 50 include/pcmki/pcmki_transition.h #define pcmk__set_synapse_flags(synapse, flags_to_set) do { \ synapse 51 include/pcmki/pcmki_transition.h (synapse)->flags = pcmk__set_flags_as(__func__, __LINE__, \ synapse 54 include/pcmki/pcmki_transition.h (synapse)->flags, (flags_to_set), #flags_to_set); \ synapse 57 include/pcmki/pcmki_transition.h #define pcmk__clear_synapse_flags(synapse, flags_to_clear) do { \ synapse 58 include/pcmki/pcmki_transition.h (synapse)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ synapse 61 include/pcmki/pcmki_transition.h (synapse)->flags, (flags_to_clear), #flags_to_clear); \ synapse 80 include/pcmki/pcmki_transition.h synapse_t *synapse; synapse 45 lib/pacemaker/pcmk_graph_consumer.c update_synapse_ready(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(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 synapse_t *synapse = (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(crm_graph_t *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 272 lib/pacemaker/pcmk_graph_consumer.c fire_synapse(crm_graph_t *graph, synapse_t *synapse) synapse 274 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_executed); synapse 275 lib/pacemaker/pcmk_graph_consumer.c for (GList *lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 280 lib/pacemaker/pcmk_graph_consumer.c crm_element_name(action->xml), action->id, synapse->id); synapse 281 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_confirmed); synapse 366 lib/pacemaker/pcmk_graph_consumer.c synapse_t *synapse = (synapse_t *) lpc->data; synapse 368 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 371 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 380 lib/pacemaker/pcmk_graph_consumer.c synapse_t *synapse = (synapse_t *) lpc->data; synapse 389 lib/pacemaker/pcmk_graph_consumer.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_failed)) { synapse 393 lib/pacemaker/pcmk_graph_consumer.c } else if (pcmk_any_flags_set(synapse->flags, pcmk__synapse_confirmed|pcmk__synapse_executed)) { synapse 396 lib/pacemaker/pcmk_graph_consumer.c } else if (should_fire_synapse(graph, synapse)) { synapse 398 lib/pacemaker/pcmk_graph_consumer.c if (fire_synapse(graph, synapse) != pcmk_rc_ok) { synapse 399 lib/pacemaker/pcmk_graph_consumer.c crm_err("Synapse %d failed to fire", synapse->id); synapse 406 lib/pacemaker/pcmk_graph_consumer.c if (!(pcmk_is_set(synapse->flags, pcmk__synapse_confirmed))) { synapse 411 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Synapse %d cannot fire", synapse->id); synapse 504 lib/pacemaker/pcmk_graph_consumer.c action->synapse = parent; synapse 771 lib/pacemaker/pcmk_graph_consumer.c synapse_t *synapse = user_data; synapse 773 lib/pacemaker/pcmk_graph_consumer.c g_list_free_full(synapse->actions, free_graph_action); synapse 774 lib/pacemaker/pcmk_graph_consumer.c g_list_free_full(synapse->inputs, free_graph_action); synapse 775 lib/pacemaker/pcmk_graph_consumer.c free(synapse); synapse 78 lib/pacemaker/pcmk_graph_logging.c synapse_t *synapse = (synapse_t *) sIter->data; synapse 80 lib/pacemaker/pcmk_graph_logging.c for (GList *aIter = synapse->actions; aIter != NULL; synapse 94 lib/pacemaker/pcmk_graph_logging.c synapse_state_str(synapse_t *synapse) synapse 96 lib/pacemaker/pcmk_graph_logging.c if (pcmk_is_set(synapse->flags, pcmk__synapse_failed)) { synapse 99 lib/pacemaker/pcmk_graph_logging.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 102 lib/pacemaker/pcmk_graph_logging.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 105 lib/pacemaker/pcmk_graph_logging.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 113 lib/pacemaker/pcmk_graph_logging.c synapse_pending_inputs(crm_graph_t *graph, synapse_t *synapse) synapse 118 lib/pacemaker/pcmk_graph_logging.c for (GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 141 lib/pacemaker/pcmk_graph_logging.c synapse_t *synapse) synapse 143 lib/pacemaker/pcmk_graph_logging.c for (GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 158 lib/pacemaker/pcmk_graph_logging.c log_synapse_action(unsigned int log_level, synapse_t *synapse, synapse 164 lib/pacemaker/pcmk_graph_logging.c synapse_state_str(synapse), synapse 170 lib/pacemaker/pcmk_graph_logging.c synapse->priority, pending_inputs); synapse 175 lib/pacemaker/pcmk_graph_logging.c log_synapse(unsigned int log_level, crm_graph_t *graph, synapse_t *synapse) synapse 179 lib/pacemaker/pcmk_graph_logging.c if (!pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 180 lib/pacemaker/pcmk_graph_logging.c pending = synapse_pending_inputs(graph, synapse); synapse 182 lib/pacemaker/pcmk_graph_logging.c for (GList *lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 183 lib/pacemaker/pcmk_graph_logging.c log_synapse_action(log_level, synapse, (crm_action_t *) lpc->data, synapse 187 lib/pacemaker/pcmk_graph_logging.c if (!pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 188 lib/pacemaker/pcmk_graph_logging.c log_unresolved_inputs(log_level, graph, synapse); synapse 195 lib/pacemaker/pcmk_graph_logging.c log_synapse(log_level, NULL, action->synapse);