Lines Matching refs:patch
15 #define klp_for_each_state(patch, state) \ argument
16 for (state = patch->states; state && state->id; state++)
31 struct klp_state *klp_get_state(struct klp_patch *patch, unsigned long id) in klp_get_state() argument
35 klp_for_each_state(patch, state) { in klp_get_state()
66 struct klp_patch *patch; in klp_get_prev_state() local
72 klp_for_each_patch(patch) { in klp_get_prev_state()
73 if (patch == klp_transition_patch) in klp_get_prev_state()
76 state = klp_get_state(patch, id); in klp_get_prev_state()
87 static bool klp_is_state_compatible(struct klp_patch *patch, in klp_is_state_compatible() argument
92 state = klp_get_state(patch, old_state->id); in klp_is_state_compatible()
96 return !patch->replace; in klp_is_state_compatible()
106 bool klp_is_patch_compatible(struct klp_patch *patch) in klp_is_patch_compatible() argument
113 if (!klp_is_state_compatible(patch, old_state)) in klp_is_patch_compatible()