Lines Matching defs:con
118 const struct consw *con;
3510 if (con_driver->con == NULL) {
3511 con_driver->con = conswitchp;
3656 if (con_driver->con == csw) {
3758 if (con_driver->con == csw &&
3774 if (con_back->con && con_back->con != csw) {
3775 defcsw = con_back->con;
3821 static int vt_bind(struct con_driver *con)
3826 if (!con->con || !(con->flag & CON_DRIVER_FLAG_MODULE))
3829 csw = con->con;
3832 struct con_driver *con = ®istered_con_driver[i];
3834 if (con->con && !(con->flag & CON_DRIVER_FLAG_MODULE)) {
3835 defcsw = con->con;
3846 for (i = con->first; i <= con->last; i++) {
3871 static int vt_unbind(struct con_driver *con)
3877 if (!con->con || !(con->flag & CON_DRIVER_FLAG_MODULE))
3880 csw = con->con;
3885 for (i = con->first; i <= con->last; i++) {
3913 static inline int vt_bind(struct con_driver *con)
3917 static inline int vt_unbind(struct con_driver *con)
3926 struct con_driver *con = dev_get_drvdata(dev);
3932 vt_bind(con);
3934 vt_unbind(con);
3944 struct con_driver *con = dev_get_drvdata(dev);
3948 bind = con_is_bound(con->con);
3957 struct con_driver *con = dev_get_drvdata(dev);
3960 (con->flag & CON_DRIVER_FLAG_MODULE) ? "(M)" : "(S)",
3961 con->desc);
3976 static int vtconsole_init_device(struct con_driver *con)
3978 con->flag |= CON_DRIVER_FLAG_ATTR;
3982 static void vtconsole_deinit_device(struct con_driver *con)
3984 con->flag &= ~CON_DRIVER_FLAG_ATTR;
4129 if (con_driver->con == csw) {
4146 if (con_driver->con == NULL &&
4148 con_driver->con = csw;
4207 if (con_driver->con == csw) {
4213 * order. Reset con already here to prevent any later
4218 con_driver->con = NULL;
4249 if (WARN_ON_ONCE(con_driver->con))
4250 con_driver->con = NULL;
4314 struct con_driver *con = ®istered_con_driver[i];
4316 if (con->con && !con->dev) {
4317 con->dev =
4319 MKDEV(0, con->node),
4320 con, con_dev_groups,
4321 "vtcon%i", con->node);
4323 if (IS_ERR(con->dev)) {
4325 con->desc, PTR_ERR(con->dev));
4326 con->dev = NULL;
4328 vtconsole_init_device(con);