Lines Matching refs:sop
249 struct sembuf *sop; in try_atomic_semop() local
252 for (sop = sops; sop < sops + nsops; sop++) { in try_atomic_semop()
253 curr = sma->sem_base + sop->sem_num; in try_atomic_semop()
254 sem_op = sop->sem_op; in try_atomic_semop()
265 if (sop->sem_flg & SEM_UNDO) { in try_atomic_semop()
266 int undo = un->semadj[sop->sem_num] - sem_op; in try_atomic_semop()
280 sop--; in try_atomic_semop()
281 while (sop >= sops) { in try_atomic_semop()
282 sma->sem_base[sop->sem_num].sempid = pid; in try_atomic_semop()
283 if (sop->sem_flg & SEM_UNDO) in try_atomic_semop()
284 un->semadj[sop->sem_num] -= sop->sem_op; in try_atomic_semop()
285 sop--; in try_atomic_semop()
295 if (sop->sem_flg & IPC_NOWAIT) in try_atomic_semop()
301 sop--; in try_atomic_semop()
302 while (sop >= sops) { in try_atomic_semop()
303 sma->sem_base[sop->sem_num].semval -= sop->sem_op; in try_atomic_semop()
304 sop--; in try_atomic_semop()
847 struct sembuf* sops = fast_sops, *sop; in sys_semtimedop() local
887 for (sop = sops; sop < sops + nsops; sop++) { in sys_semtimedop()
888 if (sop->sem_num >= sma->sem_nsems) in sys_semtimedop()
890 if (sop->sem_flg & SEM_UNDO) in sys_semtimedop()
892 if (sop->sem_op < 0) in sys_semtimedop()
894 if (sop->sem_op > 0) in sys_semtimedop()