Lines Matching defs:state
18 * @want_state: The minimum state the object must be at
20 * See if the target cache object is at the specified minimum state of
27 enum fscache_cookie_state state;
35 state = fscache_cookie_state(cookie);
36 _enter("c=%08x{%u},%x", cookie->debug_id, state, want_state);
38 switch (state) {
46 wait_var_event(&cookie->state,
47 fscache_cookie_state(cookie) != state);
67 * Begin an I/O operation on the cache, waiting till we reach the right state.
76 enum fscache_cookie_state state;
92 state = fscache_cookie_state(cookie);
93 _enter("c=%08x{%u},%x", cookie->debug_id, state, want_state);
95 switch (state) {
108 WARN(1, "Can't use cookie in state %u\n", cookie->state);
125 timeo = wait_var_event_timeout(&cookie->state,
126 fscache_cookie_state(cookie) != state, 20 * HZ);
128 pr_warn("%s: cookie state change wait timed out: cookie->state=%u state=%u",
129 __func__, fscache_cookie_state(cookie), state);