Lines Matching refs:csw

3758 static int do_bind_con_driver(const struct consw *csw, int first, int last,
3761 struct module *owner = csw->owner;
3775 if (con_driver->con == csw) {
3786 csw->con_startup();
3795 conswitchp = csw;
3808 con_driver_map[i] = csw;
3861 int do_unbind_con_driver(const struct consw *csw, int first, int last, int deflt)
3863 struct module *owner = csw->owner;
3877 if (con_driver->con == csw &&
3893 if (con_back->con && con_back->con != csw) {
3903 if (!con_is_bound(csw))
3910 if (con_driver_map[i] == csw) {
3911 module_put(csw->owner);
3928 if (!con_is_bound(csw))
3942 const struct consw *defcsw = NULL, *csw = NULL;
3948 csw = con->con;
3979 do_bind_con_driver(csw, first, last, deflt);
3992 const struct consw *csw = NULL;
3999 csw = con->con;
4005 if (con_driver_map[i] == csw) {
4018 ret = do_unbind_con_driver(csw, first, last, deflt);
4108 * @csw: console driver
4115 int con_is_bound(const struct consw *csw)
4122 if (con_driver_map[i] == csw) {
4219 static int do_register_con_driver(const struct consw *csw, int first, int last)
4221 struct module *owner = csw->owner;
4235 if (con_driver->con == csw) {
4241 desc = csw->con_startup();
4254 con_driver->con = csw;
4290 * @csw: console driver
4299 int do_unregister_con_driver(const struct consw *csw)
4304 if (con_is_bound(csw))
4307 if (csw == conswitchp)
4313 if (con_driver->con == csw) {
4376 int do_take_over_console(const struct consw *csw, int first, int last, int deflt)
4380 err = do_register_con_driver(csw, first, last);
4389 do_bind_con_driver(csw, first, last, deflt);
4400 void give_up_console(const struct consw *csw)
4403 do_unregister_con_driver(csw);