Lines Matching refs:ws_get
116 ev->ws_get = ev->ws_put = 0;
160 while (ev->ws_get == ev->ws_put) {
177 if (ev->ws_put < ev->ws_get)
178 cnt = WSEVENT_QSIZE - ev->ws_get; /* events in [get..QSIZE) */
180 cnt = ev->ws_put - ev->ws_get; /* events in [get..put) */
185 error = uiomove((caddr_t)&ev->ws_q[ev->ws_get],
193 if ((ev->ws_get = (ev->ws_get + cnt) % WSEVENT_QSIZE) != 0 ||
200 ev->ws_get = cnt;
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;