Lines Matching refs:nwa
563 return (ntsync_mutex_can_lock(mutex, state->nwa->owner)); in ntsync_mutex_is_signaled()
575 MPASS(ntsync_mutex_can_lock(mutex, state->nwa->owner)); in ntsync_mutex_consume()
576 if (state->nwa->owner == 0) { in ntsync_mutex_consume()
584 mutex->a.owner = state->nwa->owner; in ntsync_mutex_consume()
599 if (!ntsync_mutex_can_lock(mutex, state->nwa->owner)) in ntsync_mutex_prepare()
601 if (state->nwa->owner == 0) { in ntsync_mutex_prepare()
611 mutex->a1.owner = state->nwa->owner; in ntsync_mutex_prepare()
1192 ntsync_wait_state_get(struct ntsync_wait_args *nwa, u_long cmd, in ntsync_wait_state_get() argument
1201 if (nwa->count > NTSYNC_MAX_WAIT_COUNT) in ntsync_wait_state_get()
1203 if ((nwa->flags & ~NTSYNC_WAIT_REALTIME) != 0) in ntsync_wait_state_get()
1207 state->nwa = nwa; in ntsync_wait_state_get()
1211 error = copyin((void *)(uintptr_t)nwa->objs, &state->fds[0], in ntsync_wait_state_get()
1212 nwa->count * sizeof(state->fds[0])); in ntsync_wait_state_get()
1217 if (nwa->alert != 0) { in ntsync_wait_state_get()
1218 error = fget_cap(td, nwa->alert, &cap_no_rights, NULL, in ntsync_wait_state_get()
1236 for (; i < nwa->count; i++) { in ntsync_wait_state_get()
1251 state->obj_count = nwa->count; in ntsync_wait_state_get()
1252 for (i = 0; i < nwa->count; i++) in ntsync_wait_state_get()
1273 if (nwa->timeout == UINT64_MAX) { in ntsync_wait_state_get()
1276 state->sb = nstosbt(nwa->timeout); in ntsync_wait_state_get()
1277 if ((nwa->flags & NTSYNC_WAIT_REALTIME) != 0) { in ntsync_wait_state_get()
1299 for (i = 0; i < state->nwa->count; i++) in ntsync_wait_state_put()
1311 struct ntsync_wait_args *nwa; in ntsync_ioctl() local
1335 nwa = (struct ntsync_wait_args *)data; in ntsync_ioctl()
1336 error = ntsync_wait_state_get(nwa, cmd, owner, &state, td); in ntsync_ioctl()
1341 nwa->index = state->index; in ntsync_ioctl()
1342 error = ntsync_ioctl_copyout(td, nwa, sizeof(*nwa)); in ntsync_ioctl()
1349 nwa = (struct ntsync_wait_args *)data; in ntsync_ioctl()
1350 error = ntsync_wait_state_get(nwa, cmd, owner, &state, td); in ntsync_ioctl()
1355 nwa->index = state->index; in ntsync_ioctl()
1356 error = ntsync_ioctl_copyout(td, nwa, sizeof(*nwa)); in ntsync_ioctl()