Lines Matching refs:nsops
138 int nsops; /* number of operations */ member
390 int nsops) in sem_lock() argument
395 if (nsops != 1) { in sem_lock()
648 int result, sem_op, nsops; in perform_atomic_semop_slow() local
656 nsops = q->nsops; in perform_atomic_semop_slow()
659 for (sop = sops; sop < sops + nsops; sop++) { in perform_atomic_semop_slow()
721 int result, sem_op, nsops; in perform_atomic_semop() local
728 nsops = q->nsops; in perform_atomic_semop()
740 for (sop = sops; sop < sops + nsops; sop++) { in perform_atomic_semop()
766 for (sop = sops; sop < sops + nsops; sop++) { in perform_atomic_semop()
802 if (q->nsops > 1) in unlink_queue()
823 if (q->nsops > 1) in check_restart()
894 int nsops, struct wake_q_head *wake_q) in do_smart_wakeup_zero() argument
902 for (i = 0; i < nsops; i++) { in do_smart_wakeup_zero()
986 do_smart_wakeup_zero(sma, q->sops, q->nsops, wake_q); in update_queue()
1029 static void do_smart_update(struct sem_array *sma, struct sembuf *sops, int nsops, in do_smart_update() argument
1034 otime |= do_smart_wakeup_zero(sma, sops, nsops, wake_q); in do_smart_update()
1057 for (i = 0; i < nsops; i++) { in do_smart_update()
1986 unsigned nsops, const struct timespec64 *timeout, in __do_semtimedop() argument
2000 if (nsops < 1 || semid < 0) in __do_semtimedop()
2002 if (nsops > ns->sc_semopm) in __do_semtimedop()
2015 for (sop = sops; sop < sops + nsops; sop++) { in __do_semtimedop()
2068 error = security_sem_semop(&sma->sem_perm, sops, nsops, alter); in __do_semtimedop()
2075 locknum = sem_lock(sma, sops, nsops); in __do_semtimedop()
2097 queue.nsops = nsops; in __do_semtimedop()
2112 do_smart_update(sma, sops, nsops, 1, &wake_q); in __do_semtimedop()
2129 if (nsops == 1) { in __do_semtimedop()
2191 locknum = sem_lock(sma, sops, nsops); in __do_semtimedop()
2225 unsigned nsops, const struct timespec64 *timeout) in do_semtimedop() argument
2233 if (nsops > ns->sc_semopm) in do_semtimedop()
2235 if (nsops < 1) in do_semtimedop()
2238 if (nsops > SEMOPM_FAST) { in do_semtimedop()
2239 sops = kvmalloc_array(nsops, sizeof(*sops), GFP_KERNEL); in do_semtimedop()
2244 if (copy_from_user(sops, tsops, nsops * sizeof(*tsops))) { in do_semtimedop()
2249 ret = __do_semtimedop(semid, sops, nsops, timeout, ns); in do_semtimedop()
2259 unsigned int nsops, const struct __kernel_timespec __user *timeout) in ksys_semtimedop() argument
2265 return do_semtimedop(semid, tsops, nsops, &ts); in ksys_semtimedop()
2267 return do_semtimedop(semid, tsops, nsops, NULL); in ksys_semtimedop()
2271 unsigned int, nsops, const struct __kernel_timespec __user *, timeout) in SYSCALL_DEFINE4() argument
2273 return ksys_semtimedop(semid, tsops, nsops, timeout); in SYSCALL_DEFINE4()
2278 unsigned int nsops, in compat_ksys_semtimedop() argument
2285 return do_semtimedop(semid, tsems, nsops, &ts); in compat_ksys_semtimedop()
2287 return do_semtimedop(semid, tsems, nsops, NULL); in compat_ksys_semtimedop()
2291 unsigned int, nsops, in SYSCALL_DEFINE4() argument
2294 return compat_ksys_semtimedop(semid, tsems, nsops, timeout); in SYSCALL_DEFINE4()
2299 unsigned, nsops) in SYSCALL_DEFINE3() argument
2301 return do_semtimedop(semid, tsops, nsops, NULL); in SYSCALL_DEFINE3()