Lines Matching refs:state
15 #define klp_for_each_state(patch, state) \ argument
16 for (state = patch->states; state && state->id; state++)
33 struct klp_state *state; in klp_get_state() local
35 klp_for_each_state(patch, state) { in klp_get_state()
36 if (state->id == id) in klp_get_state()
37 return state; in klp_get_state()
67 struct klp_state *state, *last_state = NULL; in klp_get_prev_state() local
76 state = klp_get_state(patch, id); in klp_get_prev_state()
77 if (state) in klp_get_prev_state()
78 last_state = state; in klp_get_prev_state()
90 struct klp_state *state; in klp_is_state_compatible() local
92 state = klp_get_state(patch, old_state->id); in klp_is_state_compatible()
95 if (!state) in klp_is_state_compatible()
98 return state->version >= old_state->version; in klp_is_state_compatible()