Lines Matching refs:csw

3630 static int do_bind_con_driver(const struct consw *csw, int first, int last,  in do_bind_con_driver()  argument
3633 struct module *owner = csw->owner; in do_bind_con_driver()
3647 if (con_driver->con == csw) { in do_bind_con_driver()
3658 csw->con_startup(); in do_bind_con_driver()
3667 conswitchp = csw; in do_bind_con_driver()
3680 con_driver_map[i] = csw; in do_bind_con_driver()
3733 int do_unbind_con_driver(const struct consw *csw, int first, int last, int deflt) in do_unbind_con_driver() argument
3735 struct module *owner = csw->owner; in do_unbind_con_driver()
3749 if (con_driver->con == csw && in do_unbind_con_driver()
3765 if (con_back->con && con_back->con != csw) { in do_unbind_con_driver()
3775 if (!con_is_bound(csw)) in do_unbind_con_driver()
3782 if (con_driver_map[i] == csw) { in do_unbind_con_driver()
3783 module_put(csw->owner); in do_unbind_con_driver()
3800 if (!con_is_bound(csw)) in do_unbind_con_driver()
3814 const struct consw *defcsw = NULL, *csw = NULL; in vt_bind() local
3820 csw = con->con; in vt_bind()
3851 do_bind_con_driver(csw, first, last, deflt); in vt_bind()
3864 const struct consw *csw = NULL; in vt_unbind() local
3871 csw = con->con; in vt_unbind()
3877 if (con_driver_map[i] == csw) { in vt_unbind()
3890 ret = do_unbind_con_driver(csw, first, last, deflt); in vt_unbind()
3987 int con_is_bound(const struct consw *csw) in con_is_bound() argument
3994 if (con_driver_map[i] == csw) { in con_is_bound()
4104 static int do_register_con_driver(const struct consw *csw, int first, int last) in do_register_con_driver() argument
4106 struct module *owner = csw->owner; in do_register_con_driver()
4120 if (con_driver->con == csw) { in do_register_con_driver()
4126 desc = csw->con_startup(); in do_register_con_driver()
4139 con_driver->con = csw; in do_register_con_driver()
4184 int do_unregister_con_driver(const struct consw *csw) in do_unregister_con_driver() argument
4189 if (con_is_bound(csw)) in do_unregister_con_driver()
4192 if (csw == conswitchp) in do_unregister_con_driver()
4198 if (con_driver->con == csw) { in do_unregister_con_driver()
4261 int do_take_over_console(const struct consw *csw, int first, int last, int deflt) in do_take_over_console() argument
4265 err = do_register_con_driver(csw, first, last); in do_take_over_console()
4274 do_bind_con_driver(csw, first, last, deflt); in do_take_over_console()
4285 void give_up_console(const struct consw *csw) in give_up_console() argument
4288 do_unregister_con_driver(csw); in give_up_console()