Lines Matching refs:state
51 #define transit_to(state) ({ prefetch(&STATE(state)->work); STATE(state); }) argument
70 #define TRANSIT_TO(state, emask) \ argument
71 { .events = (emask), .transit_to = STATE(state) }
169 const struct fscache_state *state, *new_state; in fscache_object_sm_dispatcher() local
177 object->debug_id, object->state->name, object->events); in fscache_object_sm_dispatcher()
182 state = object->state; in fscache_object_sm_dispatcher()
193 state = t->transit_to; in fscache_object_sm_dispatcher()
194 ASSERT(state->work != NULL); in fscache_object_sm_dispatcher()
205 if (!state->work) { in fscache_object_sm_dispatcher()
207 for (t = state->transitions; t->events; t++) { in fscache_object_sm_dispatcher()
211 trace_fscache_osm(object, state, in fscache_object_sm_dispatcher()
216 state->name, new_state->name); in fscache_object_sm_dispatcher()
217 object->state = state = new_state; in fscache_object_sm_dispatcher()
230 _debug("{OBJ%x} exec %s", object->debug_id, state->name); in fscache_object_sm_dispatcher()
232 trace_fscache_osm(object, state, false, oob, event); in fscache_object_sm_dispatcher()
233 new_state = state->work(object, event); in fscache_object_sm_dispatcher()
236 _debug("{OBJ%x} %s notrans", object->debug_id, state->name); in fscache_object_sm_dispatcher()
237 if (unlikely(state == STATE(OBJECT_DEAD))) { in fscache_object_sm_dispatcher()
247 object->debug_id, state->name, new_state->name); in fscache_object_sm_dispatcher()
248 object->state = state = new_state; in fscache_object_sm_dispatcher()
250 if (state->work) { in fscache_object_sm_dispatcher()
251 if (unlikely(state == STATE(OBJECT_DEAD))) { in fscache_object_sm_dispatcher()
260 for (t = state->transitions; t->events; t++) in fscache_object_sm_dispatcher()
305 object->state = STATE(WAIT_FOR_INIT); in fscache_object_init()
332 for (t = object->state->transitions; t->events; t++) in fscache_object_init()
384 _debug("parent: %s of:%lx", parent->state->name, parent->flags); in fscache_initialise_object()
509 _enter("{OBJ%x,%s}", object->debug_id, object->state->name); in fscache_object_lookup_negative()
541 _enter("{OBJ%x,%s}", object->debug_id, object->state->name); in fscache_obtained_object()