Lines Matching refs:fenceFd
81 #define EMPTY_BUFFER(addr, header, fenceFd) "%#x [%u@%p fc=%d]", \
82 (addr), (header)->nAllocLen, (header)->pBuffer, (fenceFd)
83 #define FULL_BUFFER(addr, header, fenceFd) "%#" PRIxPTR " [%u@%p (%u..+%u) f=%x ts=%lld fc=%d]", \
85 (header)->nOffset, (header)->nFilledLen, (header)->nFlags, (header)->nTimeStamp, (fenceFd)
1353 status_t OMXNodeInstance::fillBuffer(OMX::buffer_id buffer, int fenceFd) {
1365 // meta now owns fenceFd
1366 status_t res = storeFenceInMeta_l(header, fenceFd, kPortIndexOutput);
1368 CLOG_ERROR(fillBuffer::storeFenceInMeta, res, EMPTY_BUFFER(buffer, header, fenceFd));
1375 CLOG_BUMPED_BUFFER(fillBuffer, WITH_STATS(EMPTY_BUFFER(buffer, header, fenceFd)));
1380 CLOG_ERROR(fillBuffer, err, EMPTY_BUFFER(buffer, header, fenceFd));
1390 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) {
1417 CLOG_ERROR(emptyBuffer, OMX_ErrorBadParameter, FULL_BUFFER(NULL, header, fenceFd));
1418 if (fenceFd >= 0) {
1419 ::close(fenceFd);
1429 return emptyBuffer_l(header, flags, timestamp, (intptr_t)buffer, fenceFd);
1457 OMX_BUFFERHEADERTYPE *header, int fenceFd, OMX_U32 portIndex) {
1465 if (fenceFd >= 0) {
1466 ::close(fenceFd);
1470 nativeMeta.nFenceFd = fenceFd;
1471 } else if (fenceFd >= 0) {
1472 CLOG_BUFFER(storeFenceInMeta, "waiting for fence %d", fenceFd);
1473 sp<Fence> fence = new Fence(fenceFd);
1482 int fenceFd = -1;
1487 fenceFd = nativeMeta.nFenceFd;
1490 if (metaSize < sizeof(nativeMeta) && fenceFd >= 0) {
1493 fenceFd = -1;
1496 return fenceFd;
1501 intptr_t debugAddr, int fenceFd) {
1505 status_t res = storeFenceInMeta_l(header, fenceFd, kPortIndexInput);
1508 FULL_BUFFER(debugAddr, header, fenceFd)));
1521 CLOG_BUMPED_BUFFER(emptyBuffer, WITH_STATS(FULL_BUFFER(debugAddr, header, fenceFd)));
1525 CLOG_IF_ERROR(emptyBuffer, err, FULL_BUFFER(debugAddr, header, fenceFd));
1542 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) {
1555 (intptr_t)header->pBuffer, header, fenceFd));
1567 return emptyBuffer_l(header, flags, timestamp, (intptr_t)header->pBuffer, fenceFd);
1721 msg.u.extended_buffer_data.buffer, buffer, msg.fenceFd)));
1732 FULL_BUFFER(NULL, buffer, msg.fenceFd));
1754 EBD, WITH_STATS(EMPTY_BUFFER(msg.u.buffer_data.buffer, buffer, msg.fenceFd)));
1763 bufferSource->codecBufferEmptied(buffer, msg.fenceFd);
1887 int fenceFd = instance->retrieveFenceFromMeta_l(pBuffer, kPortIndexOutput);
1889 instance->findBufferID(pBuffer), pBuffer, fenceFd);
1905 int fenceFd = instance->retrieveFenceFromMeta_l(pBuffer, kPortIndexOutput);
1907 instance->findBufferID(pBuffer), pBuffer, fenceFd);