synapse 413 daemons/controld/controld_fencing.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 415 daemons/controld/controld_fencing.c if (pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 419 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 46 include/pcmki/pcmki_transition.h #define pcmk__set_synapse_flags(synapse, flags_to_set) do { \ synapse 47 include/pcmki/pcmki_transition.h (synapse)->flags = pcmk__set_flags_as(__func__, __LINE__, \ synapse 50 include/pcmki/pcmki_transition.h (synapse)->flags, (flags_to_set), #flags_to_set); \ synapse 53 include/pcmki/pcmki_transition.h #define pcmk__clear_synapse_flags(synapse, flags_to_clear) do { \ synapse 54 include/pcmki/pcmki_transition.h (synapse)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ synapse 57 include/pcmki/pcmki_transition.h (synapse)->flags, (flags_to_clear), #flags_to_clear); \ synapse 75 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 52 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_ready); synapse 54 lib/pacemaker/pcmk_graph_consumer.c for (GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 59 lib/pacemaker/pcmk_graph_consumer.c action_id, synapse->id); synapse 63 lib/pacemaker/pcmk_graph_consumer.c pcmk__clear_synapse_flags(synapse, pcmk__synapse_ready); synapse 65 lib/pacemaker/pcmk_graph_consumer.c synapse->id, action_id); synapse 68 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 69 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Synapse %d is now ready to execute", synapse->id); synapse 81 lib/pacemaker/pcmk_graph_consumer.c update_synapse_confirmed(pcmk__graph_synapse_t *synapse, int action_id) synapse 85 lib/pacemaker/pcmk_graph_consumer.c for (GList *lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 90 lib/pacemaker/pcmk_graph_consumer.c action_id, synapse->id); synapse 97 lib/pacemaker/pcmk_graph_consumer.c synapse->id, action_id); synapse 102 lib/pacemaker/pcmk_graph_consumer.c && !pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 103 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Confirmed synapse %d", synapse->id); synapse 104 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_confirmed); synapse 119 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 121 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_any_flags_set(synapse->flags, synapse 125 lib/pacemaker/pcmk_graph_consumer.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 126 lib/pacemaker/pcmk_graph_consumer.c update_synapse_confirmed(synapse, action->id); synapse 129 lib/pacemaker/pcmk_graph_consumer.c || (synapse->priority == INFINITY)) { synapse 130 lib/pacemaker/pcmk_graph_consumer.c update_synapse_ready(synapse, action->id); synapse 175 lib/pacemaker/pcmk_graph_consumer.c should_fire_synapse(pcmk__graph_t *graph, pcmk__graph_synapse_t *synapse) synapse 179 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_ready); synapse 180 lib/pacemaker/pcmk_graph_consumer.c for (lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 185 lib/pacemaker/pcmk_graph_consumer.c prereq->id, synapse->id); synapse 186 lib/pacemaker/pcmk_graph_consumer.c pcmk__clear_synapse_flags(synapse, pcmk__synapse_ready); synapse 193 lib/pacemaker/pcmk_graph_consumer.c prereq->id, synapse->id); synapse 194 lib/pacemaker/pcmk_graph_consumer.c pcmk__clear_synapse_flags(synapse, pcmk__synapse_ready); synapse 198 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 199 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Synapse %d is ready to execute", synapse->id); synapse 204 lib/pacemaker/pcmk_graph_consumer.c for (lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 210 lib/pacemaker/pcmk_graph_consumer.c } else if (synapse->priority < graph->abort_priority) { synapse 213 lib/pacemaker/pcmk_graph_consumer.c synapse->id, synapse->priority, graph->abort_priority); synapse 218 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Deferring synapse %d: not allowed", synapse->id); synapse 282 lib/pacemaker/pcmk_graph_consumer.c fire_synapse(pcmk__graph_t *graph, pcmk__graph_synapse_t *synapse) synapse 284 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_executed); synapse 285 lib/pacemaker/pcmk_graph_consumer.c for (GList *lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 292 lib/pacemaker/pcmk_graph_consumer.c action->xml->name, action->id, synapse->id, synapse 294 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_synapse_flags(synapse, pcmk__synapse_confirmed); synapse 381 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 383 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 386 lib/pacemaker/pcmk_graph_consumer.c } else if (!pcmk_is_set(synapse->flags, pcmk__synapse_failed) synapse 387 lib/pacemaker/pcmk_graph_consumer.c && pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 396 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = (pcmk__graph_synapse_t *) lpc->data; synapse 405 lib/pacemaker/pcmk_graph_consumer.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_failed)) { synapse 409 lib/pacemaker/pcmk_graph_consumer.c } else if (pcmk_any_flags_set(synapse->flags, synapse 414 lib/pacemaker/pcmk_graph_consumer.c } else if (should_fire_synapse(graph, synapse)) { synapse 416 lib/pacemaker/pcmk_graph_consumer.c if (fire_synapse(graph, synapse) != pcmk_rc_ok) { synapse 417 lib/pacemaker/pcmk_graph_consumer.c crm_err("Synapse %d failed to fire", synapse->id); synapse 424 lib/pacemaker/pcmk_graph_consumer.c if (!(pcmk_is_set(synapse->flags, pcmk__synapse_confirmed))) { synapse 429 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Synapse %d cannot fire", synapse->id); synapse 519 lib/pacemaker/pcmk_graph_consumer.c action->synapse = parent; synapse 796 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *synapse = user_data; synapse 798 lib/pacemaker/pcmk_graph_consumer.c g_list_free_full(synapse->actions, free_graph_action); synapse 799 lib/pacemaker/pcmk_graph_consumer.c g_list_free_full(synapse->inputs, free_graph_action); synapse 800 lib/pacemaker/pcmk_graph_consumer.c free(synapse); synapse 74 lib/pacemaker/pcmk_graph_logging.c const pcmk__graph_synapse_t *synapse = synapse_iter->data; synapse 76 lib/pacemaker/pcmk_graph_logging.c for (const GList *action_iter = synapse->actions; synapse 89 lib/pacemaker/pcmk_graph_logging.c synapse_state_str(pcmk__graph_synapse_t *synapse) synapse 91 lib/pacemaker/pcmk_graph_logging.c if (pcmk_is_set(synapse->flags, pcmk__synapse_failed)) { synapse 94 lib/pacemaker/pcmk_graph_logging.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_confirmed)) { synapse 97 lib/pacemaker/pcmk_graph_logging.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 100 lib/pacemaker/pcmk_graph_logging.c } else if (pcmk_is_set(synapse->flags, pcmk__synapse_ready)) { synapse 121 lib/pacemaker/pcmk_graph_logging.c const pcmk__graph_synapse_t *synapse) synapse 125 lib/pacemaker/pcmk_graph_logging.c for (const GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 145 lib/pacemaker/pcmk_graph_logging.c pcmk__graph_synapse_t *synapse) synapse 147 lib/pacemaker/pcmk_graph_logging.c for (GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 162 lib/pacemaker/pcmk_graph_logging.c log_synapse_action(unsigned int log_level, pcmk__graph_synapse_t *synapse, synapse 168 lib/pacemaker/pcmk_graph_logging.c synapse_state_str(synapse), synapse 174 lib/pacemaker/pcmk_graph_logging.c synapse->priority, pending_inputs); synapse 180 lib/pacemaker/pcmk_graph_logging.c pcmk__graph_synapse_t *synapse) synapse 185 lib/pacemaker/pcmk_graph_logging.c if (!pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 186 lib/pacemaker/pcmk_graph_logging.c g_pending = synapse_pending_inputs(graph, synapse); synapse 193 lib/pacemaker/pcmk_graph_logging.c for (GList *lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 194 lib/pacemaker/pcmk_graph_logging.c log_synapse_action(log_level, synapse, synapse 202 lib/pacemaker/pcmk_graph_logging.c if (!pcmk_is_set(synapse->flags, pcmk__synapse_executed)) { synapse 203 lib/pacemaker/pcmk_graph_logging.c log_unresolved_inputs(log_level, graph, synapse); synapse 210 lib/pacemaker/pcmk_graph_logging.c log_synapse(log_level, NULL, action->synapse);