Lines Matching refs:ret
237 int ret = -ENOMEM; in mqueue_get_inode() local
291 ret = -EINVAL; in mqueue_get_inode()
303 ret = -EOVERFLOW; in mqueue_get_inode()
319 ret = -EMFILE; in mqueue_get_inode()
339 return ERR_PTR(ret); in mqueue_get_inode()
566 ssize_t ret; in mqueue_read_file() local
580 ret = simple_read_from_buffer(u_data, count, off, buffer, in mqueue_read_file()
582 if (ret <= 0) in mqueue_read_file()
583 return ret; in mqueue_read_file()
586 return ret; in mqueue_read_file()
975 int ret = 0; in do_mq_timedsend() local
990 ret = -EBADF; in do_mq_timedsend()
996 ret = -EBADF; in do_mq_timedsend()
1003 ret = -EBADF; in do_mq_timedsend()
1008 ret = -EMSGSIZE; in do_mq_timedsend()
1016 ret = PTR_ERR(msg_ptr); in do_mq_timedsend()
1043 ret = -EAGAIN; in do_mq_timedsend()
1048 ret = wq_sleep(info, SEND, timeout, &wait); in do_mq_timedsend()
1061 ret = msg_insert(msg_ptr, info); in do_mq_timedsend()
1062 if (ret) in do_mq_timedsend()
1073 if (ret) in do_mq_timedsend()
1078 return ret; in do_mq_timedsend()
1085 ssize_t ret; in do_mq_timedreceive() local
1103 ret = -EBADF; in do_mq_timedreceive()
1109 ret = -EBADF; in do_mq_timedreceive()
1116 ret = -EBADF; in do_mq_timedreceive()
1122 ret = -EMSGSIZE; in do_mq_timedreceive()
1147 ret = -EAGAIN; in do_mq_timedreceive()
1151 ret = wq_sleep(info, RECV, timeout, &wait); in do_mq_timedreceive()
1166 ret = 0; in do_mq_timedreceive()
1168 if (ret == 0) { in do_mq_timedreceive()
1169 ret = msg_ptr->m_ts; in do_mq_timedreceive()
1173 ret = -EFAULT; in do_mq_timedreceive()
1180 return ret; in do_mq_timedreceive()
1218 int ret; in do_mq_notify() local
1249 ret = -EFAULT; in do_mq_notify()
1259 ret = -EBADF; in do_mq_notify()
1265 ret = PTR_ERR(sock); in do_mq_notify()
1270 ret = netlink_attachskb(sock, nc, &timeo, NULL); in do_mq_notify()
1271 if (ret == 1) { in do_mq_notify()
1275 if (ret) in do_mq_notify()
1276 return ret; in do_mq_notify()
1282 ret = -EBADF; in do_mq_notify()
1288 ret = -EBADF; in do_mq_notify()
1293 ret = 0; in do_mq_notify()
1301 ret = -EBUSY; in do_mq_notify()
1335 return ret; in do_mq_notify()
1398 int ret; in SYSCALL_DEFINE3() local
1410 ret = do_mq_getsetattr(mqdes, new, old); in SYSCALL_DEFINE3()
1411 if (ret || !old) in SYSCALL_DEFINE3()
1412 return ret; in SYSCALL_DEFINE3()
1491 int ret; in COMPAT_SYSCALL_DEFINE3() local
1503 ret = do_mq_getsetattr(mqdes, new, old); in COMPAT_SYSCALL_DEFINE3()
1504 if (ret || !old) in COMPAT_SYSCALL_DEFINE3()
1505 return ret; in COMPAT_SYSCALL_DEFINE3()