Lines Matching refs:rets
60 ssize_t rets; in __mei_cl_send_timeout() local
70 rets = -ENODEV; in __mei_cl_send_timeout()
75 rets = -ENODEV; in __mei_cl_send_timeout()
81 rets = -ENOTTY; in __mei_cl_send_timeout()
87 rets = mei_cl_vt_support_check(cl); in __mei_cl_send_timeout()
88 if (rets) in __mei_cl_send_timeout()
93 rets = -EFBIG; in __mei_cl_send_timeout()
99 rets = wait_event_interruptible(cl->tx_wait, in __mei_cl_send_timeout()
103 if (rets) { in __mei_cl_send_timeout()
105 rets = -EINTR; in __mei_cl_send_timeout()
109 rets = -ENODEV; in __mei_cl_send_timeout()
116 rets = -ENOMEM; in __mei_cl_send_timeout()
131 rets = mei_cl_write(cl, cb, timeout); in __mei_cl_send_timeout()
133 if (mode & MEI_CL_IO_SGL && rets == 0) in __mei_cl_send_timeout()
134 rets = length; in __mei_cl_send_timeout()
139 return rets; in __mei_cl_send_timeout()
160 ssize_t rets; in __mei_cl_recv() local
171 rets = -ENODEV; in __mei_cl_recv()
179 rets = mei_cl_read_start(cl, length, NULL); in __mei_cl_recv()
180 if (rets && rets != -EBUSY) in __mei_cl_recv()
184 rets = -EAGAIN; in __mei_cl_recv()
195 rets = wait_event_interruptible_timeout in __mei_cl_recv()
200 if (rets == 0) in __mei_cl_recv()
202 if (rets < 0) { in __mei_cl_recv()
221 rets = -ENODEV; in __mei_cl_recv()
228 rets = 0; in __mei_cl_recv()
234 rets = cb->status; in __mei_cl_recv()
246 rets = r_length; in __mei_cl_recv()
256 return rets; in __mei_cl_recv()