Lines Matching refs:transp

85     struct android_log_transport_context* transp;  in init_transport_context()  local
103 transp = calloc(1, sizeof(*transp)); in init_transport_context()
104 if (!transp) { in init_transport_context()
107 transp->parent = logger_list; in init_transport_context()
108 transp->transport = transport; in init_transport_context()
109 transp->logMask = logMask; in init_transport_context()
110 transp->ret = 1; in init_transport_context()
111 list_add_tail(&logger_list->transport, &transp->node); in init_transport_context()
121 struct android_log_transport_context* transp; \
134 transport_context_for_each(transp, logger_internal->parent) { \
135 if ((transp->logMask & (1 << logger_internal->logId)) && \
136 transp->transport && transp->transport->func) { \
138 (transp->transport->func)(logger_internal, transp, ##args); \
177 struct android_log_transport_context* transp; \
187 transport_context_for_each(transp, logger_list_internal) { \
188 if (transp->transport && (transp->transport->func)) { \
190 (transp->transport->func)(logger_list_internal, transp, ##args); \
299 struct android_log_transport_context* transp = in android_logger_open() local
302 list_remove(&transp->node); in android_logger_open()
303 free(transp); in android_logger_open()
332 struct android_log_transport_context* transp, in android_transport_read() argument
334 int ret = (*transp->transport->read)(logger_list, transp, log_msg); in android_transport_read()
340 transp->ret = ret; in android_transport_read()
372 struct android_log_transport_context* transp; in android_logger_list_read() local
382 transp = node_to_item(logger_list_internal->transport.next, in android_logger_list_read()
386 if (transp->node.next != &logger_list_internal->transport) { in android_logger_list_read()
398 int retval = transp->ret; in android_logger_list_read()
399 if ((retval > 0) && !transp->logMsg.entry.len) { in android_logger_list_read()
400 if (!transp->transport->read) { in android_logger_list_read()
401 retval = transp->ret = 0; in android_logger_list_read()
403 !transp->transport->poll) { in android_logger_list_read()
404 retval = android_transport_read(logger_list_internal, transp, in android_logger_list_read()
405 &transp->logMsg); in android_logger_list_read()
408 (*transp->transport->poll)(logger_list_internal, transp); in android_logger_list_read()
411 pollval = (*transp->transport->poll)(logger_list_internal, transp); in android_logger_list_read()
418 retval = transp->ret = pollval; in android_logger_list_read()
420 retval = android_transport_read(logger_list_internal, transp, in android_logger_list_read()
421 &transp->logMsg); in android_logger_list_read()
428 if ((transp->ret > 0) && transp->logMsg.entry.len && in android_logger_list_read()
429 (!oldest || (oldest->logMsg.entry.sec > transp->logMsg.entry.sec) || in android_logger_list_read()
430 ((oldest->logMsg.entry.sec == transp->logMsg.entry.sec) && in android_logger_list_read()
431 (oldest->logMsg.entry.nsec > transp->logMsg.entry.nsec)))) { in android_logger_list_read()
432 oldest = transp; in android_logger_list_read()
434 transp = node_to_item(transp->node.next, in android_logger_list_read()
436 } while (transp != node_to_item(&logger_list_internal->transport, in android_logger_list_read()
442 transp = node_to_item(logger_list_internal->transport.next, in android_logger_list_read()
463 return android_transport_read(logger_list_internal, transp, log_msg); in android_logger_list_read()
481 struct android_log_transport_context* transp = in android_logger_list_free() local
484 if (transp->transport && transp->transport->close) { in android_logger_list_free()
485 (*transp->transport->close)(logger_list_internal, transp); in android_logger_list_free()
487 list_remove(&transp->node); in android_logger_list_free()
488 free(transp); in android_logger_list_free()