Lines Matching refs:rets
116 int rets; in mei_release() local
130 rets = 0; in mei_release()
134 rets = mei_cl_disconnect(cl); in mei_release()
155 return rets; in mei_release()
176 ssize_t rets; in mei_read() local
186 rets = -ENODEV; in mei_read()
191 rets = 0; in mei_read()
196 rets = -EMSGSIZE; in mei_read()
207 rets = mei_cl_read_start(cl, length, file); in mei_read()
208 if (rets && rets != -EBUSY) { in mei_read()
209 cl_dbg(dev, cl, "mei start read failure status = %zd\n", rets); in mei_read()
214 rets = -EAGAIN; in mei_read()
229 rets = -ENODEV; in mei_read()
235 rets = 0; in mei_read()
242 rets = cb->status; in mei_read()
243 cl_dbg(dev, cl, "read operation failed %zd\n", rets); in mei_read()
250 rets = 0; in mei_read()
260 rets = -EFAULT; in mei_read()
264 rets = length; in mei_read()
275 cl_dbg(dev, cl, "end mei read rets = %zd\n", rets); in mei_read()
277 return rets; in mei_read()
317 ssize_t rets; in mei_write() local
327 rets = -ENODEV; in mei_write()
333 rets = -ENODEV; in mei_write()
338 rets = -ENOTTY; in mei_write()
343 rets = -EFBIG; in mei_write()
348 rets = 0; in mei_write()
354 rets = -EAGAIN; in mei_write()
358 rets = wait_event_interruptible(cl->tx_wait, in mei_write()
362 if (rets) { in mei_write()
364 rets = -EINTR; in mei_write()
368 rets = -ENODEV; in mei_write()
375 rets = -ENOMEM; in mei_write()
380 rets = copy_from_user(cb->buf.data, ubuf, length); in mei_write()
381 if (rets) { in mei_write()
383 rets = -EFAULT; in mei_write()
388 rets = mei_cl_write(cl, cb, MAX_SCHEDULE_TIMEOUT); in mei_write()
391 return rets; in mei_write()
412 int rets; in mei_ioctl_connect_client() local
426 rets = -ENOTTY; in mei_ioctl_connect_client()
436 rets = -ENOTTY; in mei_ioctl_connect_client()
453 rets = mei_cl_connect(cl, me_cl, file); in mei_ioctl_connect_client()
457 return rets; in mei_ioctl_connect_client()
622 int rets; in mei_ioctl_client_notify_get() local
624 rets = mei_cl_notify_get(cl, block, ¬ify_ev); in mei_ioctl_client_notify_get()
625 if (rets) in mei_ioctl_client_notify_get()
626 return rets; in mei_ioctl_client_notify_get()
651 int rets; in mei_ioctl() local
663 rets = -ENODEV; in mei_ioctl()
672 rets = -EFAULT; in mei_ioctl()
679 rets = mei_vt_support_check(dev, cl_uuid); in mei_ioctl()
680 if (rets == -ENOTTY) in mei_ioctl()
682 if (!rets) in mei_ioctl()
683 rets = mei_ioctl_connect_vtag(file, cl_uuid, props, in mei_ioctl()
686 rets = mei_ioctl_connect_client(file, cl_uuid, props); in mei_ioctl()
687 if (rets) in mei_ioctl()
693 rets = -EFAULT; in mei_ioctl()
704 rets = -EFAULT; in mei_ioctl()
712 rets = mei_vt_support_check(dev, cl_uuid); in mei_ioctl()
713 if (rets == -EOPNOTSUPP) in mei_ioctl()
716 if (rets) in mei_ioctl()
721 rets = -EINVAL; in mei_ioctl()
725 rets = mei_ioctl_connect_vtag(file, cl_uuid, props, vtag); in mei_ioctl()
726 if (rets) in mei_ioctl()
733 rets = -EFAULT; in mei_ioctl()
744 rets = -EFAULT; in mei_ioctl()
747 rets = mei_ioctl_client_notify_request(file, notify_req); in mei_ioctl()
752 rets = mei_ioctl_client_notify_get(file, ¬ify_get); in mei_ioctl()
753 if (rets) in mei_ioctl()
760 rets = -EFAULT; in mei_ioctl()
767 rets = -ENOIOCTLCMD; in mei_ioctl()
772 return rets; in mei_ioctl()
867 int rets; in mei_fsync() local
877 rets = -ENODEV; in mei_fsync()
883 rets = wait_event_interruptible(cl->tx_wait, in mei_fsync()
887 if (rets) { in mei_fsync()
889 rets = -EINTR; in mei_fsync()
893 rets = -ENODEV; in mei_fsync()
897 rets = 0; in mei_fsync()
900 return rets; in mei_fsync()