Lines Matching refs:con
113 const struct consw *con; member
2966 if (con_driver->con == NULL) { in con_init()
2967 con_driver->con = conswitchp; in con_init()
3110 if (con_driver->con == csw) { in do_bind_con_driver()
3228 if (con_driver->con == csw && in do_unbind_con_driver()
3244 if (con_back->con && con_back->con != csw) { in do_unbind_con_driver()
3245 defcsw = con_back->con; in do_unbind_con_driver()
3291 static int vt_bind(struct con_driver *con) in vt_bind() argument
3296 if (!con->con || !(con->flag & CON_DRIVER_FLAG_MODULE) || in vt_bind()
3297 con_is_graphics(con->con, con->first, con->last)) in vt_bind()
3300 csw = con->con; in vt_bind()
3303 struct con_driver *con = ®istered_con_driver[i]; in vt_bind() local
3305 if (con->con && !(con->flag & CON_DRIVER_FLAG_MODULE)) { in vt_bind()
3306 defcsw = con->con; in vt_bind()
3317 for (i = con->first; i <= con->last; i++) { in vt_bind()
3342 static int vt_unbind(struct con_driver *con) in vt_unbind() argument
3348 if (!con->con || !(con->flag & CON_DRIVER_FLAG_MODULE) || in vt_unbind()
3349 con_is_graphics(con->con, con->first, con->last)) in vt_unbind()
3352 csw = con->con; in vt_unbind()
3357 for (i = con->first; i <= con->last; i++) { in vt_unbind()
3385 static inline int vt_bind(struct con_driver *con) in vt_bind() argument
3389 static inline int vt_unbind(struct con_driver *con) in vt_unbind() argument
3398 struct con_driver *con = dev_get_drvdata(dev); in store_bind() local
3404 vt_bind(con); in store_bind()
3406 vt_unbind(con); in store_bind()
3416 struct con_driver *con = dev_get_drvdata(dev); in show_bind() local
3417 int bind = con_is_bound(con->con); in show_bind()
3425 struct con_driver *con = dev_get_drvdata(dev); in show_name() local
3428 (con->flag & CON_DRIVER_FLAG_MODULE) ? "(M)" : "(S)", in show_name()
3429 con->desc); in show_name()
3444 static int vtconsole_init_device(struct con_driver *con) in vtconsole_init_device() argument
3446 con->flag |= CON_DRIVER_FLAG_ATTR; in vtconsole_init_device()
3450 static void vtconsole_deinit_device(struct con_driver *con) in vtconsole_deinit_device() argument
3452 con->flag &= ~CON_DRIVER_FLAG_ATTR; in vtconsole_deinit_device()
3582 if (con_driver->con == csw) in do_register_con_driver()
3599 if (con_driver->con == NULL) { in do_register_con_driver()
3600 con_driver->con = csw; in do_register_con_driver()
3660 if (con_driver->con == csw) { in do_unregister_con_driver()
3664 con_driver->con = NULL; in do_unregister_con_driver()
3730 struct con_driver *con = ®istered_con_driver[i]; in vtconsole_class_init() local
3732 if (con->con && !con->dev) { in vtconsole_class_init()
3733 con->dev = in vtconsole_class_init()
3735 MKDEV(0, con->node), in vtconsole_class_init()
3736 con, con_dev_groups, in vtconsole_class_init()
3737 "vtcon%i", con->node); in vtconsole_class_init()
3739 if (IS_ERR(con->dev)) { in vtconsole_class_init()
3742 con->desc, PTR_ERR(con->dev)); in vtconsole_class_init()
3743 con->dev = NULL; in vtconsole_class_init()
3745 vtconsole_init_device(con); in vtconsole_class_init()
4164 int con = op->height; in con_font_copy() local
4173 else if (con < 0 || !vc_cons_allocated(con)) in con_font_copy()
4175 else if (con == vc->vc_num) /* nothing to do */ in con_font_copy()
4178 rc = vc->vc_sw->con_font_copy(vc, con); in con_font_copy()