Lines Matching defs:csw
3570 static int do_bind_con_driver(const struct consw *csw, int first, int last,
3573 struct module *owner = csw->owner;
3587 if (con_driver->con == csw) {
3598 csw->con_startup();
3607 conswitchp = csw;
3620 con_driver_map[i] = csw;
3673 int do_unbind_con_driver(const struct consw *csw, int first, int last, int deflt)
3675 struct module *owner = csw->owner;
3689 if (con_driver->con == csw &&
3705 if (con_back->con && con_back->con != csw) {
3715 if (!con_is_bound(csw))
3722 if (con_driver_map[i] == csw) {
3723 module_put(csw->owner);
3740 if (!con_is_bound(csw))
3754 const struct consw *defcsw = NULL, *csw = NULL;
3760 csw = con->con;
3791 do_bind_con_driver(csw, first, last, deflt);
3804 const struct consw *csw = NULL;
3811 csw = con->con;
3817 if (con_driver_map[i] == csw) {
3830 ret = do_unbind_con_driver(csw, first, last, deflt);
3920 * @csw: console driver
3927 int con_is_bound(const struct consw *csw)
3934 if (con_driver_map[i] == csw) {
4044 static int do_register_con_driver(const struct consw *csw, int first, int last)
4046 struct module *owner = csw->owner;
4060 if (con_driver->con == csw) {
4066 desc = csw->con_startup();
4079 con_driver->con = csw;
4115 * @csw: console driver
4124 int do_unregister_con_driver(const struct consw *csw)
4129 if (con_is_bound(csw))
4132 if (csw == conswitchp)
4138 if (con_driver->con == csw) {
4201 int do_take_over_console(const struct consw *csw, int first, int last, int deflt)
4205 err = do_register_con_driver(csw, first, last);
4214 do_bind_con_driver(csw, first, last, deflt);
4225 void give_up_console(const struct consw *csw)
4228 do_unregister_con_driver(csw);