Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 25 of 343) sorted by relevance

12345678910>>...14

/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_unit_test.c45 int rc = MM_CAMERA_OK; in mm_app_tc_open_close() local
52 rc = mm_app_open(cam_app, i, &test_obj); in mm_app_tc_open_close()
53 if (rc != MM_CAMERA_OK) { in mm_app_tc_open_close()
55 i, rc); in mm_app_tc_open_close()
59 rc = mm_app_close(&test_obj); in mm_app_tc_open_close()
60 if (rc != MM_CAMERA_OK) { in mm_app_tc_open_close()
62 i, rc); in mm_app_tc_open_close()
66 if (rc == MM_CAMERA_OK) { in mm_app_tc_open_close()
71 LOGD("END, rc = %d\n", rc); in mm_app_tc_open_close()
72 return rc; in mm_app_tc_open_close()
[all …]
Dmm_qcamera_dual_test.c79 int rc = MM_CAMERA_OK; in mm_app_dtc_0() local
88 LOGE("mm_app_open() back camera err=%d\n", rc); in mm_app_dtc_0()
89 rc = -1; in mm_app_dtc_0()
93 LOGE("system_dimension_set() err=%d\n", rc); in mm_app_dtc_0()
94 rc = -1; in mm_app_dtc_0()
100 LOGE("mm_app_open() front camera err=%d\n", rc); in mm_app_dtc_0()
101 rc = -1; in mm_app_dtc_0()
106 LOGE("system_dimension_set() err=%d\n", rc); in mm_app_dtc_0()
107 rc = -1; in mm_app_dtc_0()
112 if( MM_CAMERA_OK != (rc = startRdi(front_camera))) { in mm_app_dtc_0()
[all …]
Dmm_qcamera_app.c55 int rc = 0; in mm_camera_app_timedwait() local
63 rc = pthread_cond_timedwait(&app_cond_v, &app_mutex,&tw); in mm_camera_app_timedwait()
67 return rc; in mm_camera_app_timedwait()
72 int rc = 0; in mm_camera_app_wait() local
79 return rc; in mm_camera_app_wait()
124 int rc = MM_CAMERA_OK; in mm_app_allocate_ion_memory() local
144 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in mm_app_allocate_ion_memory()
145 if (rc < 0) { in mm_app_allocate_ion_memory()
146 LOGE("ION allocation failed %s with rc = %d \n",strerror(errno), rc); in mm_app_allocate_ion_memory()
152 rc = ioctl(main_ion_fd, ION_IOC_SHARE, &ion_info_fd); in mm_app_allocate_ion_memory()
[all …]
Dmm_qcamera_reprocess.c44 int rc = 0; in mm_app_reprocess_notify_cb() local
75 rc = createEncodingSession(pme, m_stream, m_frame); in mm_app_reprocess_notify_cb()
76 if (0 != rc) { in mm_app_reprocess_notify_cb()
84 rc = encodeData(pme, bufs, m_stream); in mm_app_reprocess_notify_cb()
115 int rc = MM_CAMERA_OK; in mm_app_add_reprocess_stream_from_source() local
162 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); in mm_app_add_reprocess_stream_from_source()
163 if (MM_CAMERA_OK != rc) { in mm_app_add_reprocess_stream_from_source()
164 LOGE("config preview stream err=%d\n", rc); in mm_app_add_reprocess_stream_from_source()
233 int rc = MM_CAMERA_OK; in mm_app_start_reprocess() local
241 if (MM_CAMERA_OK != rc) { in mm_app_start_reprocess()
[all …]
Dmm_qcamera_video.c125 int rc = 0; in mm_app_snapshot_notify_cb() local
143 rc = -1; in mm_app_snapshot_notify_cb()
156 rc = -1; in mm_app_snapshot_notify_cb()
169 rc = -1; in mm_app_snapshot_notify_cb()
206 rc = createEncodingSession(pme, m_stream, m_frame); in mm_app_snapshot_notify_cb()
207 if (0 != rc) { in mm_app_snapshot_notify_cb()
214 rc = encodeData(pme, bufs, m_stream); in mm_app_snapshot_notify_cb()
215 if (0 != rc) { in mm_app_snapshot_notify_cb()
223 if ( 0 != rc ) { in mm_app_snapshot_notify_cb()
341 int rc = MM_CAMERA_OK; in mm_app_add_video_preview_stream() local
[all …]
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCameraStateMachine.cpp197 int32_t rc = NO_ERROR; in applyDelayedMsgs() local
200 rc = m_parent->enableMsgType(m_DelayedMsgs); in applyDelayedMsgs()
207 return rc; in applyDelayedMsgs()
301 int32_t rc = NO_ERROR; in stateMachine() local
305 rc = procEvtPreviewStoppedState(evt, payload); in stateMachine()
308 rc = procEvtPreviewReadyState(evt, payload); in stateMachine()
311 rc = procEvtPreviewingState(evt, payload); in stateMachine()
314 rc = procEvtPrepareSnapshotState(evt, payload); in stateMachine()
317 rc = procEvtPicTakingState(evt, payload); in stateMachine()
320 rc = procEvtRecordingState(evt, payload); in stateMachine()
[all …]
DQCameraStream.cpp482 int rc = NO_ERROR; in unmapStreamInfoBuf() local
485 rc = mCamOps->unmap_stream_buf(mCamHandle, in unmapStreamInfoBuf()
492 if (rc < 0) { in unmapStreamInfoBuf()
497 return rc; in unmapStreamInfoBuf()
513 int rc = NO_ERROR; in releaseMiscBuf() local
521 return rc; in releaseMiscBuf()
537 int rc = NO_ERROR; in releaseStreamInfoBuf() local
546 return rc; in releaseStreamInfoBuf()
585 int32_t rc = NO_ERROR; in unMapBuf() local
595 rc = mCamOps->unmap_stream_buf(mCamHandle, mChannelHandle, mHandle, in unMapBuf()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpegdec_interface.c58 int32_t rc = -1; in mm_jpegdec_intf_start_job() local
63 return rc; in mm_jpegdec_intf_start_job()
71 return rc; in mm_jpegdec_intf_start_job()
73 rc = mm_jpegdec_start_decode_job(g_jpegdec_obj, job, job_id); in mm_jpegdec_intf_start_job()
75 return rc; in mm_jpegdec_intf_start_job()
96 int32_t rc = -1; in mm_jpegdec_intf_create_session() local
100 return rc; in mm_jpegdec_intf_create_session()
108 return rc; in mm_jpegdec_intf_create_session()
111 rc = mm_jpegdec_create_session(g_jpegdec_obj, client_hdl, p_params, p_session_id); in mm_jpegdec_intf_create_session()
113 return rc; in mm_jpegdec_intf_create_session()
[all …]
Dmm_jpeg_interface.c109 int32_t rc = -1; in mm_jpeg_intf_start_job() local
114 return rc; in mm_jpeg_intf_start_job()
122 return rc; in mm_jpeg_intf_start_job()
124 rc = mm_jpeg_start_job(g_jpeg_obj, job, job_id); in mm_jpeg_intf_start_job()
126 return rc; in mm_jpeg_intf_start_job()
147 int32_t rc = -1; in mm_jpeg_intf_create_session() local
151 return rc; in mm_jpeg_intf_create_session()
159 return rc; in mm_jpeg_intf_create_session()
162 rc = mm_jpeg_create_session(g_jpeg_obj, client_hdl, p_params, p_session_id); in mm_jpeg_intf_create_session()
164 return rc; in mm_jpeg_intf_create_session()
[all …]
Dmm_jpeg_exif.c68 int32_t rc = 0; in addExifEntry() local
86 rc = -1; in addExifEntry()
101 rc = -1; in addExifEntry()
114 rc = -1; in addExifEntry()
129 rc = -1; in addExifEntry()
144 rc = -1; in addExifEntry()
158 rc = -1; in addExifEntry()
170 rc = -1; in addExifEntry()
185 rc = -1; in addExifEntry()
199 return rc; in addExifEntry()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/HAL/wrapper/
DQualcommCamera.cpp114 int rc = -1; in get_camera_info() local
121 return rc; in get_camera_info()
130 int rc = -1; in camera_device_open() local
142 return rc; in camera_device_open()
153 rc = 0; in camera_device_open()
170 ALOGE(" end rc %d", rc); in camera_device_open()
171 return rc; in camera_device_open()
177 int rc = -1; in close_camera_device() local
193 rc = 0; in close_camera_device()
195 return rc; in close_camera_device()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-lib2d-interface/src/
Dmm_lib2d.c286 int32_t rc = IMG_SUCCESS; in mm_lib2d_init() local
335 rc = lib2d_obj->img_lib.img_core_get_comp(IMG_COMP_LIB2D, in mm_lib2d_init()
337 if (rc != IMG_SUCCESS) { in mm_lib2d_init()
338 LOGE("rc %d", rc); in mm_lib2d_init()
342 rc = IMG_COMP_LOAD(p_core_ops, NULL); in mm_lib2d_init()
343 if (rc != IMG_SUCCESS) { in mm_lib2d_init()
344 LOGE("rc %d", rc); in mm_lib2d_init()
348 rc = IMG_COMP_CREATE(p_core_ops, p_comp); in mm_lib2d_init()
349 if (rc != IMG_SUCCESS) { in mm_lib2d_init()
350 LOGE("rc %d", rc); in mm_lib2d_init()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/
Dmm_camera.c161 int rc; in mm_camera_event_notify() local
169 rc = ioctl(my_obj->ctrl_fd, VIDIOC_DQEVENT, &ev); in mm_camera_event_notify()
171 if (rc >= 0 && ev.id == MSM_CAMERA_MSM_NOTIFY) { in mm_camera_event_notify()
229 int32_t rc = 0; in mm_camera_enqueue_evt() local
244 rc = -1; in mm_camera_enqueue_evt()
247 return rc; in mm_camera_enqueue_evt()
265 int32_t rc = 0; in mm_camera_open() local
306 rc = -EUSERS; in mm_camera_open()
308 rc = -1; in mm_camera_open()
335 rc = -1; in mm_camera_open()
[all …]
Dmm_camera_muxer.c249 int32_t rc = 0; in mm_camera_muxer_camera_open() local
273 rc = mm_camera_open(my_obj); in mm_camera_muxer_camera_open()
275 if (rc != 0) { in mm_camera_muxer_camera_open()
276 LOGE("mm_camera_open err = %d", rc); in mm_camera_muxer_camera_open()
281 return rc; in mm_camera_muxer_camera_open()
284 rc = mm_camera_util_set_camera_object(cam_idx, my_obj); in mm_camera_muxer_camera_open()
291 return rc; in mm_camera_muxer_camera_open()
311 int32_t rc = 0; in mm_camera_muxer_query_capability() local
318 rc = mm_camera_query_capability(my_obj); in mm_camera_muxer_query_capability()
322 LOGD(" rc = %d", rc); in mm_camera_muxer_query_capability()
[all …]
Dmm_camera_interface.c166 int32_t rc = 0; in mm_camera_util_set_camera_object() local
171 rc = -1; in mm_camera_util_set_camera_object()
174 return rc; in mm_camera_util_set_camera_object()
237 int32_t rc = -1; in mm_camera_intf_query_capability() local
254 rc = mm_camera_query_capability(my_obj); in mm_camera_intf_query_capability()
268 rc = mm_camera_muxer_query_capability(aux_handle, my_obj); in mm_camera_intf_query_capability()
274 LOGH("camera_handle = %u rc = %u X", camera_handle, rc); in mm_camera_intf_query_capability()
275 return rc; in mm_camera_intf_query_capability()
297 int32_t rc = -1; in mm_camera_intf_set_parms() local
309 rc = mm_camera_muxer_set_parms(aux_handle, in mm_camera_intf_set_parms()
[all …]
/hardware/interfaces/keymaster/4.1/support/
DKeymaster3.cpp105 auto rc = km3_dev_->getHardwareFeatures( in getVersionIfNeeded() local
120 CHECK(rc.isOk()) << "Got error " << rc.description() << " trying to get hardware features"; in getVersionIfNeeded()
142 auto rc = km3_dev_->addRngEntropy(data); in addRngEntropy() local
143 if (!rc.isOk()) { in addRngEntropy()
144 return StatusOf<V3_0::ErrorCode, V4_0::ErrorCode>(rc); in addRngEntropy()
146 return convert(rc); in addRngEntropy()
155 auto rc = km3_dev_->generateKey(convert(keyParams), cb); in generateKey() local
156 rc.isOk(); // move ctor prereq in generateKey()
157 return rc; in generateKey()
168 auto rc = km3_dev_->getKeyCharacteristics(keyBlob, clientId, appData, cb); in getKeyCharacteristics() local
[all …]
/hardware/qcom/camera/msm8998/QCamera2/HAL3/
DQCamera3Stream.cpp88 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()
[all …]
/hardware/qcom/sm8150/media/hypv-intercept/
Dhypv_intercept.cpp94 int rc = 0; in add_handle_to_index() local
99 rc = -1; in add_handle_to_index()
102 rc = -1; in add_handle_to_index()
108 return rc; in add_handle_to_index()
113 int rc = 0; in find_empty_handle_index() local
118 rc = -1; in find_empty_handle_index()
124 rc = i; in find_empty_handle_index()
131 rc = -1; in find_empty_handle_index()
135 return rc; in find_empty_handle_index()
140 int rc = 0; in hypv_init() local
[all …]
/hardware/qcom/wlan/qcwcn/wcnss-service/
Dwcnss_service.c96 int rc = 0; in wcnss_write_cal_data() local
105 rc = stat(WCNSS_CAL_FILE, &st); in wcnss_write_cal_data()
106 if (rc < 0) { in wcnss_write_cal_data()
118 rc = fd_file; in wcnss_write_cal_data()
128 rc = wcount; in wcnss_write_cal_data()
137 rc = rcount; in wcnss_write_cal_data()
148 rc = wcount; in wcnss_write_cal_data()
160 return rc; in wcnss_write_cal_data()
166 return rc; in wcnss_write_cal_data()
175 int rc = 0; in wcnss_read_and_store_cal_data() local
[all …]
/hardware/qcom/camera/msm8998/QCamera2/
DQCamera2Factory.cpp209 int rc = NO_ERROR; in QCamera2Factory() local
212 rc = gQCameraMuxer->get_camera_info(camera_id, info); in QCamera2Factory()
215 rc = gQCamera2Factory->getCameraInfo(camera_id, info); in QCamera2Factory()
217 return rc; in QCamera2Factory()
298 int rc = NO_ERROR; in QCamera2Factory() local
301 rc = gQCameraMuxer->set_callbacks(callbacks); in QCamera2Factory()
304 rc = gQCamera2Factory->setCallbacks(callbacks); in QCamera2Factory()
306 return rc; in QCamera2Factory()
325 int rc = NO_ERROR; in QCamera2Factory() local
337 rc = gQCameraMuxer->open_legacy(module, id, halVersion, device); in QCamera2Factory()
[all …]
/hardware/interfaces/keymaster/3.0/default/
DKeymasterDevice.cpp37 int rc = keymaster0_open(mod, dev); in get_keymaster0_dev() local
38 if (rc) { in get_keymaster0_dev()
41 return rc; in get_keymaster0_dev()
47 int rc = keymaster1_open(mod, dev); in get_keymaster1_dev() local
48 if (rc) { in get_keymaster1_dev()
49 ALOGE("Error %d opening keystore keymaster1 device", rc); in get_keymaster1_dev()
55 return rc; in get_keymaster1_dev()
59 int rc = keymaster2_open(mod, dev); in get_keymaster2_dev() local
60 if (rc) { in get_keymaster2_dev()
61 ALOGE("Error %d opening keystore keymaster2 device", rc); in get_keymaster2_dev()
[all …]
/hardware/interfaces/broadcastradio/1.0/default/
DBroadcastRadio.cpp48 int rc; in onFirstRef() local
62 rc = hw_get_module_by_class(RADIO_HARDWARE_MODULE_ID, classString, &mod); in onFirstRef()
63 if (rc != 0) { in onFirstRef()
65 RADIO_HARDWARE_MODULE_ID, classString, strerror(-rc)); in onFirstRef()
69 rc = radio_hw_device_open(mod, &mHwDevice); in onFirstRef()
70 if (rc != 0) { in onFirstRef()
72 RADIO_HARDWARE_MODULE_ID, "primary", strerror(-rc)); in onFirstRef()
101 int rc; in getProperties() local
106 rc = -ENODEV; in getProperties()
109 rc = mHwDevice->get_properties(mHwDevice, &halProperties); in getProperties()
[all …]
/hardware/st/secure_element/ese-spi-driver/
DSpiLayerDriver.cc90 int rc = -1; in SpiLayerDriver_read() local
109 rc = read(spiDeviceId, rxBuffer, bytesToRead); in SpiLayerDriver_read()
111 if (rc < 0) { in SpiLayerDriver_read()
117 STLOG_HAL_E("## SpiRead returns %d errno %d (%s)", rc, e, msg); in SpiLayerDriver_read()
125 } else if (rc > 0) { in SpiLayerDriver_read()
127 return rc; in SpiLayerDriver_read()
140 return rc; in SpiLayerDriver_read()
158 int rc = 0; in SpiLayerDriver_write() local
179 rc = write(spiDeviceId, txBuffer, txBufferLength); in SpiLayerDriver_write()
181 if (rc < 0) { in SpiLayerDriver_write()
[all …]
/hardware/qcom/camera/msm8998/usbcamcore/src/
DQualcommUsbCamera.cpp157 int rc = -1; in usbcam_get_camera_info() local
167 rc = 0; in usbcam_get_camera_info()
170 return rc; in usbcam_get_camera_info()
178 int rc = -1; in usbcam_camera_device_open() local
195 rc = usbCamInitDefaultParameters(camHal); in usbcam_camera_device_open()
196 if(0 != rc) in usbcam_camera_device_open()
199 return rc; in usbcam_camera_device_open()
205 rc = get_uvc_device(dev_name); in usbcam_camera_device_open()
206 if(rc || *dev_name == '\0'){ in usbcam_camera_device_open()
216 rc = -1; in usbcam_camera_device_open()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/common/
Dcam_cond.h22 int rc = 0; \
24 rc = pthread_condattr_init(&cond_attr); \
25 if (rc == 0) { \
26 rc = pthread_condattr_setclock(&cond_attr, CLOCK_MONOTONIC); \
27 if (rc == 0) { \
28 rc = pthread_cond_init(cond, &cond_attr); \
31 rc; \

12345678910>>...14