Lines Matching refs:loglevel_state
36 struct klp_state *loglevel_state, *prev_loglevel_state; in allocate_loglevel_state() local
45 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in allocate_loglevel_state()
46 if (!loglevel_state) in allocate_loglevel_state()
49 loglevel_state->data = kzalloc(sizeof(console_loglevel), GFP_KERNEL); in allocate_loglevel_state()
50 if (!loglevel_state->data) in allocate_loglevel_state()
60 struct klp_state *loglevel_state, *prev_loglevel_state; in fix_console_loglevel() local
62 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in fix_console_loglevel()
63 if (!loglevel_state) in fix_console_loglevel()
70 loglevel_state->data = prev_loglevel_state->data; in fix_console_loglevel()
75 *(int *)loglevel_state->data = console_loglevel; in fix_console_loglevel()
81 struct klp_state *loglevel_state, *prev_loglevel_state; in restore_console_loglevel() local
90 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in restore_console_loglevel()
91 if (!loglevel_state) in restore_console_loglevel()
95 console_loglevel = *(int *)loglevel_state->data; in restore_console_loglevel()
100 struct klp_state *loglevel_state, *prev_loglevel_state; in free_loglevel_state() local
109 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in free_loglevel_state()
110 if (!loglevel_state) in free_loglevel_state()
115 kfree(loglevel_state->data); in free_loglevel_state()