Lines Matching refs:rets
39 ssize_t rets; in __mei_cl_send() local
49 rets = -ENODEV; in __mei_cl_send()
54 rets = -ENODEV; in __mei_cl_send()
60 rets = -ENOTTY; in __mei_cl_send()
66 rets = mei_cl_vt_support_check(cl); in __mei_cl_send()
67 if (rets) in __mei_cl_send()
72 rets = -EFBIG; in __mei_cl_send()
78 rets = wait_event_interruptible(cl->tx_wait, in __mei_cl_send()
82 if (rets) { in __mei_cl_send()
84 rets = -EINTR; in __mei_cl_send()
88 rets = -ENODEV; in __mei_cl_send()
95 rets = -ENOMEM; in __mei_cl_send()
104 rets = mei_cl_write(cl, cb); in __mei_cl_send()
109 return rets; in __mei_cl_send()
130 ssize_t rets; in __mei_cl_recv() local
141 rets = -ENODEV; in __mei_cl_recv()
149 rets = mei_cl_read_start(cl, length, NULL); in __mei_cl_recv()
150 if (rets && rets != -EBUSY) in __mei_cl_recv()
154 rets = -EAGAIN; in __mei_cl_recv()
165 rets = wait_event_interruptible_timeout in __mei_cl_recv()
170 if (rets == 0) in __mei_cl_recv()
172 if (rets < 0) { in __mei_cl_recv()
191 rets = -ENODEV; in __mei_cl_recv()
198 rets = 0; in __mei_cl_recv()
204 rets = cb->status; in __mei_cl_recv()
210 rets = r_length; in __mei_cl_recv()
219 return rets; in __mei_cl_recv()