Lines Matching refs:rets
98 int rets; in mei_release() local
107 rets = mei_amthif_release(dev, file); in mei_release()
110 rets = mei_cl_disconnect(cl); in mei_release()
122 return rets; in mei_release()
143 int rets; in mei_read() local
153 rets = -ENODEV; in mei_read()
158 rets = 0; in mei_read()
163 rets = -EMSGSIZE; in mei_read()
174 rets = mei_cl_read_start(cl, length, file); in mei_read()
175 if (rets && rets != -EBUSY) { in mei_read()
176 cl_dbg(dev, cl, "mei start read failure status = %d\n", rets); in mei_read()
181 rets = -EAGAIN; in mei_read()
198 rets = -ENODEV; in mei_read()
212 rets = 0; in mei_read()
219 rets = cb->status; in mei_read()
220 cl_dbg(dev, cl, "read operation failed %d\n", rets); in mei_read()
227 rets = 0; in mei_read()
237 rets = -EFAULT; in mei_read()
241 rets = length; in mei_read()
252 cl_dbg(dev, cl, "end mei read rets = %d\n", rets); in mei_read()
254 return rets; in mei_read()
272 int rets; in mei_write() local
282 rets = -ENODEV; in mei_write()
288 rets = -ENODEV; in mei_write()
293 rets = -ENOTTY; in mei_write()
298 rets = -EFBIG; in mei_write()
303 rets = 0; in mei_write()
310 rets = -ENOMEM; in mei_write()
314 rets = copy_from_user(cb->buf.data, ubuf, length); in mei_write()
315 if (rets) { in mei_write()
317 rets = -EFAULT; in mei_write()
323 rets = mei_amthif_write(cl, cb); in mei_write()
324 if (!rets) in mei_write()
325 rets = length; in mei_write()
329 rets = mei_cl_write(cl, cb, false); 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 = -ENODEV; in mei_ioctl_connect_client()
410 rets = dev->iamthif_cl.status; in mei_ioctl_connect_client()
421 rets = mei_cl_connect(cl, me_cl, file); in mei_ioctl_connect_client()
425 return rets; in mei_ioctl_connect_client()
461 int rets; in mei_ioctl_client_notify_get() local
463 rets = mei_cl_notify_get(cl, block, ¬ify_ev); in mei_ioctl_client_notify_get()
464 if (rets) in mei_ioctl_client_notify_get()
465 return rets; in mei_ioctl_client_notify_get()
486 int rets; in mei_ioctl() local
498 rets = -ENODEV; in mei_ioctl()
508 rets = -EFAULT; in mei_ioctl()
512 rets = mei_ioctl_connect_client(file, &connect_data); in mei_ioctl()
513 if (rets) in mei_ioctl()
520 rets = -EFAULT; in mei_ioctl()
531 rets = -EFAULT; in mei_ioctl()
534 rets = mei_ioctl_client_notify_request(file, notify_req); in mei_ioctl()
539 rets = mei_ioctl_client_notify_get(file, ¬ify_get); in mei_ioctl()
540 if (rets) in mei_ioctl()
547 rets = -EFAULT; in mei_ioctl()
554 rets = -ENOIOCTLCMD; in mei_ioctl()
559 return rets; in mei_ioctl()