Lines Matching refs:fenceFd
79 #define EMPTY_BUFFER(addr, header, fenceFd) "%#x [%u@%p fc=%d]", \
80 (addr), (header)->nAllocLen, (header)->pBuffer, (fenceFd)
81 #define FULL_BUFFER(addr, header, fenceFd) "%#" PRIxPTR " [%u@%p (%u..+%u) f=%x ts=%lld fc=%d]", \
83 (header)->nOffset, (header)->nFilledLen, (header)->nFlags, (header)->nTimeStamp, (fenceFd)
1070 status_t OMXNodeInstance::fillBuffer(OMX::buffer_id buffer, int fenceFd) {
1078 // meta now owns fenceFd
1079 status_t res = storeFenceInMeta_l(header, fenceFd, kPortIndexOutput);
1081 CLOG_ERROR(fillBuffer::storeFenceInMeta, res, EMPTY_BUFFER(buffer, header, fenceFd));
1088 CLOG_BUMPED_BUFFER(fillBuffer, WITH_STATS(EMPTY_BUFFER(buffer, header, fenceFd)));
1093 CLOG_ERROR(fillBuffer, err, EMPTY_BUFFER(buffer, header, fenceFd));
1103 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) {
1132 CLOG_ERROR(emptyBuffer, OMX_ErrorBadParameter, FULL_BUFFER(NULL, header, fenceFd));
1133 if (fenceFd >= 0) {
1134 ::close(fenceFd);
1144 return emptyBuffer_l(header, flags, timestamp, (intptr_t)buffer, fenceFd);
1172 OMX_BUFFERHEADERTYPE *header, int fenceFd, OMX_U32 portIndex) {
1180 if (fenceFd >= 0) {
1181 ::close(fenceFd);
1185 nativeMeta.nFenceFd = fenceFd;
1186 } else if (fenceFd >= 0) {
1187 CLOG_BUFFER(storeFenceInMeta, "waiting for fence %d", fenceFd);
1188 sp<Fence> fence = new Fence(fenceFd);
1197 int fenceFd = -1;
1202 fenceFd = nativeMeta.nFenceFd;
1205 if (metaSize < sizeof(nativeMeta) && fenceFd >= 0) {
1208 fenceFd = -1;
1211 return fenceFd;
1216 intptr_t debugAddr, int fenceFd) {
1220 status_t res = storeFenceInMeta_l(header, fenceFd, kPortIndexInput);
1223 FULL_BUFFER(debugAddr, header, fenceFd)));
1236 CLOG_BUMPED_BUFFER(emptyBuffer, WITH_STATS(FULL_BUFFER(debugAddr, header, fenceFd)));
1240 CLOG_IF_ERROR(emptyBuffer, err, FULL_BUFFER(debugAddr, header, fenceFd));
1257 OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) {
1263 (intptr_t)header->pBuffer, header, fenceFd));
1269 return emptyBuffer_l(header, flags, timestamp, (intptr_t)header->pBuffer, fenceFd);
1394 msg.u.extended_buffer_data.buffer, buffer, msg.fenceFd)));
1405 FULL_BUFFER(NULL, buffer, msg.fenceFd));
1424 EBD, WITH_STATS(EMPTY_BUFFER(msg.u.buffer_data.buffer, buffer, msg.fenceFd)));
1433 bufferSource->codecBufferEmptied(buffer, msg.fenceFd);
1542 int fenceFd = instance->retrieveFenceFromMeta_l(pBuffer, kPortIndexOutput);
1544 instance->findBufferID(pBuffer), pBuffer, fenceFd);
1556 int fenceFd = instance->retrieveFenceFromMeta_l(pBuffer, kPortIndexOutput);
1558 instance->findBufferID(pBuffer), pBuffer, fenceFd);