Searched refs:ws_put (Results 1 - 6 of 6) sorted by relevance

/openbsd-current/sys/dev/wscons/
H A Dwsevent.c116 ev->ws_get = ev->ws_put = 0;
160 while (ev->ws_get == ev->ws_put) {
177 if (ev->ws_put < ev->ws_get)
180 cnt = ev->ws_put - ev->ws_get; /* events in [get..put) */
194 n == 0 || error || (cnt = ev->ws_put) == 0)
246 if (ev->ws_get == ev->ws_put)
249 if (ev->ws_get < ev->ws_put)
250 kn->kn_data = ev->ws_put - ev->ws_get;
252 kn->kn_data = (WSEVENT_QSIZE - ev->ws_get) + ev->ws_put;
H A Dwseventvar.h89 volatile u_int ws_put; /* put (write) index (modified by member in struct:wseventvar
H A Dwsmouse.c268 if (++evar->ws_put >= WSEVENT_QSIZE)
269 evar->ws_put = 0;
1105 int n = evq->evar->ws_put;
1144 evq.put = evq.evar->ws_put;
1187 evq.evar->ws_put = evq.put;
H A Dwskbd.c653 if (++evar->ws_put >= WSEVENT_QSIZE)
654 evar->ws_put = 0;
766 put = evar->ws_put;
777 evar->ws_put = put;
H A Dwsmux.c420 put = evar->ws_put;
431 evar->ws_put = put;
H A Dwstpad.c934 evq.put = evq.evar->ws_put;
943 evq.evar->ws_put = evq.put;

Completed in 130 milliseconds