Lines Matching refs:semval
96 int semval; /* current value */ member
642 result = curr->semval; in perform_atomic_semop_slow()
661 curr->semval = result; in perform_atomic_semop_slow()
689 sma->sems[sop->sem_num].semval -= sem_op; in perform_atomic_semop_slow()
724 result = curr->semval; in perform_atomic_semop()
748 result = curr->semval; in perform_atomic_semop()
755 curr->semval += sem_op; in perform_atomic_semop()
886 if (sma->sems[num].semval == 0) { in do_smart_wakeup_zero()
897 if (sma->sems[i].semval == 0) { in do_smart_wakeup_zero()
952 if (semnum != -1 && sma->sems[semnum].semval == 0) in update_queue()
1375 curr->semval = val; in semctl_setval()
1447 sem_io[i] = sma->sems[i].semval; in semctl_main()
1496 sma->sems[i].semval = sem_io[i]; in semctl_main()
1528 err = curr->semval; in semctl_main()
2381 semaphore->semval += un->semadj[i]; in exit_sem()
2395 if (semaphore->semval < 0) in exit_sem()
2396 semaphore->semval = 0; in exit_sem()
2397 if (semaphore->semval > SEMVMX) in exit_sem()
2398 semaphore->semval = SEMVMX; in exit_sem()