• Home
  • Raw
  • Download

Lines Matching refs:csw

3639 static int do_bind_con_driver(const struct consw *csw, int first, int last,  in do_bind_con_driver()  argument
3642 struct module *owner = csw->owner; in do_bind_con_driver()
3656 if (con_driver->con == csw) { in do_bind_con_driver()
3667 csw->con_startup(); in do_bind_con_driver()
3676 conswitchp = csw; in do_bind_con_driver()
3689 con_driver_map[i] = csw; in do_bind_con_driver()
3742 int do_unbind_con_driver(const struct consw *csw, int first, int last, int deflt) in do_unbind_con_driver() argument
3744 struct module *owner = csw->owner; in do_unbind_con_driver()
3758 if (con_driver->con == csw && in do_unbind_con_driver()
3774 if (con_back->con && con_back->con != csw) { in do_unbind_con_driver()
3784 if (!con_is_bound(csw)) in do_unbind_con_driver()
3791 if (con_driver_map[i] == csw) { in do_unbind_con_driver()
3792 module_put(csw->owner); in do_unbind_con_driver()
3809 if (!con_is_bound(csw)) in do_unbind_con_driver()
3823 const struct consw *defcsw = NULL, *csw = NULL; in vt_bind() local
3829 csw = con->con; in vt_bind()
3860 do_bind_con_driver(csw, first, last, deflt); in vt_bind()
3873 const struct consw *csw = NULL; in vt_unbind() local
3880 csw = con->con; in vt_unbind()
3886 if (con_driver_map[i] == csw) { in vt_unbind()
3899 ret = do_unbind_con_driver(csw, first, last, deflt); in vt_unbind()
3996 int con_is_bound(const struct consw *csw) in con_is_bound() argument
4003 if (con_driver_map[i] == csw) { in con_is_bound()
4113 static int do_register_con_driver(const struct consw *csw, int first, int last) in do_register_con_driver() argument
4115 struct module *owner = csw->owner; in do_register_con_driver()
4129 if (con_driver->con == csw) { in do_register_con_driver()
4135 desc = csw->con_startup(); in do_register_con_driver()
4148 con_driver->con = csw; in do_register_con_driver()
4193 int do_unregister_con_driver(const struct consw *csw) in do_unregister_con_driver() argument
4198 if (con_is_bound(csw)) in do_unregister_con_driver()
4201 if (csw == conswitchp) in do_unregister_con_driver()
4207 if (con_driver->con == csw) { in do_unregister_con_driver()
4270 int do_take_over_console(const struct consw *csw, int first, int last, int deflt) in do_take_over_console() argument
4274 err = do_register_con_driver(csw, first, last); in do_take_over_console()
4283 do_bind_con_driver(csw, first, last, deflt); in do_take_over_console()
4294 void give_up_console(const struct consw *csw) in give_up_console() argument
4297 do_unregister_con_driver(csw); in give_up_console()