Lines Matching refs:ret
108 transp->ret = 1; in init_transport_context()
118 ssize_t ret = -EINVAL; \
123 return ret; \
125 ret = init_transport_context(logger_internal->parent); \
126 if (ret < 0) { \
127 return ret; \
130 ret = (def); \
135 if ((ret >= 0) || (ret == (def))) { \
136 ret = retval; \
140 return ret
175 ssize_t ret = init_transport_context(logger_list_internal); \
176 if (ret < 0) { \
177 return ret; \
180 ret = (def); \
184 if ((ret >= 0) || (ret == (def))) { \
185 ret = retval; \
189 return ret
306 int ret = (*transp->transport->read)(logger_list, transp, log_msg); in android_transport_read() local
308 if (ret > (int)sizeof(*log_msg)) { in android_transport_read()
309 ret = sizeof(*log_msg); in android_transport_read()
312 transp->ret = ret; in android_transport_read()
315 if (ret < (int)(sizeof(log_msg->entry.len) + sizeof(log_msg->entry.hdr_size))) { in android_transport_read()
316 if (ret >= (int)sizeof(log_msg->entry.len)) { in android_transport_read()
319 return ret; in android_transport_read()
332 if (ret <= log_msg->entry_v2.hdr_size) { in android_transport_read()
335 log_msg->entry.len = ret - log_msg->entry_v2.hdr_size; in android_transport_read()
338 return ret; in android_transport_read()
347 int ret = init_transport_context(logger_list_internal); in android_logger_list_read() local
348 if (ret < 0) { in android_logger_list_read()
349 return ret; in android_logger_list_read()
360 int ret; in android_logger_list_read() local
366 ret = -1000; in android_logger_list_read()
369 int retval = transp->ret; in android_logger_list_read()
372 retval = transp->ret = 0; in android_logger_list_read()
387 retval = transp->ret = pollval; in android_logger_list_read()
393 if (ret < retval) { in android_logger_list_read()
394 ret = retval; in android_logger_list_read()
396 if ((transp->ret > 0) && transp->logMsg.entry.len && in android_logger_list_read()
406 return (ret < 0) ? ret : -EAGAIN; in android_logger_list_read()
410 } while (!oldest && (ret > 0)); in android_logger_list_read()
412 return ret; in android_logger_list_read()
415 ret = oldest->ret; in android_logger_list_read()
416 if (ret < oldest->logMsg.entry.hdr_size) { in android_logger_list_read()
423 memcpy(log_msg, &oldest->logMsg, ret); in android_logger_list_read()
425 return ret; in android_logger_list_read()