Lines Matching refs:vw

117 static void __vt_event_queue(struct vt_event_wait *vw)  in __vt_event_queue()  argument
121 INIT_LIST_HEAD(&vw->list); in __vt_event_queue()
122 vw->done = 0; in __vt_event_queue()
125 list_add(&vw->list, &vt_events); in __vt_event_queue()
129 static void __vt_event_wait(struct vt_event_wait *vw) in __vt_event_wait() argument
132 wait_event_interruptible(vt_event_waitqueue, vw->done); in __vt_event_wait()
135 static void __vt_event_dequeue(struct vt_event_wait *vw) in __vt_event_dequeue() argument
141 list_del(&vw->list); in __vt_event_dequeue()
154 static void vt_event_wait(struct vt_event_wait *vw) in vt_event_wait() argument
156 __vt_event_queue(vw); in vt_event_wait()
157 __vt_event_wait(vw); in vt_event_wait()
158 __vt_event_dequeue(vw); in vt_event_wait()
170 struct vt_event_wait vw; in vt_event_wait_ioctl() local
172 if (copy_from_user(&vw.event, event, sizeof(struct vt_event))) in vt_event_wait_ioctl()
175 if (vw.event.event & ~VT_MAX_EVENT) in vt_event_wait_ioctl()
178 vt_event_wait(&vw); in vt_event_wait_ioctl()
180 if (vw.done) { in vt_event_wait_ioctl()
181 if (copy_to_user(event, &vw.event, sizeof(struct vt_event))) in vt_event_wait_ioctl()
199 struct vt_event_wait vw; in vt_waitactive() local
201 vw.event.event = VT_EVENT_SWITCH; in vt_waitactive()
202 __vt_event_queue(&vw); in vt_waitactive()
204 __vt_event_dequeue(&vw); in vt_waitactive()
207 __vt_event_wait(&vw); in vt_waitactive()
208 __vt_event_dequeue(&vw); in vt_waitactive()
209 if (vw.done == 0) in vt_waitactive()
211 } while (vw.event.newev != n); in vt_waitactive()