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);
118 struct android_log_transport_context *transp __unused) in pmsgClear()
131 struct android_log_transport_context *transp __unused) in pmsgVersion()
137 struct android_log_transport_context *transp, in pmsgRead() argument
153 if (transp->context.fd <= 0) { in pmsgRead()
166 transp->context.fd = fd; in pmsgRead()
172 ret = TEMP_FAILURE_RETRY(read(transp->context.fd, in pmsgRead()
195 if ((transp->logMask & (1 << buf.l.id)) && in pmsgRead()
205 ret = TEMP_FAILURE_RETRY(read(transp->context.fd, in pmsgRead()
234 current = TEMP_FAILURE_RETRY(lseek(transp->context.fd, in pmsgRead()
239 next = TEMP_FAILURE_RETRY(lseek(transp->context.fd, in pmsgRead()
252 struct android_log_transport_context *transp) { in pmsgClose() argument
253 if (transp->context.fd > 0) { in pmsgClose()
254 close (transp->context.fd); in pmsgClose()
256 transp->context.fd = 0; in pmsgClose()
266 struct android_log_transport_context transp; in __android_log_pmsg_file_read() local
294 memset(&transp, 0, sizeof(transp)); in __android_log_pmsg_file_read()
299 transp.logMask = (unsigned)-1; in __android_log_pmsg_file_read()
301 transp.logMask = (1 << logId); in __android_log_pmsg_file_read()
303 transp.logMask &= ~((1 << LOG_ID_KERNEL) | in __android_log_pmsg_file_read()
306 if (!transp.logMask) { in __android_log_pmsg_file_read()
331 while (pmsgRead(&logger_list, &transp, &transp.logMsg) > 0) { in __android_log_pmsg_file_read()
333 size_t hdr_size = transp.logMsg.entry.hdr_size ? in __android_log_pmsg_file_read()
334 transp.logMsg.entry.hdr_size : sizeof(transp.logMsg.entry_v1); in __android_log_pmsg_file_read()
335 char *msg = (char *)&transp.logMsg + hdr_size; in __android_log_pmsg_file_read()
339 if ((transp.logMsg.entry.nsec % ANDROID_LOG_PMSG_FILE_SEQUENCE) || in __android_log_pmsg_file_read()
340 ((transp.logMsg.entry.nsec / ANDROID_LOG_PMSG_FILE_SEQUENCE) >= in __android_log_pmsg_file_read()
346 len = transp.logMsg.entry.len - sizeof(prio); in __android_log_pmsg_file_read()
396 (names->id == transp.logMsg.entry.lid) && in __android_log_pmsg_file_read()
414 names->id = transp.logMsg.entry.lid; in __android_log_pmsg_file_read()
467 if (transp.logMsg.entry.nsec == content->entry.nsec) { in __android_log_pmsg_file_read()
475 hdr_size + transp.logMsg.entry.len); in __android_log_pmsg_file_read()
480 memcpy(&content->entry, &transp.logMsg.entry, in __android_log_pmsg_file_read()
481 hdr_size + transp.logMsg.entry.len); in __android_log_pmsg_file_read()
486 transp.logMsg.entry.nsec) { in __android_log_pmsg_file_read()
492 pmsgClose(&logger_list, &transp); in __android_log_pmsg_file_read()