Lines Matching refs:sem_nsems
122 int sem_nsems; /* no. of semaphores in array */ member
291 for (i = 0; i < sma->sem_nsems; i++) { in merge_queues()
327 for (i = 0; i < sma->sem_nsems; i++) { in complexmode_enter()
389 idx = array_index_nospec(sops->sem_num, sma->sem_nsems); in sem_lock()
548 sma->sem_nsems = nsems; in newary()
575 if (params->u.nsems > sma->sem_nsems) in sem_more_checks()
639 int idx = array_index_nospec(sop->sem_num, sma->sem_nsems); in perform_atomic_semop_slow()
720 int idx = array_index_nospec(sop->sem_num, sma->sem_nsems); in perform_atomic_semop()
896 for (i = 0; i < sma->sem_nsems; i++) { in do_smart_wakeup_zero()
1026 for (i = 0; i < sma->sem_nsems; i++) in do_smart_update()
1153 for (i = 0; i < sma->sem_nsems; i++) { in freeary()
1172 ns->used_sems -= sma->sem_nsems; in freeary()
1191 out.sem_nsems = in->sem_nsems; in copy_semid_to_user()
1206 for (i = 1; i < sma->sem_nsems; i++) { in get_semotime()
1268 semid64->sem_nsems = sma->sem_nsems; in semctl_stat()
1343 if (semnum < 0 || semnum >= sma->sem_nsems) { in semctl_setval()
1368 semnum = array_index_nospec(semnum, sma->sem_nsems); in semctl_setval()
1403 nsems = sma->sem_nsems; in semctl_main()
1446 for (i = 0; i < sma->sem_nsems; i++) in semctl_main()
1716 unsigned short sem_nsems; member
1743 v.sem_nsems = in->sem_nsems; in copy_compat_semid_to_user()
1751 v.sem_nsems = in->sem_nsems; in copy_compat_semid_to_user()
1914 nsems = sma->sem_nsems; in find_alloc_undo()
2049 if (max >= sma->sem_nsems) { in do_semtimedop()
2123 int idx = array_index_nospec(sops->sem_num, sma->sem_nsems); in do_semtimedop()
2378 for (i = 0; i < sma->sem_nsems; i++) { in exit_sem()
2436 sma->sem_nsems, in sysvipc_sem_proc_show()