lib/librumpuser/rumpfiber.c
489
int nlocks;
lib/librumpuser/rumpfiber.c
491
rumpkern_unsched(&nlocks, NULL);
lib/librumpuser/rumpfiber.c
502
rumpkern_sched(nlocks, NULL);
lib/librumpuser/rumpfiber.c
706
int nlocks;
lib/librumpuser/rumpfiber.c
709
rumpkern_unsched(&nlocks, NULL);
lib/librumpuser/rumpfiber.c
712
rumpkern_sched(nlocks, NULL);
lib/librumpuser/rumpfiber.c
793
int nlocks;
lib/librumpuser/rumpfiber.c
805
rumpkern_unsched(&nlocks, NULL);
lib/librumpuser/rumpfiber.c
808
rumpkern_sched(nlocks, NULL);
lib/librumpuser/rumpfiber.c
929
cv_unsched(struct rumpuser_mtx *mtx, int *nlocks)
lib/librumpuser/rumpfiber.c
932
rumpkern_unsched(nlocks, mtx);
lib/librumpuser/rumpfiber.c
937
cv_resched(struct rumpuser_mtx *mtx, int nlocks)
lib/librumpuser/rumpfiber.c
943
rumpkern_sched(nlocks, mtx);
lib/librumpuser/rumpfiber.c
947
rumpkern_sched(nlocks, mtx);
lib/librumpuser/rumpfiber.c
954
int nlocks;
lib/librumpuser/rumpfiber.c
957
cv_unsched(mtx, &nlocks);
lib/librumpuser/rumpfiber.c
959
cv_resched(mtx, nlocks);
lib/librumpuser/rumpfiber.c
978
int nlocks;
lib/librumpuser/rumpfiber.c
982
cv_unsched(mtx, &nlocks);
lib/librumpuser/rumpfiber.c
984
cv_resched(mtx, nlocks);
lib/librumpuser/rumpuser.c
118
int nlocks;
lib/librumpuser/rumpuser.c
121
rumpkern_unsched(&nlocks, NULL);
lib/librumpuser/rumpuser.c
169
rumpkern_sched(nlocks, NULL);
lib/librumpuser/rumpuser_bio.c
140
int nlocks;
lib/librumpuser/rumpuser_bio.c
142
rumpkern_unsched(&nlocks, NULL);
lib/librumpuser/rumpuser_bio.c
188
rumpkern_sched(nlocks, NULL);
lib/librumpuser/rumpuser_component.c
50
int nlocks;
lib/librumpuser/rumpuser_component.c
52
rumpkern_unsched(&nlocks, NULL);
lib/librumpuser/rumpuser_component.c
53
return (void *)(intptr_t)nlocks;
lib/librumpuser/rumpuser_component.c
59
int nlocks = (int)(intptr_t)cookie;
lib/librumpuser/rumpuser_component.c
61
rumpkern_sched(nlocks, NULL);
lib/librumpuser/rumpuser_file.c
226
int nlocks;
lib/librumpuser/rumpuser_file.c
228
rumpkern_unsched(&nlocks, NULL);
lib/librumpuser/rumpuser_file.c
231
rumpkern_sched(nlocks, NULL);
lib/librumpuser/rumpuser_file.c
256
int nlocks;
lib/librumpuser/rumpuser_file.c
258
rumpkern_unsched(&nlocks, NULL);
lib/librumpuser/rumpuser_file.c
264
rumpkern_sched(nlocks, NULL);
lib/librumpuser/rumpuser_file.c
293
int nlocks;
lib/librumpuser/rumpuser_file.c
295
rumpkern_unsched(&nlocks, NULL);
lib/librumpuser/rumpuser_file.c
301
rumpkern_sched(nlocks, NULL);
lib/librumpuser/rumpuser_int.h
37
rumpkern_unsched(int *nlocks, void *interlock)
lib/librumpuser/rumpuser_int.h
40
rumpuser__hyp.hyp_backend_unschedule(0, nlocks, interlock);
lib/librumpuser/rumpuser_int.h
44
rumpkern_sched(int nlocks, void *interlock)
lib/librumpuser/rumpuser_int.h
47
rumpuser__hyp.hyp_backend_schedule(nlocks, interlock);
lib/librumpuser/rumpuser_int.h
52
int nlocks; \
lib/librumpuser/rumpuser_int.h
53
rumpkern_unsched(&nlocks, NULL); \
lib/librumpuser/rumpuser_int.h
55
rumpkern_sched(nlocks, NULL); \
lib/librumpuser/rumpuser_int.h
72
int nlocks; \
lib/librumpuser/rumpuser_int.h
73
rumpkern_unsched(&nlocks, NULL); \
lib/librumpuser/rumpuser_int.h
75
rumpkern_sched(nlocks, NULL); \
lib/librumpuser/rumpuser_pth.c
519
cv_unschedule(struct rumpuser_mtx *mtx, int *nlocks)
lib/librumpuser/rumpuser_pth.c
522
rumpkern_unsched(nlocks, mtx);
lib/librumpuser/rumpuser_pth.c
527
cv_reschedule(struct rumpuser_mtx *mtx, int nlocks)
lib/librumpuser/rumpuser_pth.c
548
rumpkern_sched(nlocks, mtx);
lib/librumpuser/rumpuser_pth.c
552
rumpkern_sched(nlocks, mtx);
lib/librumpuser/rumpuser_pth.c
559
int nlocks;
lib/librumpuser/rumpuser_pth.c
562
cv_unschedule(mtx, &nlocks);
lib/librumpuser/rumpuser_pth.c
564
cv_reschedule(mtx, nlocks);
lib/librumpuser/rumpuser_pth.c
584
int rv, nlocks;
lib/librumpuser/rumpuser_pth.c
596
cv_unschedule(mtx, &nlocks);
lib/librumpuser/rumpuser_pth.c
606
cv_reschedule(mtx, nlocks);
lib/librumpuser/rumpuser_sp.c
787
int rv, nlocks;
lib/librumpuser/rumpuser_sp.c
789
rumpkern_unsched(&nlocks, NULL);
lib/librumpuser/rumpuser_sp.c
799
rumpkern_sched(nlocks, NULL);
lib/librumpuser/rumpuser_sp.c
827
int nlocks, rv;
lib/librumpuser/rumpuser_sp.c
829
rumpkern_unsched(&nlocks, NULL);
lib/librumpuser/rumpuser_sp.c
831
rumpkern_sched(nlocks, NULL);
lib/librumpuser/rumpuser_sp.c
861
int nlocks, rv;
lib/librumpuser/rumpuser_sp.c
863
rumpkern_unsched(&nlocks, NULL);
lib/librumpuser/rumpuser_sp.c
881
rumpkern_sched(nlocks, NULL);
lib/librumpuser/rumpuser_sp.c
889
int rv, nlocks;
lib/librumpuser/rumpuser_sp.c
891
rumpkern_unsched(&nlocks, NULL);
lib/librumpuser/rumpuser_sp.c
893
rumpkern_sched(nlocks, NULL);
sys/kern/kern_condvar.c
130
int nlocks;
sys/kern/kern_condvar.c
138
nlocks = sleepq_enter(sq, l, mp);
sys/kern/kern_condvar.c
142
return nlocks;
sys/kern/kern_condvar.c
177
int nlocks;
sys/kern/kern_condvar.c
181
nlocks = cv_enter(cv, mtx, l, false);
sys/kern/kern_condvar.c
182
(void)sleepq_block(0, false, &cv_syncobj, nlocks);
sys/kern/kern_condvar.c
198
int error, nlocks;
sys/kern/kern_condvar.c
202
nlocks = cv_enter(cv, mtx, l, true);
sys/kern/kern_condvar.c
203
error = sleepq_block(0, true, &cv_syncobj, nlocks);
sys/kern/kern_condvar.c
221
int error, nlocks;
sys/kern/kern_condvar.c
225
nlocks = cv_enter(cv, mtx, l, false);
sys/kern/kern_condvar.c
226
error = sleepq_block(timo, false, &cv_syncobj, nlocks);
sys/kern/kern_condvar.c
246
int error, nlocks;
sys/kern/kern_condvar.c
250
nlocks = cv_enter(cv, mtx, l, true);
sys/kern/kern_condvar.c
251
error = sleepq_block(timo, true, &cv_syncobj, nlocks);
sys/kern/kern_lock.c
292
_kernel_lock(int nlocks)
sys/kern/kern_lock.c
302
_KERNEL_LOCK_ASSERT(nlocks > 0);
sys/kern/kern_lock.c
308
SDT_PROBE1(sdt, kernel, lock, entry, nlocks);
sys/kern/kern_lock.c
309
ci->ci_biglock_count += nlocks;
sys/kern/kern_lock.c
310
l->l_blcnt += nlocks;
sys/kern/kern_lock.c
321
SDT_PROBE1(sdt, kernel, lock, entry, nlocks);
sys/kern/kern_lock.c
322
ci->ci_biglock_count = nlocks;
sys/kern/kern_lock.c
323
l->l_blcnt = nlocks;
sys/kern/kern_lock.c
376
SDT_PROBE1(sdt, kernel, lock, entry, nlocks);
sys/kern/kern_lock.c
377
ci->ci_biglock_count = nlocks;
sys/kern/kern_lock.c
378
l->l_blcnt = nlocks;
sys/kern/kern_lock.c
415
_kernel_unlock(int nlocks, int *countp)
sys/kern/kern_lock.c
422
_KERNEL_LOCK_ASSERT(nlocks < 2);
sys/kern/kern_lock.c
427
_KERNEL_LOCK_ASSERT(nlocks <= 0);
sys/kern/kern_lock.c
435
if (nlocks == 0)
sys/kern/kern_lock.c
436
nlocks = olocks;
sys/kern/kern_lock.c
437
else if (nlocks == -1) {
sys/kern/kern_lock.c
438
nlocks = 1;
sys/kern/kern_lock.c
444
if (ci->ci_biglock_count == nlocks) {
sys/kern/kern_lock.c
449
l->l_blcnt -= nlocks;
sys/kern/kern_lock.c
454
ci->ci_biglock_count -= nlocks;
sys/kern/kern_lock.c
455
l->l_blcnt -= nlocks;
sys/kern/kern_lock.c
459
SDT_PROBE1(sdt, kernel, lock, exit, nlocks);
sys/kern/kern_sleepq.c
233
int nlocks;
sys/kern/kern_sleepq.c
245
if (__predict_false((nlocks = l->l_blcnt) != 0)) {
sys/kern/kern_sleepq.c
248
return nlocks;
sys/kern/kern_sleepq.c
345
sleepq_block(int timo, bool catch_p, syncobj_t *syncobj, int nlocks)
sys/kern/kern_sleepq.c
446
if (__predict_false(nlocks != 0)) {
sys/kern/kern_sleepq.c
447
KERNEL_LOCK(nlocks, NULL);
sys/kern/kern_synch.c
191
int nlocks;
sys/kern/kern_synch.c
204
nlocks = sleepq_enter(sq, l, mp);
sys/kern/kern_synch.c
206
return sleepq_block(timo, catch_p, &sleep_syncobj, nlocks);
sys/kern/kern_synch.c
217
int error, nlocks;
sys/kern/kern_synch.c
229
nlocks = sleepq_enter(sq, l, mp);
sys/kern/kern_synch.c
232
error = sleepq_block(timo, catch_p, &sleep_syncobj, nlocks);
sys/kern/kern_synch.c
247
int error, nlocks;
sys/kern/kern_synch.c
257
nlocks = sleepq_enter(NULL, l, NULL);
sys/kern/kern_synch.c
259
error = sleepq_block(timo, intr, &kpause_syncobj, nlocks);
sys/kern/kern_synch.c
292
int nlocks;
sys/kern/kern_synch.c
294
KERNEL_UNLOCK_ALL(l, &nlocks);
sys/kern/kern_synch.c
302
KERNEL_LOCK(nlocks, l);
sys/kern/kern_synch.c
317
int nlocks;
sys/kern/kern_synch.c
319
KERNEL_UNLOCK_ALL(l, &nlocks);
sys/kern/kern_synch.c
328
KERNEL_LOCK(nlocks, l);
sys/kern/kern_timeout.c
589
int nlocks;
sys/kern/kern_timeout.c
623
nlocks = sleepq_enter(&cc->cc_sleepq, l, cc->cc_lock);
sys/kern/kern_timeout.c
626
sleepq_block(0, false, &callout_syncobj, nlocks);
sys/kern/kern_turnstile.c
378
int nlocks;
sys/kern/kern_turnstile.c
421
nlocks = sleepq_enter(sq, l, lock);
sys/kern/kern_turnstile.c
433
sleepq_block(0, false, sobj, nlocks);
sys/rump/librump/rumpkern/klock.c
108
nlocks--;
sys/rump/librump/rumpkern/klock.c
114
_kernel_unlock(int nlocks, int *countp)
sys/rump/librump/rumpkern/klock.c
118
KASSERT(nlocks == 0);
sys/rump/librump/rumpkern/klock.c
126
if (nlocks == 0)
sys/rump/librump/rumpkern/klock.c
127
nlocks = giantcnt;
sys/rump/librump/rumpkern/klock.c
128
if (nlocks == -1) {
sys/rump/librump/rumpkern/klock.c
130
nlocks = 1;
sys/rump/librump/rumpkern/klock.c
132
KASSERT(nlocks <= giantcnt);
sys/rump/librump/rumpkern/klock.c
133
while (nlocks--) {
sys/rump/librump/rumpkern/klock.c
151
rump_user_unschedule(int nlocks, int *countp, void *interlock)
sys/rump/librump/rumpkern/klock.c
154
_kernel_unlock(nlocks, countp);
sys/rump/librump/rumpkern/klock.c
163
rump_user_schedule(int nlocks, void *interlock)
sys/rump/librump/rumpkern/klock.c
168
if (nlocks)
sys/rump/librump/rumpkern/klock.c
169
_kernel_lock(nlocks);
sys/rump/librump/rumpkern/klock.c
67
rump_kernel_bigwrap(int *nlocks)
sys/rump/librump/rumpkern/klock.c
74
*nlocks = giantcnt;
sys/rump/librump/rumpkern/klock.c
79
rump_kernel_bigunwrap(int nlocks)
sys/rump/librump/rumpkern/klock.c
84
giantcnt = nlocks;
sys/rump/librump/rumpkern/klock.c
88
_kernel_lock(int nlocks)
sys/rump/librump/rumpkern/klock.c
92
while (nlocks) {
sys/rump/librump/rumpkern/klock.c
94
giantcnt += nlocks;
sys/rump/librump/rumpkern/klock.c
95
nlocks = 0;
sys/rump/librump/rumpkern/ltsleep.c
123
int rv, nlocks;
sys/rump/librump/rumpkern/ltsleep.c
132
rump_kernel_bigwrap(&nlocks);
sys/rump/librump/rumpkern/ltsleep.c
135
rump_kernel_bigunwrap(nlocks);
sys/rump/librump/rumpkern/lwproc.c
451
int nlocks;
sys/rump/librump/rumpkern/lwproc.c
470
KERNEL_UNLOCK_ALL(NULL, &nlocks);
sys/rump/librump/rumpkern/lwproc.c
479
KERNEL_LOCK(nlocks, NULL);
sys/rump/librump/rumpkern/scheduler.c
514
int nlocks;
sys/rump/librump/rumpkern/scheduler.c
516
KERNEL_UNLOCK_ALL(l, &nlocks);
sys/rump/librump/rumpkern/scheduler.c
519
KERNEL_LOCK(nlocks, l);
sys/rump/librump/rumpkern/sleepq.c
106
if (nlocks)
sys/rump/librump/rumpkern/sleepq.c
107
KERNEL_LOCK(nlocks, curlwp);
sys/rump/librump/rumpkern/sleepq.c
62
int nlocks;
sys/rump/librump/rumpkern/sleepq.c
68
if ((nlocks = l->l_blcnt) != 0) {
sys/rump/librump/rumpkern/sleepq.c
71
return nlocks;
sys/rump/librump/rumpkern/sleepq.c
87
sleepq_block(int timo, bool catch, syncobj_t *syncobj __unused, int nlocks)
sys/uvm/pmap/pmap.c
2454
const size_t nlocks = PAGE_SIZE / cache_line_size;
sys/uvm/pmap/pmap.c
2455
KASSERT((nlocks & (nlocks - 1)) == 0);
sys/uvm/pmap/pmap.c
2459
for (size_t i = 0; i < nlocks; lock_va += cache_line_size, i++) {
sys/uvm/pmap/pmap.c
2464
pli->pli_lock_mask = nlocks - 1;
tests/fs/vfs/t_vnops.c
955
unsigned int nlocks;
tests/fs/vfs/t_vnops.c
960
nlocks = fcntl_getlocks(fd[i], 0, sz,
tests/fs/vfs/t_vnops.c
964
ATF_REQUIRE(nlocks < __arraycount(result));
tests/fs/vfs/t_vnops.c
965
result[nlocks] = lock[i];
tests/fs/vfs/t_vnops.c
966
result[nlocks].l_pid = pid[i];
tests/fs/vfs/t_vnops.c
967
nlocks++;
tests/fs/vfs/t_vnops.c
970
ATF_CHECK_EQ(nlocks, __arraycount(expect));
tests/fs/vfs/t_vnops.c
972
qsort(result, nlocks, sizeof(result[0]), &flock_compare);
tests/fs/vfs/t_vnops.c
974
for (j = 0; j < nlocks; j++) {
tests/kernel/t_lockf.c
84
for (i = 0; i < nlocks; i++) {