Lines Matching refs:con
114 const struct consw *con; member
2980 if (con_driver->con == NULL) { in con_init()
2981 con_driver->con = conswitchp; in con_init()
3124 if (con_driver->con == csw) { in do_bind_con_driver()
3226 if (con_driver->con == csw && in do_unbind_con_driver()
3242 if (con_back->con && con_back->con != csw) { in do_unbind_con_driver()
3243 defcsw = con_back->con; in do_unbind_con_driver()
3289 static int vt_bind(struct con_driver *con) in vt_bind() argument
3294 if (!con->con || !(con->flag & CON_DRIVER_FLAG_MODULE)) in vt_bind()
3297 csw = con->con; in vt_bind()
3300 struct con_driver *con = ®istered_con_driver[i]; in vt_bind() local
3302 if (con->con && !(con->flag & CON_DRIVER_FLAG_MODULE)) { in vt_bind()
3303 defcsw = con->con; in vt_bind()
3314 for (i = con->first; i <= con->last; i++) { in vt_bind()
3339 static int vt_unbind(struct con_driver *con) in vt_unbind() argument
3345 if (!con->con || !(con->flag & CON_DRIVER_FLAG_MODULE)) in vt_unbind()
3348 csw = con->con; in vt_unbind()
3353 for (i = con->first; i <= con->last; i++) { in vt_unbind()
3381 static inline int vt_bind(struct con_driver *con) in vt_bind() argument
3385 static inline int vt_unbind(struct con_driver *con) in vt_unbind() argument
3394 struct con_driver *con = dev_get_drvdata(dev); in store_bind() local
3400 vt_bind(con); in store_bind()
3402 vt_unbind(con); in store_bind()
3412 struct con_driver *con = dev_get_drvdata(dev); in show_bind() local
3413 int bind = con_is_bound(con->con); in show_bind()
3421 struct con_driver *con = dev_get_drvdata(dev); in show_name() local
3424 (con->flag & CON_DRIVER_FLAG_MODULE) ? "(M)" : "(S)", in show_name()
3425 con->desc); in show_name()
3440 static int vtconsole_init_device(struct con_driver *con) in vtconsole_init_device() argument
3442 con->flag |= CON_DRIVER_FLAG_ATTR; in vtconsole_init_device()
3446 static void vtconsole_deinit_device(struct con_driver *con) in vtconsole_deinit_device() argument
3448 con->flag &= ~CON_DRIVER_FLAG_ATTR; in vtconsole_deinit_device()
3578 if (con_driver->con == csw) in do_register_con_driver()
3596 if (con_driver->con == NULL && in do_register_con_driver()
3598 con_driver->con = csw; in do_register_con_driver()
3658 if (con_driver->con == csw) { in do_unregister_con_driver()
3669 con_driver->con = NULL; in do_unregister_con_driver()
3700 if (WARN_ON_ONCE(con_driver->con)) in con_driver_unregister_callback()
3701 con_driver->con = NULL; in con_driver_unregister_callback()
3765 struct con_driver *con = ®istered_con_driver[i]; in vtconsole_class_init() local
3767 if (con->con && !con->dev) { in vtconsole_class_init()
3768 con->dev = in vtconsole_class_init()
3770 MKDEV(0, con->node), in vtconsole_class_init()
3771 con, con_dev_groups, in vtconsole_class_init()
3772 "vtcon%i", con->node); in vtconsole_class_init()
3774 if (IS_ERR(con->dev)) { in vtconsole_class_init()
3777 con->desc, PTR_ERR(con->dev)); in vtconsole_class_init()
3778 con->dev = NULL; in vtconsole_class_init()
3780 vtconsole_init_device(con); in vtconsole_class_init()
4199 int con = op->height; in con_font_copy() local
4208 else if (con < 0 || !vc_cons_allocated(con)) in con_font_copy()
4210 else if (con == vc->vc_num) /* nothing to do */ in con_font_copy()
4213 rc = vc->vc_sw->con_font_copy(vc, con); in con_font_copy()