Lines Matching refs:rets

114 	int rets;  in mei_release()  local
128 rets = 0; in mei_release()
132 rets = mei_cl_disconnect(cl); in mei_release()
153 return rets; in mei_release()
174 ssize_t rets; in mei_read() local
184 rets = -ENODEV; in mei_read()
189 rets = 0; in mei_read()
194 rets = -EMSGSIZE; in mei_read()
205 rets = mei_cl_read_start(cl, length, file); in mei_read()
206 if (rets && rets != -EBUSY) { in mei_read()
207 cl_dbg(dev, cl, "mei start read failure status = %zd\n", rets); in mei_read()
212 rets = -EAGAIN; in mei_read()
227 rets = -ENODEV; in mei_read()
233 rets = 0; in mei_read()
240 rets = cb->status; in mei_read()
241 cl_dbg(dev, cl, "read operation failed %zd\n", rets); in mei_read()
248 rets = 0; in mei_read()
258 rets = -EFAULT; in mei_read()
262 rets = length; in mei_read()
273 cl_dbg(dev, cl, "end mei read rets = %zd\n", rets); in mei_read()
275 return rets; in mei_read()
315 ssize_t rets; in mei_write() local
325 rets = -ENODEV; in mei_write()
331 rets = -ENODEV; in mei_write()
336 rets = -ENOTTY; in mei_write()
341 rets = -EFBIG; in mei_write()
346 rets = 0; in mei_write()
352 rets = -EAGAIN; in mei_write()
356 rets = wait_event_interruptible(cl->tx_wait, in mei_write()
360 if (rets) { in mei_write()
362 rets = -EINTR; in mei_write()
366 rets = -ENODEV; in mei_write()
373 rets = -ENOMEM; in mei_write()
378 rets = copy_from_user(cb->buf.data, ubuf, length); in mei_write()
379 if (rets) { in mei_write()
381 rets = -EFAULT; in mei_write()
386 rets = mei_cl_write(cl, cb); in mei_write()
389 return rets; in mei_write()
410 int rets; in mei_ioctl_connect_client() local
424 rets = -ENOTTY; in mei_ioctl_connect_client()
434 rets = -ENOTTY; in mei_ioctl_connect_client()
451 rets = mei_cl_connect(cl, me_cl, file); in mei_ioctl_connect_client()
455 return rets; in mei_ioctl_connect_client()
620 int rets; in mei_ioctl_client_notify_get() local
622 rets = mei_cl_notify_get(cl, block, &notify_ev); in mei_ioctl_client_notify_get()
623 if (rets) in mei_ioctl_client_notify_get()
624 return rets; in mei_ioctl_client_notify_get()
649 int rets; in mei_ioctl() local
661 rets = -ENODEV; in mei_ioctl()
670 rets = -EFAULT; in mei_ioctl()
677 rets = mei_vt_support_check(dev, cl_uuid); in mei_ioctl()
678 if (rets == -ENOTTY) in mei_ioctl()
680 if (!rets) in mei_ioctl()
681 rets = mei_ioctl_connect_vtag(file, cl_uuid, props, in mei_ioctl()
684 rets = mei_ioctl_connect_client(file, cl_uuid, props); in mei_ioctl()
685 if (rets) in mei_ioctl()
691 rets = -EFAULT; in mei_ioctl()
702 rets = -EFAULT; in mei_ioctl()
710 rets = mei_vt_support_check(dev, cl_uuid); in mei_ioctl()
711 if (rets == -EOPNOTSUPP) in mei_ioctl()
714 if (rets) in mei_ioctl()
719 rets = -EINVAL; in mei_ioctl()
723 rets = mei_ioctl_connect_vtag(file, cl_uuid, props, vtag); in mei_ioctl()
724 if (rets) in mei_ioctl()
731 rets = -EFAULT; in mei_ioctl()
742 rets = -EFAULT; in mei_ioctl()
745 rets = mei_ioctl_client_notify_request(file, notify_req); in mei_ioctl()
750 rets = mei_ioctl_client_notify_get(file, &notify_get); in mei_ioctl()
751 if (rets) in mei_ioctl()
758 rets = -EFAULT; in mei_ioctl()
765 rets = -ENOIOCTLCMD; in mei_ioctl()
770 return rets; in mei_ioctl()
865 int rets; in mei_fsync() local
875 rets = -ENODEV; in mei_fsync()
881 rets = wait_event_interruptible(cl->tx_wait, in mei_fsync()
885 if (rets) { in mei_fsync()
887 rets = -EINTR; in mei_fsync()
891 rets = -ENODEV; in mei_fsync()
895 rets = 0; in mei_fsync()
898 return rets; in mei_fsync()