Lines Matching refs:transp
33 struct android_log_transport_context* transp);
35 struct android_log_transport_context* transp,
38 struct android_log_transport_context* transp);
40 struct android_log_transport_context* transp);
116 struct android_log_transport_context* transp __unused) { in pmsgClear()
128 struct android_log_transport_context* transp __unused) { in pmsgVersion()
133 struct android_log_transport_context* transp, in pmsgRead() argument
149 if (atomic_load(&transp->context.fd) <= 0) { in pmsgRead()
162 i = atomic_exchange(&transp->context.fd, fd); in pmsgRead()
173 fd = atomic_load(&transp->context.fd); in pmsgRead()
201 if ((transp->logMask & (1 << buf.l.id)) && in pmsgRead()
212 fd = atomic_load(&transp->context.fd); in pmsgRead()
241 fd = atomic_load(&transp->context.fd); in pmsgRead()
249 fd = atomic_load(&transp->context.fd); in pmsgRead()
265 struct android_log_transport_context* transp) { in pmsgClose() argument
266 int fd = atomic_exchange(&transp->context.fd, 0); in pmsgClose()
277 struct android_log_transport_context transp; in __android_log_pmsg_file_read() local
305 memset(&transp, 0, sizeof(transp)); in __android_log_pmsg_file_read()
309 transp.logMask = (unsigned)-1; in __android_log_pmsg_file_read()
311 transp.logMask = (1 << logId); in __android_log_pmsg_file_read()
313 transp.logMask &= in __android_log_pmsg_file_read()
315 if (!transp.logMask) { in __android_log_pmsg_file_read()
340 while (pmsgRead(&logger_list, &transp, &transp.logMsg) > 0) { in __android_log_pmsg_file_read()
342 size_t hdr_size = transp.logMsg.entry.hdr_size in __android_log_pmsg_file_read()
343 ? transp.logMsg.entry.hdr_size in __android_log_pmsg_file_read()
344 : sizeof(transp.logMsg.entry_v1); in __android_log_pmsg_file_read()
345 char* msg = (char*)&transp.logMsg + hdr_size; in __android_log_pmsg_file_read()
348 if ((hdr_size < sizeof(transp.logMsg.entry_v1)) || in __android_log_pmsg_file_read()
349 (hdr_size > sizeof(transp.logMsg.entry))) { in __android_log_pmsg_file_read()
353 if ((transp.logMsg.entry.nsec % ANDROID_LOG_PMSG_FILE_SEQUENCE) || in __android_log_pmsg_file_read()
354 ((transp.logMsg.entry.nsec / ANDROID_LOG_PMSG_FILE_SEQUENCE) >= in __android_log_pmsg_file_read()
360 len = transp.logMsg.entry.len - sizeof(prio); in __android_log_pmsg_file_read()
409 (names->id == transp.logMsg.entry.lid) && (names->prio == *msg)) { in __android_log_pmsg_file_read()
426 names->id = transp.logMsg.entry.lid; in __android_log_pmsg_file_read()
479 if (transp.logMsg.entry.nsec == content->entry.nsec) { in __android_log_pmsg_file_read()
487 calloc(1, sizeof(content->node) + hdr_size + transp.logMsg.entry.len); in __android_log_pmsg_file_read()
492 memcpy(&content->entry, &transp.logMsg.entry, in __android_log_pmsg_file_read()
493 hdr_size + transp.logMsg.entry.len); in __android_log_pmsg_file_read()
498 transp.logMsg.entry.nsec) { in __android_log_pmsg_file_read()
504 pmsgClose(&logger_list, &transp); in __android_log_pmsg_file_read()