Lines Matching refs:csw

3768 static int do_bind_con_driver(const struct consw *csw, int first, int last,  in do_bind_con_driver()  argument
3771 struct module *owner = csw->owner; in do_bind_con_driver()
3785 if (con_driver->con == csw) { in do_bind_con_driver()
3796 csw->con_startup(); in do_bind_con_driver()
3805 conswitchp = csw; in do_bind_con_driver()
3818 con_driver_map[i] = csw; in do_bind_con_driver()
3871 int do_unbind_con_driver(const struct consw *csw, int first, int last, int deflt) in do_unbind_con_driver() argument
3873 struct module *owner = csw->owner; in do_unbind_con_driver()
3887 if (con_driver->con == csw && in do_unbind_con_driver()
3903 if (con_back->con && con_back->con != csw) { in do_unbind_con_driver()
3913 if (!con_is_bound(csw)) in do_unbind_con_driver()
3920 if (con_driver_map[i] == csw) { in do_unbind_con_driver()
3921 module_put(csw->owner); in do_unbind_con_driver()
3938 if (!con_is_bound(csw)) in do_unbind_con_driver()
3952 const struct consw *defcsw = NULL, *csw = NULL; in vt_bind() local
3958 csw = con->con; in vt_bind()
3989 do_bind_con_driver(csw, first, last, deflt); in vt_bind()
4002 const struct consw *csw = NULL; in vt_unbind() local
4009 csw = con->con; in vt_unbind()
4015 if (con_driver_map[i] == csw) { in vt_unbind()
4028 ret = do_unbind_con_driver(csw, first, last, deflt); in vt_unbind()
4125 int con_is_bound(const struct consw *csw) in con_is_bound() argument
4132 if (con_driver_map[i] == csw) { in con_is_bound()
4229 static int do_register_con_driver(const struct consw *csw, int first, int last) in do_register_con_driver() argument
4231 struct module *owner = csw->owner; in do_register_con_driver()
4245 if (con_driver->con == csw) { in do_register_con_driver()
4251 desc = csw->con_startup(); in do_register_con_driver()
4264 con_driver->con = csw; in do_register_con_driver()
4309 int do_unregister_con_driver(const struct consw *csw) in do_unregister_con_driver() argument
4314 if (con_is_bound(csw)) in do_unregister_con_driver()
4317 if (csw == conswitchp) in do_unregister_con_driver()
4323 if (con_driver->con == csw) { in do_unregister_con_driver()
4386 int do_take_over_console(const struct consw *csw, int first, int last, int deflt) in do_take_over_console() argument
4390 err = do_register_con_driver(csw, first, last); in do_take_over_console()
4399 do_bind_con_driver(csw, first, last, deflt); in do_take_over_console()
4410 void give_up_console(const struct consw *csw) in give_up_console() argument
4413 do_unregister_con_driver(csw); in give_up_console()