Lines Matching refs:vw
122 static void vt_event_wait(struct vt_event_wait *vw) in vt_event_wait() argument
126 INIT_LIST_HEAD(&vw->list); in vt_event_wait()
127 vw->done = 0; in vt_event_wait()
130 list_add(&vw->list, &vt_events); in vt_event_wait()
133 wait_event_interruptible(vt_event_waitqueue, vw->done); in vt_event_wait()
136 list_del(&vw->list); in vt_event_wait()
149 struct vt_event_wait vw; in vt_event_wait_ioctl() local
151 if (copy_from_user(&vw.event, event, sizeof(struct vt_event))) in vt_event_wait_ioctl()
154 if (vw.event.event & ~VT_MAX_EVENT) in vt_event_wait_ioctl()
157 vt_event_wait(&vw); in vt_event_wait_ioctl()
159 if (vw.done) { in vt_event_wait_ioctl()
160 if (copy_to_user(event, &vw.event, sizeof(struct vt_event))) in vt_event_wait_ioctl()
178 struct vt_event_wait vw; in vt_waitactive() local
182 vw.event.event = VT_EVENT_SWITCH; in vt_waitactive()
183 vt_event_wait(&vw); in vt_waitactive()
184 if (vw.done == 0) in vt_waitactive()
186 } while (vw.event.newev != n); in vt_waitactive()