Lines Matching defs:con

118 	const struct consw *con;
3446 if (con_driver->con == NULL) {
3447 con_driver->con = conswitchp;
3587 if (con_driver->con == csw) {
3689 if (con_driver->con == csw &&
3705 if (con_back->con && con_back->con != csw) {
3706 defcsw = con_back->con;
3752 static int vt_bind(struct con_driver *con)
3757 if (!con->con || !(con->flag & CON_DRIVER_FLAG_MODULE))
3760 csw = con->con;
3763 struct con_driver *con = &registered_con_driver[i];
3765 if (con->con && !(con->flag & CON_DRIVER_FLAG_MODULE)) {
3766 defcsw = con->con;
3777 for (i = con->first; i <= con->last; i++) {
3802 static int vt_unbind(struct con_driver *con)
3808 if (!con->con || !(con->flag & CON_DRIVER_FLAG_MODULE))
3811 csw = con->con;
3816 for (i = con->first; i <= con->last; i++) {
3844 static inline int vt_bind(struct con_driver *con)
3848 static inline int vt_unbind(struct con_driver *con)
3857 struct con_driver *con = dev_get_drvdata(dev);
3863 vt_bind(con);
3865 vt_unbind(con);
3875 struct con_driver *con = dev_get_drvdata(dev);
3879 bind = con_is_bound(con->con);
3888 struct con_driver *con = dev_get_drvdata(dev);
3891 (con->flag & CON_DRIVER_FLAG_MODULE) ? "(M)" : "(S)",
3892 con->desc);
3907 static int vtconsole_init_device(struct con_driver *con)
3909 con->flag |= CON_DRIVER_FLAG_ATTR;
3913 static void vtconsole_deinit_device(struct con_driver *con)
3915 con->flag &= ~CON_DRIVER_FLAG_ATTR;
4060 if (con_driver->con == csw) {
4077 if (con_driver->con == NULL &&
4079 con_driver->con = csw;
4138 if (con_driver->con == csw) {
4144 * order. Reset con already here to prevent any later
4149 con_driver->con = NULL;
4180 if (WARN_ON_ONCE(con_driver->con))
4181 con_driver->con = NULL;
4246 struct con_driver *con = &registered_con_driver[i];
4248 if (con->con && !con->dev) {
4249 con->dev =
4251 MKDEV(0, con->node),
4252 con, con_dev_groups,
4253 "vtcon%i", con->node);
4255 if (IS_ERR(con->dev)) {
4257 con->desc, PTR_ERR(con->dev));
4258 con->dev = NULL;
4260 vtconsole_init_device(con);