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