Lines Matching defs:state
33 * state if it crashes. This is useful for debugging purposes;
37 * remote processor is in a crashed state, without changing
38 * or checking the recovery state (enabled/disabled).
110 if (rproc->state == RPROC_CRASHED) {
143 * may have been attached to and currently in a running state.
166 if (rproc->state != RPROC_OFFLINE) {
195 * A state-to-string lookup table, for exposing a human readable state
208 /* Expose the state of the remote processor via sysfs */
213 unsigned int state;
215 state = rproc->state > RPROC_LAST ? RPROC_LAST : rproc->state;
216 return sprintf(buf, "%s\n", rproc_state_string[state]);
219 /* Change remote processor state via sysfs */
228 if (rproc->state == RPROC_RUNNING)
235 if (rproc->state != RPROC_RUNNING)
245 static DEVICE_ATTR_RW(state);