Lines Matching refs:transp
88 struct android_log_transport_context *transp; in init_transport_context() local
108 transp = calloc(1, sizeof(*transp)); in init_transport_context()
109 if (!transp) { in init_transport_context()
112 transp->parent = logger_list; in init_transport_context()
113 transp->transport = transport; in init_transport_context()
114 transp->logMask = logMask; in init_transport_context()
115 transp->ret = 1; in init_transport_context()
116 list_add_tail(&logger_list->transport, &transp->node); in init_transport_context()
126 struct android_log_transport_context *transp; \
139 transport_context_for_each(transp, logger_internal->parent) { \
140 if ((transp->logMask & (1 << logger_internal->logId)) && \
141 transp->transport && transp->transport->func) { \
142 ssize_t retval = (transp->transport->func)(logger_internal, \
143 transp, ## args); \
187 struct android_log_transport_context *transp; \
197 transport_context_for_each(transp, logger_list_internal) { \
198 if (transp->transport && (transp->transport->func)) { \
199 ssize_t retval = (transp->transport->func)(logger_list_internal, \
200 transp, ## args); \
308 struct android_log_transport_context *transp = in android_logger_open() local
311 list_remove(&transp->node); in android_logger_open()
312 free(transp); in android_logger_open()
348 struct android_log_transport_context *transp; in android_logger_list_read() local
358 transp = node_to_item(logger_list_internal->transport.next, in android_logger_list_read()
362 if (transp->node.next != &logger_list_internal->transport) { in android_logger_list_read()
374 int retval = transp->ret; in android_logger_list_read()
375 if ((retval > 0) && !transp->logMsg.entry.len) { in android_logger_list_read()
376 if (!transp->transport->read) { in android_logger_list_read()
377 retval = transp->ret = 0; in android_logger_list_read()
380 !transp->transport->poll) { in android_logger_list_read()
381 retval = transp->ret = (*transp->transport->read)( in android_logger_list_read()
383 transp, in android_logger_list_read()
384 &transp->logMsg); in android_logger_list_read()
386 int pollval = (*transp->transport->poll)( in android_logger_list_read()
387 logger_list_internal, transp); in android_logger_list_read()
390 pollval = (*transp->transport->poll)( in android_logger_list_read()
391 logger_list_internal, transp); in android_logger_list_read()
398 retval = transp->ret = pollval; in android_logger_list_read()
400 retval = transp->ret = (*transp->transport->read)( in android_logger_list_read()
402 transp, in android_logger_list_read()
403 &transp->logMsg); in android_logger_list_read()
410 if ((transp->ret > 0) && transp->logMsg.entry.len && in android_logger_list_read()
413 transp->logMsg.entry.sec) || in android_logger_list_read()
415 transp->logMsg.entry.sec) && in android_logger_list_read()
417 transp->logMsg.entry.nsec)))) { in android_logger_list_read()
418 oldest = transp; in android_logger_list_read()
420 transp = node_to_item(transp->node.next, in android_logger_list_read()
423 } while (transp != node_to_item( in android_logger_list_read()
431 transp = node_to_item(logger_list_internal->transport.next, in android_logger_list_read()
446 return (transp->transport->read)(logger_list_internal, transp, log_msg); in android_logger_list_read()
461 struct android_log_transport_context *transp = in android_logger_list_free() local
464 if (transp->transport && transp->transport->close) { in android_logger_list_free()
465 (*transp->transport->close)(logger_list_internal, transp); in android_logger_list_free()
467 list_remove(&transp->node); in android_logger_list_free()
468 free(transp); in android_logger_list_free()