synapse 375 daemons/controld/controld_fencing.c synapse_t *synapse = (synapse_t *) lpc->data; synapse 377 daemons/controld/controld_fencing.c if (synapse->confirmed) { synapse 381 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 (synapse->confirmed || synapse->failed) { synapse 47 daemons/controld/controld_te_events.c gIter2 = synapse->actions; synapse 72 daemons/controld/controld_te_events.c synapse->failed = TRUE; synapse 77 daemons/controld/controld_te_events.c if (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 52 include/pcmki/pcmki_transition.h synapse_t *synapse; synapse 20 lib/pacemaker/pcmk_trans_graph.c update_synapse_ready(synapse_t * synapse, int action_id) synapse 25 lib/pacemaker/pcmk_trans_graph.c CRM_CHECK(synapse->executed == FALSE, return FALSE); synapse 26 lib/pacemaker/pcmk_trans_graph.c CRM_CHECK(synapse->confirmed == FALSE, return FALSE); synapse 28 lib/pacemaker/pcmk_trans_graph.c synapse->ready = TRUE; synapse 29 lib/pacemaker/pcmk_trans_graph.c for (lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 35 lib/pacemaker/pcmk_trans_graph.c crm_trace("Marking input %d of synapse %d confirmed", action_id, synapse->id); synapse 40 lib/pacemaker/pcmk_trans_graph.c synapse->ready = FALSE; synapse 46 lib/pacemaker/pcmk_trans_graph.c crm_trace("Updated synapse %d", synapse->id); synapse 52 lib/pacemaker/pcmk_trans_graph.c update_synapse_confirmed(synapse_t * synapse, int action_id) synapse 58 lib/pacemaker/pcmk_trans_graph.c CRM_CHECK(synapse->executed, return FALSE); synapse 59 lib/pacemaker/pcmk_trans_graph.c CRM_CHECK(synapse->confirmed == FALSE, return TRUE); synapse 62 lib/pacemaker/pcmk_trans_graph.c for (lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 68 lib/pacemaker/pcmk_trans_graph.c crm_trace("Confirmed: Action %d of Synapse %d", action_id, synapse->id); synapse 74 lib/pacemaker/pcmk_trans_graph.c crm_trace("Synapse %d still not confirmed after action %d", synapse->id, action_id); synapse 78 lib/pacemaker/pcmk_trans_graph.c if (is_confirmed && synapse->confirmed == FALSE) { synapse 79 lib/pacemaker/pcmk_trans_graph.c crm_trace("Confirmed: Synapse %d", synapse->id); synapse 80 lib/pacemaker/pcmk_trans_graph.c synapse->confirmed = TRUE; synapse 85 lib/pacemaker/pcmk_trans_graph.c crm_trace("Updated synapse %d", synapse->id); synapse 98 lib/pacemaker/pcmk_trans_graph.c synapse_t *synapse = (synapse_t *) lpc->data; synapse 100 lib/pacemaker/pcmk_trans_graph.c if (synapse->confirmed || synapse->failed) { synapse 103 lib/pacemaker/pcmk_trans_graph.c } else if (synapse->executed) { synapse 105 lib/pacemaker/pcmk_trans_graph.c rc = update_synapse_confirmed(synapse, action->id); synapse 107 lib/pacemaker/pcmk_trans_graph.c } else if (action->failed == FALSE || synapse->priority == INFINITY) { synapse 108 lib/pacemaker/pcmk_trans_graph.c rc = update_synapse_ready(synapse, action->id); synapse 120 lib/pacemaker/pcmk_trans_graph.c should_fire_synapse(crm_graph_t * graph, synapse_t * synapse) synapse 124 lib/pacemaker/pcmk_trans_graph.c CRM_CHECK(synapse->executed == FALSE, return FALSE); synapse 125 lib/pacemaker/pcmk_trans_graph.c CRM_CHECK(synapse->confirmed == FALSE, return FALSE); synapse 127 lib/pacemaker/pcmk_trans_graph.c crm_trace("Checking pre-reqs for synapse %d", synapse->id); synapse 129 lib/pacemaker/pcmk_trans_graph.c synapse->ready = TRUE; synapse 130 lib/pacemaker/pcmk_trans_graph.c for (lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 135 lib/pacemaker/pcmk_trans_graph.c crm_trace("Input %d for synapse %d not satisfied: not confirmed", prereq->id, synapse->id); synapse 136 lib/pacemaker/pcmk_trans_graph.c synapse->ready = FALSE; synapse 139 lib/pacemaker/pcmk_trans_graph.c crm_trace("Input %d for synapse %d not satisfied: failed", prereq->id, synapse->id); synapse 140 lib/pacemaker/pcmk_trans_graph.c synapse->ready = FALSE; synapse 145 lib/pacemaker/pcmk_trans_graph.c for (lpc = synapse->actions; synapse->ready && lpc != NULL; lpc = lpc->next) { synapse 151 lib/pacemaker/pcmk_trans_graph.c } else if (synapse->priority < graph->abort_priority) { synapse 152 lib/pacemaker/pcmk_trans_graph.c crm_trace("Skipping synapse %d: abort level %d", synapse->id, graph->abort_priority); synapse 157 lib/pacemaker/pcmk_trans_graph.c crm_trace("Deferring synapse %d: allowed", synapse->id); synapse 162 lib/pacemaker/pcmk_trans_graph.c return synapse->ready; synapse 204 lib/pacemaker/pcmk_trans_graph.c fire_synapse(crm_graph_t * graph, synapse_t * synapse) synapse 208 lib/pacemaker/pcmk_trans_graph.c CRM_CHECK(synapse != NULL, return FALSE); synapse 209 lib/pacemaker/pcmk_trans_graph.c CRM_CHECK(synapse->ready, return FALSE); synapse 210 lib/pacemaker/pcmk_trans_graph.c CRM_CHECK(synapse->confirmed == FALSE, return TRUE); synapse 212 lib/pacemaker/pcmk_trans_graph.c crm_trace("Synapse %d fired", synapse->id); synapse 213 lib/pacemaker/pcmk_trans_graph.c synapse->executed = TRUE; synapse 214 lib/pacemaker/pcmk_trans_graph.c for (lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 224 lib/pacemaker/pcmk_trans_graph.c crm_element_name(action->xml), action->id, synapse->id); synapse 225 lib/pacemaker/pcmk_trans_graph.c synapse->confirmed = TRUE; synapse 260 lib/pacemaker/pcmk_trans_graph.c synapse_t *synapse = (synapse_t *) lpc->data; synapse 262 lib/pacemaker/pcmk_trans_graph.c if (synapse->confirmed) { synapse 263 lib/pacemaker/pcmk_trans_graph.c crm_trace("Synapse %d complete", synapse->id); synapse 266 lib/pacemaker/pcmk_trans_graph.c } else if (synapse->failed == FALSE && synapse->executed) { synapse 267 lib/pacemaker/pcmk_trans_graph.c crm_trace("Synapse %d: confirmation pending", synapse->id); synapse 274 lib/pacemaker/pcmk_trans_graph.c synapse_t *synapse = (synapse_t *) lpc->data; synapse 279 lib/pacemaker/pcmk_trans_graph.c } else if (synapse->failed) { synapse 283 lib/pacemaker/pcmk_trans_graph.c } else if (synapse->confirmed || synapse->executed) { synapse 288 lib/pacemaker/pcmk_trans_graph.c if (should_fire_synapse(graph, synapse)) { synapse 289 lib/pacemaker/pcmk_trans_graph.c crm_trace("Synapse %d fired", synapse->id); synapse 291 lib/pacemaker/pcmk_trans_graph.c if(fire_synapse(graph, synapse) == FALSE) { synapse 292 lib/pacemaker/pcmk_trans_graph.c crm_err("Synapse %d failed to fire", synapse->id); synapse 299 lib/pacemaker/pcmk_trans_graph.c if (synapse->confirmed == FALSE) { synapse 304 lib/pacemaker/pcmk_trans_graph.c crm_trace("Synapse %d cannot fire", synapse->id); synapse 43 lib/pacemaker/pcmk_trans_unpack.c action->synapse = parent; synapse 183 lib/pacemaker/pcmk_trans_unpack.c xmlNode *synapse = NULL; synapse 224 lib/pacemaker/pcmk_trans_unpack.c for (synapse = pcmk__xml_first_child(xml_graph); synapse != NULL; synapse 225 lib/pacemaker/pcmk_trans_unpack.c synapse = pcmk__xml_next(synapse)) { synapse 227 lib/pacemaker/pcmk_trans_unpack.c if (pcmk__str_eq((const char *)synapse->name, "synapse", pcmk__str_none)) { synapse 228 lib/pacemaker/pcmk_trans_unpack.c synapse_t *new_synapse = unpack_synapse(new_graph, synapse); synapse 258 lib/pacemaker/pcmk_trans_unpack.c destroy_synapse(synapse_t * synapse) synapse 260 lib/pacemaker/pcmk_trans_unpack.c while (synapse->actions != NULL) { synapse 261 lib/pacemaker/pcmk_trans_unpack.c crm_action_t *action = g_list_nth_data(synapse->actions, 0); synapse 263 lib/pacemaker/pcmk_trans_unpack.c synapse->actions = g_list_remove(synapse->actions, action); synapse 267 lib/pacemaker/pcmk_trans_unpack.c while (synapse->inputs != NULL) { synapse 268 lib/pacemaker/pcmk_trans_unpack.c crm_action_t *action = g_list_nth_data(synapse->inputs, 0); synapse 270 lib/pacemaker/pcmk_trans_unpack.c synapse->inputs = g_list_remove(synapse->inputs, action); synapse 273 lib/pacemaker/pcmk_trans_unpack.c free(synapse); synapse 283 lib/pacemaker/pcmk_trans_unpack.c synapse_t *synapse = g_list_nth_data(graph->synapses, 0); synapse 285 lib/pacemaker/pcmk_trans_unpack.c graph->synapses = g_list_remove(graph->synapses, synapse); synapse 286 lib/pacemaker/pcmk_trans_unpack.c destroy_synapse(synapse); synapse 118 lib/pacemaker/pcmk_trans_utils.c synapse_t *synapse = (synapse_t *) sIter->data; synapse 120 lib/pacemaker/pcmk_trans_utils.c for (aIter = synapse->actions; aIter != NULL; aIter = aIter->next) { synapse 132 lib/pacemaker/pcmk_trans_utils.c synapse_state_str(synapse_t *synapse) synapse 134 lib/pacemaker/pcmk_trans_utils.c if (synapse->failed) { synapse 137 lib/pacemaker/pcmk_trans_utils.c } else if (synapse->confirmed) { synapse 140 lib/pacemaker/pcmk_trans_utils.c } else if (synapse->executed) { synapse 143 lib/pacemaker/pcmk_trans_utils.c } else if (synapse->ready) { synapse 151 lib/pacemaker/pcmk_trans_utils.c synapse_pending_inputs(crm_graph_t *graph, synapse_t *synapse) synapse 156 lib/pacemaker/pcmk_trans_utils.c for (GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 179 lib/pacemaker/pcmk_trans_utils.c synapse_t *synapse) synapse 181 lib/pacemaker/pcmk_trans_utils.c for (GList *lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 196 lib/pacemaker/pcmk_trans_utils.c log_synapse_action(unsigned int log_level, synapse_t *synapse, synapse 202 lib/pacemaker/pcmk_trans_utils.c synapse_state_str(synapse), synapse 208 lib/pacemaker/pcmk_trans_utils.c synapse->priority, pending_inputs); synapse 213 lib/pacemaker/pcmk_trans_utils.c print_synapse(unsigned int log_level, crm_graph_t * graph, synapse_t * synapse) synapse 217 lib/pacemaker/pcmk_trans_utils.c if (!synapse->executed) { synapse 218 lib/pacemaker/pcmk_trans_utils.c pending = synapse_pending_inputs(graph, synapse); synapse 220 lib/pacemaker/pcmk_trans_utils.c for (GList *lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 221 lib/pacemaker/pcmk_trans_utils.c log_synapse_action(log_level, synapse, (crm_action_t *) lpc->data, synapse 225 lib/pacemaker/pcmk_trans_utils.c if (!synapse->executed) { synapse 226 lib/pacemaker/pcmk_trans_utils.c log_unresolved_inputs(log_level, graph, synapse); synapse 233 lib/pacemaker/pcmk_trans_utils.c print_synapse(log_level, NULL, action->synapse); synapse 254 lib/pacemaker/pcmk_trans_utils.c synapse_t *synapse = (synapse_t *) lpc->data; synapse 256 lib/pacemaker/pcmk_trans_utils.c print_synapse(log_level, graph, synapse);