Lines Matching refs:rets
98 int rets; in mei_release() local
107 rets = mei_cl_disconnect(cl); in mei_release()
119 return rets; in mei_release()
140 ssize_t rets; in mei_read() local
150 rets = -ENODEV; in mei_read()
155 rets = 0; in mei_read()
160 rets = -EMSGSIZE; in mei_read()
171 rets = mei_cl_read_start(cl, length, file); in mei_read()
172 if (rets && rets != -EBUSY) { in mei_read()
173 cl_dbg(dev, cl, "mei start read failure status = %zd\n", rets); in mei_read()
178 rets = -EAGAIN; in mei_read()
193 rets = -ENODEV; in mei_read()
199 rets = 0; in mei_read()
206 rets = cb->status; in mei_read()
207 cl_dbg(dev, cl, "read operation failed %zd\n", rets); in mei_read()
214 rets = 0; in mei_read()
224 rets = -EFAULT; in mei_read()
228 rets = length; in mei_read()
239 cl_dbg(dev, cl, "end mei read rets = %zd\n", rets); in mei_read()
241 return rets; in mei_read()
259 ssize_t rets; in mei_write() local
269 rets = -ENODEV; in mei_write()
275 rets = -ENODEV; in mei_write()
280 rets = -ENOTTY; in mei_write()
285 rets = -EFBIG; in mei_write()
290 rets = 0; in mei_write()
296 rets = -EAGAIN; in mei_write()
300 rets = wait_event_interruptible(cl->tx_wait, in mei_write()
304 if (rets) { in mei_write()
306 rets = -EINTR; in mei_write()
310 rets = -ENODEV; in mei_write()
317 rets = -ENOMEM; in mei_write()
321 rets = copy_from_user(cb->buf.data, ubuf, length); in mei_write()
322 if (rets) { in mei_write()
324 rets = -EFAULT; in mei_write()
329 rets = mei_cl_write(cl, cb); in mei_write()
332 return rets; in mei_write()
352 int rets; in mei_ioctl_connect_client() local
369 rets = -ENOTTY; in mei_ioctl_connect_client()
379 rets = -ENOTTY; in mei_ioctl_connect_client()
397 rets = mei_cl_connect(cl, me_cl, file); in mei_ioctl_connect_client()
401 return rets; in mei_ioctl_connect_client()
437 int rets; in mei_ioctl_client_notify_get() local
439 rets = mei_cl_notify_get(cl, block, ¬ify_ev); in mei_ioctl_client_notify_get()
440 if (rets) in mei_ioctl_client_notify_get()
441 return rets; in mei_ioctl_client_notify_get()
462 int rets; in mei_ioctl() local
474 rets = -ENODEV; in mei_ioctl()
484 rets = -EFAULT; in mei_ioctl()
488 rets = mei_ioctl_connect_client(file, &connect_data); in mei_ioctl()
489 if (rets) in mei_ioctl()
496 rets = -EFAULT; in mei_ioctl()
507 rets = -EFAULT; in mei_ioctl()
510 rets = mei_ioctl_client_notify_request(file, notify_req); in mei_ioctl()
515 rets = mei_ioctl_client_notify_get(file, ¬ify_get); in mei_ioctl()
516 if (rets) in mei_ioctl()
523 rets = -EFAULT; in mei_ioctl()
530 rets = -ENOIOCTLCMD; in mei_ioctl()
535 return rets; in mei_ioctl()
648 int rets; in mei_fsync() local
658 rets = -ENODEV; in mei_fsync()
664 rets = wait_event_interruptible(cl->tx_wait, in mei_fsync()
668 if (rets) { in mei_fsync()
670 rets = -EINTR; in mei_fsync()
674 rets = -ENODEV; in mei_fsync()
678 rets = 0; in mei_fsync()
681 return rets; in mei_fsync()