Home | History | Annotate | Download | only in acpi

Lines Matching refs:Action

145 	unsigned action;
206 * Compile the interpreter from the EINJ action instruction
226 * Create sysctl hw.acpi.apei.einj.action for individual actions.
231 CTLTYPE_NODE, "action",
237 " hw.acpi.apei.einj.action: %d\n", error);
242 * Create sysctl nodes for each action we know about.
244 for (action = 0; action < __arraycount(apei_einj_action); action++) {
245 if (apei_einj_action[action] == NULL)
250 * action.
258 if (action == header->Action)
263 * No instructions for this action, so assume
270 * Create a sysctl knob to perform the action.
275 CTLTYPE_QUAD, apei_einj_action[action],
278 action, CTL_EOL);
281 " sysctl hw.acpi.apei.einj.action.%s: %d\n",
282 apei_einj_action[action], error);
391 * action. Updates the EINJ machine at cookie in place.
459 * apei_einj_act(sc, action, x)
461 * Perform the named EINJ action with input x, by executing the
462 * instruction defined for the action by the EINJ, and return the
466 apei_einj_act(struct apei_softc *sc, enum AcpiEinjActions action,
472 aprint_debug_dev(sc->sc_dev, "%s: action=%d (%s) input=0x%"PRIx64"\n",
474 action,
475 (action < __arraycount(apei_einj_action)
476 ? apei_einj_action[action]
481 * Initialize the machine to execute the action's instructions.
491 apei_interpret(jsc->jsc_interp, action, M);
504 * Obtain the TRIGGER_ERROR action table and, if there is anything
519 * Initialize the machine to execute the TRIGGER_ERROR action's
529 * Get the TRIGGER_ERROR action table's physical address.
553 device_printf(sc->sc_dev, "TRIGGER_ERROR action table:"
565 device_printf(sc->sc_dev, "TRIGGER_ERROR action table:"
579 device_printf(sc->sc_dev, "TRIGGER_ERROR action table:"
585 device_printf(sc->sc_dev, "TRIGGER_ERROR action table:"
602 * trigger error action instructions -- but skip if they're not
603 * for the TRIGGER_ERROR action, and stop if they're truncated.
612 * Verify the action is TRIGGER_ERROR. If not, skip.
614 if (header->Action != ACPI_EINJ_TRIGGER_ERROR) {
615 device_printf(sc->sc_dev, "TRIGGER_ERROR action table:"
616 " other action: %"PRIu32" (%s)\n",
617 header->Action,
618 (header->Action < __arraycount(apei_einj_action)
619 ? apei_einj_action[header->Action]
628 device_printf(sc->sc_dev, "TRIGGER_ERROR action table:"
642 " action table: failed to map register\n");
649 * action, we don't bother with the apei_interp
651 * action. EINJ instructions don't change ip.
675 * Handle sysctl queries under hw.acpi.apei.einj.action.*.
682 enum AcpiEinjActions action;
715 * Identify the requested action. If we don't recognize it,
729 action = node.sysctl_num;
738 * to the injection action.
745 * Perform the EINJ action by following the table's
748 v = apei_einj_act(sc, action, v);
809 * to the trigger action.
816 * Perform the TRIGGER_ERROR action.
873 * Perform the GET_ERROR_TYPE action and return the value to