Lines Matching refs:error
787 static inline void wake_up_sem_queue_prepare(struct sem_queue *q, int error, in wake_up_sem_queue_prepare() argument
795 smp_store_release(&q->status, error); in wake_up_sem_queue_prepare()
868 int error = perform_atomic_semop(sma, q); in wake_const_ops() local
870 if (error > 0) in wake_const_ops()
875 wake_up_sem_queue_prepare(q, error, wake_q); in wake_const_ops()
876 if (error == 0) in wake_const_ops()
963 int error, restart; in update_queue() local
975 error = perform_atomic_semop(sma, q); in update_queue()
978 if (error > 0) in update_queue()
983 if (error) { in update_queue()
991 wake_up_sem_queue_prepare(q, error, wake_q); in update_queue()
1913 int nsems, error; in find_alloc_undo() local
1915 error = get_undo_list(&ulp); in find_alloc_undo()
1916 if (error) in find_alloc_undo()
1917 return ERR_PTR(error); in find_alloc_undo()
1991 int error = -EINVAL; in __do_semtimedop() local
2008 error = -EINVAL; in __do_semtimedop()
2042 error = PTR_ERR(un); in __do_semtimedop()
2053 error = PTR_ERR(sma); in __do_semtimedop()
2057 error = -EFBIG; in __do_semtimedop()
2063 error = -EACCES; in __do_semtimedop()
2069 error = security_sem_semop(&sma->sem_perm, sops, nsops, alter); in __do_semtimedop()
2070 if (error) { in __do_semtimedop()
2075 error = -EIDRM; in __do_semtimedop()
2104 error = perform_atomic_semop(sma, &queue); in __do_semtimedop()
2105 if (error == 0) { /* non-blocking successful path */ in __do_semtimedop()
2123 if (error < 0) /* non-blocking error path */ in __do_semtimedop()
2186 error = READ_ONCE(queue.status); in __do_semtimedop()
2187 if (error != -EINTR) { in __do_semtimedop()
2202 error = READ_ONCE(queue.status); in __do_semtimedop()
2208 if (error != -EINTR) in __do_semtimedop()
2215 error = -EAGAIN; in __do_semtimedop()
2216 } while (error == -EINTR && !signal_pending(current)); /* spurious */ in __do_semtimedop()
2224 return error; in __do_semtimedop()
2314 int error; in copy_semundo() local
2317 error = get_undo_list(&undo_list); in copy_semundo()
2318 if (error) in copy_semundo()
2319 return error; in copy_semundo()