Lines Matching refs:sem_nsems
122 int sem_nsems; /* no. of semaphores in array */ member
316 for (i = 0; i < sma->sem_nsems; i++) { in merge_queues()
352 for (i = 0; i < sma->sem_nsems; i++) { in complexmode_enter()
411 idx = array_index_nospec(sops->sem_num, sma->sem_nsems); in sem_lock()
570 sma->sem_nsems = nsems; in newary()
596 if (params->u.nsems > sma->sem_nsems) in sem_more_checks()
660 int idx = array_index_nospec(sop->sem_num, sma->sem_nsems); in perform_atomic_semop_slow()
741 int idx = array_index_nospec(sop->sem_num, sma->sem_nsems); in perform_atomic_semop()
915 for (i = 0; i < sma->sem_nsems; i++) { in do_smart_wakeup_zero()
1045 for (i = 0; i < sma->sem_nsems; i++) in do_smart_update()
1172 for (i = 0; i < sma->sem_nsems; i++) { in freeary()
1191 ns->used_sems -= sma->sem_nsems; in freeary()
1210 out.sem_nsems = in->sem_nsems; in copy_semid_to_user()
1225 for (i = 1; i < sma->sem_nsems; i++) { in get_semotime()
1287 semid64->sem_nsems = sma->sem_nsems; in semctl_stat()
1362 if (semnum < 0 || semnum >= sma->sem_nsems) { in semctl_setval()
1387 semnum = array_index_nospec(semnum, sma->sem_nsems); in semctl_setval()
1422 nsems = sma->sem_nsems; in semctl_main()
1464 for (i = 0; i < sma->sem_nsems; i++) in semctl_main()
1734 unsigned short sem_nsems; member
1761 v.sem_nsems = in->sem_nsems; in copy_compat_semid_to_user()
1769 v.sem_nsems = in->sem_nsems; in copy_compat_semid_to_user()
1932 nsems = sma->sem_nsems; in find_alloc_undo()
2055 if (max >= sma->sem_nsems) { in __do_semtimedop()
2129 int idx = array_index_nospec(sops->sem_num, sma->sem_nsems); in __do_semtimedop()
2413 for (i = 0; i < sma->sem_nsems; i++) { in exit_sem()
2472 sma->sem_nsems, in sysvipc_sem_proc_show()