Lines Matching refs:loglevel_state
36 struct klp_state *loglevel_state; in allocate_loglevel_state() local
38 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in allocate_loglevel_state()
39 if (!loglevel_state) in allocate_loglevel_state()
42 loglevel_state->data = kzalloc(sizeof(console_loglevel), GFP_KERNEL); in allocate_loglevel_state()
43 if (!loglevel_state->data) in allocate_loglevel_state()
53 struct klp_state *loglevel_state; in fix_console_loglevel() local
55 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in fix_console_loglevel()
56 if (!loglevel_state) in fix_console_loglevel()
60 *(int *)loglevel_state->data = console_loglevel; in fix_console_loglevel()
66 struct klp_state *loglevel_state; in restore_console_loglevel() local
68 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in restore_console_loglevel()
69 if (!loglevel_state) in restore_console_loglevel()
73 console_loglevel = *(int *)loglevel_state->data; in restore_console_loglevel()
78 struct klp_state *loglevel_state; in free_loglevel_state() local
80 loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE); in free_loglevel_state()
81 if (!loglevel_state) in free_loglevel_state()
86 kfree(loglevel_state->data); in free_loglevel_state()