Lines Matching refs:rc

88     int32_t rc = NO_ERROR;  in get_bufs()  local
94 rc = stream->getBufs(offset, num_bufs, initial_reg_flag, bufs, ops_tbl); in get_bufs()
95 if (NO_ERROR != rc) { in get_bufs()
102 rc = stream->getBatchBufs(num_bufs, initial_reg_flag, in get_bufs()
105 return rc; in get_bufs()
125 int32_t rc = NO_ERROR; in put_bufs() local
133 rc = stream->putBatchBufs(ops_tbl); in put_bufs()
134 if (NO_ERROR != rc) { in put_bufs()
138 rc = stream->putBufs(ops_tbl); in put_bufs()
139 return rc; in put_bufs()
157 int32_t rc = NO_ERROR; in invalidate_buf() local
174 rc |= retVal; in invalidate_buf()
177 rc = stream->invalidateBuf(index); in invalidate_buf()
179 return rc; in invalidate_buf()
197 int32_t rc = NO_ERROR; in clean_invalidate_buf() local
214 rc |= retVal; in clean_invalidate_buf()
217 rc = stream->cleanInvalidateBuf(index); in clean_invalidate_buf()
219 return rc; in clean_invalidate_buf()
237 int32_t rc = NO_ERROR; in clean_buf() local
254 rc |= retVal; in clean_buf()
257 rc = stream->cleanBuf(index); in clean_buf()
259 return rc; in clean_buf()
333 int rc = mCamOps->unmap_stream_buf(mCamHandle, in ~QCamera3Stream() local
335 if (rc < 0) { in ~QCamera3Stream()
383 int32_t rc = OK; in init() local
393 rc = UNKNOWN_ERROR; in init()
401 rc = -ENOMEM; in init()
404 rc = mStreamInfoBuf->allocate(sizeof(cam_stream_info_t)); in init()
405 if (rc < 0) { in init()
407 rc = -ENOMEM; in init()
437 rc = mCamOps->map_stream_buf(mCamHandle, in init()
441 if (rc < 0) { in init()
459 rc = BAD_VALUE; in init()
497 rc = mCamOps->config_stream(mCamHandle, in init()
499 if (rc < 0) { in init()
500 LOGE("Failed to config stream, rc = %d", rc); in init()
523 return rc; in init()
540 int32_t rc = 0; in start() local
546 rc = mProcTh.launch(dataProcRoutine, this); in start()
547 return rc; in start()
563 int32_t rc = 0; in stop() local
564 rc = mProcTh.exit(); in stop()
565 return rc; in stop()
583 int32_t rc; in timeoutFrame() local
588 rc = mProcTh.sendCmd(CAMERA_CMD_TYPE_TIMEOUT, FALSE, FALSE); in timeoutFrame()
590 return rc; in timeoutFrame()
608 int32_t rc; in processDataNotify() local
610 rc = mProcTh.sendCmd(CAMERA_CMD_TYPE_DO_NEXT_JOB, FALSE, FALSE); in processDataNotify()
615 rc = NO_ERROR; in processDataNotify()
618 return rc; in processDataNotify()
774 int32_t rc = NO_ERROR; in bufDoneLocked() local
798 rc = mMemOps->map_ops(index, -1, mStreamBufs->getFd(index), in bufDoneLocked()
801 if (rc < 0) { in bufDoneLocked()
803 return rc; in bufDoneLocked()
806 rc = mStreamBufs->getBufDef(mFrameLenOffset, mBufDefs[index], index, mMapStreamBuffers); in bufDoneLocked()
807 if (NO_ERROR != rc) { in bufDoneLocked()
810 return rc; in bufDoneLocked()
819 rc = aggregateBufToBatch(mBufDefs[index]); in bufDoneLocked()
824 rc = mCamOps->qbuf(mCamHandle, mChannelHandle, &mBufDefs[index]); in bufDoneLocked()
825 if (rc < 0) { in bufDoneLocked()
830 return rc; in bufDoneLocked()
847 int32_t rc = NO_ERROR; in cancelBuffer() local
864 rc = mCamOps->cancel_buffer(mCamHandle, mChannelHandle, mHandle, index); in cancelBuffer()
865 if (rc < 0) { in cancelBuffer()
870 return rc; in cancelBuffer()
887 int32_t rc = NO_ERROR; in bufRelease() local
900 rc = mMemOps->unmap_ops(index, -1, CAM_MAPPING_BUF_TYPE_STREAM_BUF, in bufRelease()
902 if (rc < 0) { in bufRelease()
904 return rc; in bufRelease()
913 return rc; in bufRelease()
939 int rc = NO_ERROR; in getBufs() local
967 rc = ops_tbl->map_ops(i, -1, mStreamBufs->getFd(i), in getBufs()
971 if (rc < 0) { in getBufs()
972 LOGE("map_stream_buf failed: %d", rc); in getBufs()
1005 LOGE("Failed to allocate mm_camera_buf_def_t %d", rc); in getBufs()
1023 rc = mStreamBufs->getRegFlags(regFlags); in getBufs()
1024 if (rc < 0) { in getBufs()
1025 LOGE("getRegFlags failed %d", rc); in getBufs()
1059 int rc = NO_ERROR; in putBufs() local
1064 rc = ops_tbl->unmap_ops(i, -1, CAM_MAPPING_BUF_TYPE_STREAM_BUF, ops_tbl->userdata); in putBufs()
1065 if (rc < 0) { in putBufs()
1066 LOGE("un-map stream buf failed: %d", rc); in putBufs()
1083 return rc; in putBufs()
1308 int32_t rc = NO_ERROR; in setParameter() local
1311 rc = mCamOps->set_stream_parms(mCamHandle, in setParameter()
1315 if (rc == NO_ERROR) { in setParameter()
1318 return rc; in setParameter()
1370 int rc = NO_ERROR; in getBatchBufs() local
1395 rc = mStreamBatchBufs->allocate( in getBatchBufs()
1397 if (rc < 0) { in getBatchBufs()
1399 rc = NO_MEMORY; in getBatchBufs()
1410 rc = ops_tbl->map_ops(i, -1, mStreamBatchBufs->getFd(i), in getBatchBufs()
1414 if (rc < 0) { in getBatchBufs()
1416 rc); in getBatchBufs()
1440 rc = NO_MEMORY; in getBatchBufs()
1455 rc = INVALID_OPERATION; in getBatchBufs()
1470 rc = aggregateStartingBufs(*initial_reg_flag); in getBatchBufs()
1471 if (rc != NO_ERROR) { in getBatchBufs()
1472 LOGE("Failed to aggregate starting buffers to the batch %d", rc); in getBatchBufs()
1495 return rc; in getBatchBufs()
1512 int rc = NO_ERROR; in putBatchBufs() local
1517 rc = ops_tbl->unmap_ops(i, -1, CAM_MAPPING_BUF_TYPE_STREAM_USER_BUF, in putBatchBufs()
1519 if (rc < 0) { in putBatchBufs()
1520 LOGE("un-map batch buf failed: %d", rc); in putBatchBufs()
1535 return rc; in putBatchBufs()
1554 int rc = NO_ERROR; in getBatchBufDef() local
1570 return rc; in getBatchBufDef()
1587 int32_t rc = NO_ERROR; in aggregateBufToBatch() local
1611 return rc; in aggregateBufToBatch()
1629 int32_t rc = NO_ERROR; in aggregateStartingBufs() local
1633 rc = bufDoneLocked(i); in aggregateStartingBufs()
1634 if (rc != NO_ERROR) { in aggregateStartingBufs()
1640 return rc; in aggregateStartingBufs()
1656 int32_t rc = NO_ERROR; in queueBatchBuf() local
1672 rc = mCamOps->qbuf(mCamHandle, mChannelHandle, mCurrentBatchBufDef); in queueBatchBuf()
1673 if (rc < 0) { in queueBatchBuf()
1675 mCurrentBatchBufDef->buf_idx, rc); in queueBatchBuf()
1685 return rc; in queueBatchBuf()
1702 int32_t rc = NO_ERROR; in handleBatchBuffer() local
1755 return rc; in handleBatchBuffer()