Lines Matching refs:rc
203 int rc = mCamOps->unmap_stream_buf(mCamHandle,
205 if (rc < 0) {
244 int32_t rc = OK;
250 rc = UNKNOWN_ERROR;
258 rc = -ENOMEM;
261 rc = mStreamInfoBuf->allocate(1, sizeof(cam_stream_info_t), false);
262 if (rc < 0) {
264 rc = -ENOMEM;
279 rc = mCamOps->map_stream_buf(mCamHandle,
282 if (rc < 0) {
305 rc = mCamOps->config_stream(mCamHandle,
307 if (rc < 0) {
308 ALOGE("Failed to config stream, rc = %d", rc);
330 return rc;
347 int32_t rc = 0;
350 rc = mProcTh.launch(dataProcRoutine, this);
351 return rc;
367 int32_t rc = 0;
368 rc = mProcTh.exit();
369 return rc;
387 int32_t rc;
389 rc = mProcTh.sendCmd(CAMERA_CMD_TYPE_DO_NEXT_JOB, FALSE, FALSE);
394 rc = NO_ERROR;
397 return rc;
512 mm_camera_buf_def_t *rc = NULL;
519 rc = (mm_camera_buf_def_t*)malloc(sizeof(mm_camera_buf_def_t));
520 if(rc) {
521 memcpy(rc, &mBufDefs[index], sizeof(mm_camera_buf_def_t));
525 return rc;
542 int32_t rc = NO_ERROR;
553 rc = mMemOps->map_ops(index, -1, mStreamBufs->getFd(index),
555 if (rc < 0) {
557 return rc;
560 rc = mStreamBufs->getBufDef(mFrameLenOffset, mBufDefs[index], index);
561 if (NO_ERROR != rc) {
564 return rc;
568 rc = mCamOps->qbuf(mCamHandle, mChannelHandle, &mBufDefs[index]);
569 if (rc < 0)
572 return rc;
598 int rc = NO_ERROR;
617 rc = ops_tbl->map_ops(i, -1, mStreamBufs->getFd(i),
619 if (rc < 0) {
620 ALOGE("%s: map_stream_buf failed: %d", __func__, rc);
641 ALOGE("%s: Failed to allocate mm_camera_buf_def_t %d", __func__, rc);
654 rc = mStreamBufs->getRegFlags(regFlags);
655 if (rc < 0) {
656 ALOGE("%s: getRegFlags failed %d", __func__, rc);
687 int rc = NO_ERROR;
690 rc = ops_tbl->unmap_ops(i, -1, ops_tbl->userdata);
691 if (rc < 0) {
692 ALOGE("%s: map_stream_buf failed: %d", __func__, rc);
701 return rc;
897 int32_t rc = NO_ERROR;
899 rc = mCamOps->set_stream_parms(mCamHandle,
903 if (rc == NO_ERROR) {
906 return rc;