Home | History | Annotate | Download | only in HAL3

Lines Matching refs:rc

203         int rc = mCamOps->unmap_stream_buf(mCamHandle,
205 if (rc < 0) {
242 int32_t rc = OK;
248 rc = UNKNOWN_ERROR;
256 rc = -ENOMEM;
259 rc = mStreamInfoBuf->allocate(1, sizeof(cam_stream_info_t), false);
260 if (rc < 0) {
262 rc = -ENOMEM;
274 rc = mCamOps->map_stream_buf(mCamHandle,
277 if (rc < 0) {
300 rc = mCamOps->config_stream(mCamHandle,
302 if (rc < 0) {
303 ALOGE("Failed to config stream, rc = %d", rc);
325 return rc;
342 int32_t rc = 0;
345 rc = mProcTh.launch(dataProcRoutine, this);
346 return rc;
362 int32_t rc = 0;
363 rc = mProcTh.exit();
364 return rc;
382 int32_t rc;
384 rc = mProcTh.sendCmd(CAMERA_CMD_TYPE_DO_NEXT_JOB, FALSE, FALSE);
389 rc = NO_ERROR;
392 return rc;
507 mm_camera_buf_def_t *rc = NULL;
514 rc = (mm_camera_buf_def_t*)malloc(sizeof(mm_camera_buf_def_t));
515 if(rc) {
516 memcpy(rc, &mBufDefs[index], sizeof(mm_camera_buf_def_t));
520 return rc;
537 int32_t rc = NO_ERROR;
548 rc = mMemOps->map_ops(index, -1, mStreamBufs->getFd(index),
550 if (rc < 0) {
552 return rc;
555 rc = mStreamBufs->getBufDef(mFrameLenOffset, mBufDefs[index], index);
556 if (NO_ERROR != rc) {
559 return rc;
563 rc = mCamOps->qbuf(mCamHandle, mChannelHandle, &mBufDefs[index]);
564 if (rc < 0)
567 return rc;
593 int rc = NO_ERROR;
612 rc = ops_tbl->map_ops(i, -1, mStreamBufs->getFd(i),
614 if (rc < 0) {
615 ALOGE("%s: map_stream_buf failed: %d", __func__, rc);
636 ALOGE("%s: Failed to allocate mm_camera_buf_def_t %d", __func__, rc);
649 rc = mStreamBufs->getRegFlags(regFlags);
650 if (rc < 0) {
651 ALOGE("%s: getRegFlags failed %d", __func__, rc);
682 int rc = NO_ERROR;
685 rc = ops_tbl->unmap_ops(i, -1, ops_tbl->userdata);
686 if (rc < 0) {
687 ALOGE("%s: map_stream_buf failed: %d", __func__, rc);
696 return rc;
892 int32_t rc = NO_ERROR;
894 rc = mCamOps->set_stream_parms(mCamHandle,
898 if (rc == NO_ERROR) {
901 return rc;