Home
last modified time | relevance | path

Searched refs:ref_count (Results 1 – 25 of 47) sorted by relevance

12

/hardware/google/gchips/GrallocHAL/src/core/
Dmali_gralloc_reference.cpp45 hnd->ref_count++; in mali_gralloc_reference_retain()
50 hnd->ref_count = 1; in mali_gralloc_reference_retain()
104 if (hnd->ref_count == 0) in mali_gralloc_reference_release()
113 hnd->ref_count--; in mali_gralloc_reference_release()
115 if (hnd->ref_count == 0 && canFree) in mali_gralloc_reference_release()
123 hnd->ref_count--; in mali_gralloc_reference_release()
125 if (hnd->ref_count == 0) in mali_gralloc_reference_release()
/hardware/google/gchips/gralloc4/src/core/
Dmali_gralloc_reference.cpp43 uint64_t ref_count = 0; member
120 if (data.ref_count == 0) { in map_locked()
210 } else if (it->second->ref_count == 0) { in retain()
215 data.ref_count++; in retain()
250 if (data.ref_count == 0) { in release()
255 data.ref_count--; in release()
256 if (data.ref_count == 0) { in release()
/hardware/qcom/sdm845/display/gralloc/
Dgr_buf_mgr.h71 int ref_count = 1; member
81 void IncRef() { ++ref_count; } in IncRef()
82 bool DecRef() { return --ref_count == 0; } in DecRef()
/hardware/qcom/sm7250/display/gralloc/
Dgr_buf_mgr.h80 int ref_count = 1; member
90 void IncRef() { ++ref_count; } in IncRef()
91 bool DecRef() { return --ref_count == 0; } in DecRef()
/hardware/qcom/sm8150/display/gralloc/
Dgr_buf_mgr.h79 int ref_count = 1; member
89 void IncRef() { ++ref_count; } in IncRef()
90 bool DecRef() { return --ref_count == 0; } in DecRef()
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_buf_mgr.h98 int ref_count = 1; member
111 void IncRef() { ++ref_count; } in IncRef()
112 bool DecRef() { return --ref_count == 0; } in DecRef()
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_buf_mgr.h98 int ref_count = 1; member
111 void IncRef() { ++ref_count; } in IncRef()
112 bool DecRef() { return --ref_count == 0; } in DecRef()
/hardware/qcom/display/msm8909/gralloc/
Dgr_buf_mgr.h98 int ref_count = 1; member
111 void IncRef() { ++ref_count; } in IncRef()
112 bool DecRef() { return --ref_count == 0; } in DecRef()
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_buf_mgr.h98 int ref_count = 1; member
111 void IncRef() { ++ref_count; } in IncRef()
112 bool DecRef() { return --ref_count == 0; } in DecRef()
/hardware/qcom/bt/msm8992/libbt-vendor/src/
Dbt_vendor_qcom.c225 char ref_count[PROPERTY_VALUE_MAX]; in can_perform_action() local
228 property_get("wc_transport.ref_count", ref_count, "0"); in can_perform_action()
230 value = atoi(ref_count); in can_perform_action()
231 ALOGV("%s: ref_count: %s\n",__func__, ref_count); in can_perform_action()
258 snprintf(ref_count, 3, "%d", value); in can_perform_action()
259 ALOGV("%s: updated ref_count is: %s", __func__, ref_count); in can_perform_action()
261 ret = property_set("wc_transport.ref_count", ref_count); in can_perform_action()
/hardware/qcom/bt/msm8909/libbt-vendor/src/
Dbt_vendor_qcom.c231 char ref_count[PROPERTY_VALUE_MAX]; in can_perform_action() local
235 property_get("wc_transport.ref_count", ref_count, "0"); in can_perform_action()
237 value = atoi(ref_count); in can_perform_action()
238 ALOGV("%s: ref_count: %s\n",__func__, ref_count); in can_perform_action()
270 snprintf(ref_count, 3, "%d", value); in can_perform_action()
271 ALOGV("%s: updated ref_count is: %s", __func__, ref_count); in can_perform_action()
273 ret = property_set("wc_transport.ref_count", ref_count); in can_perform_action()
/hardware/qcom/bt/msm8996/libbt-vendor/src/
Dbt_vendor_qcom.c247 char ref_count[PROPERTY_VALUE_MAX]; in can_perform_action() local
251 property_get("wc_transport.ref_count", ref_count, "0"); in can_perform_action()
253 value = atoi(ref_count); in can_perform_action()
254 ALOGV("%s: ref_count: %s\n",__func__, ref_count); in can_perform_action()
286 snprintf(ref_count, 3, "%d", value); in can_perform_action()
287 ALOGV("%s: updated ref_count is: %s", __func__, ref_count); in can_perform_action()
289 ret = property_set("wc_transport.ref_count", ref_count); in can_perform_action()
/hardware/qcom/bt/msm8909w_3100/libbt-vendor/src/
Dbt_vendor_qcom.c225 char ref_count[PROPERTY_VALUE_MAX]; in can_perform_action() local
229 property_get("wc_transport.ref_count", ref_count, "0"); in can_perform_action()
231 value = atoi(ref_count); in can_perform_action()
232 ALOGV("%s: ref_count: %s\n",__func__, ref_count); in can_perform_action()
265 snprintf(ref_count, 3, "%d", value); in can_perform_action()
266 ALOGV("%s: updated ref_count is: %s", __func__, ref_count); in can_perform_action()
268 ret = property_set("wc_transport.ref_count", ref_count); in can_perform_action()
/hardware/qcom/sdm845/bt/libbt-vendor/src/
Dbt_vendor_qcom.c229 char ref_count[PROPERTY_VALUE_MAX]; in can_perform_action() local
233 property_get("wc_transport.ref_count", ref_count, "0"); in can_perform_action()
235 value = atoi(ref_count); in can_perform_action()
236 ALOGV("%s: ref_count: %s\n",__func__, ref_count); in can_perform_action()
269 snprintf(ref_count, 3, "%d", value); in can_perform_action()
270 ALOGV("%s: updated ref_count is: %s", __func__, ref_count); in can_perform_action()
272 ret = property_set("wc_transport.ref_count", ref_count); in can_perform_action()
/hardware/qcom/bt/msm8998/libbt-vendor/src/
Dbt_vendor_qcom.c229 char ref_count[PROPERTY_VALUE_MAX]; in can_perform_action() local
233 property_get("wc_transport.ref_count", ref_count, "0"); in can_perform_action()
235 value = atoi(ref_count); in can_perform_action()
236 ALOGV("%s: ref_count: %s\n",__func__, ref_count); in can_perform_action()
269 snprintf(ref_count, 3, "%d", value); in can_perform_action()
270 ALOGV("%s: updated ref_count is: %s", __func__, ref_count); in can_perform_action()
272 ret = property_set("wc_transport.ref_count", ref_count); in can_perform_action()
/hardware/google/gchips/GrallocHAL/src/
Dmali_gralloc_buffer4.h220 int ref_count DEFAULT_INITIALIZER(0);
269 ref_count = 1; in private_handle_t()
Dmali_gralloc_buffer.h220 int ref_count DEFAULT_INITIALIZER(0);
269 ref_count = 1; in private_handle_t()
/hardware/libhardware/modules/audio_remote_submix/
Daudio_hw.cpp190 volatile int32_t ref_count; member
455 const_cast<struct submix_stream_in*>(in)->ref_count--; in submix_audio_device_destroy_pipe_l()
458 if (in->ref_count == 0) { in submix_audio_device_destroy_pipe_l()
462 ALOGV("submix_audio_device_destroy_pipe_l(): input ref_count %d", in->ref_count); in submix_audio_device_destroy_pipe_l()
1480 in->ref_count++; in adev_open_input_stream()
1487 in->ref_count); in adev_open_input_stream()
1490 ALOGD(" Non-NULL sink when opening input stream, refcount=%d", in->ref_count); in adev_open_input_stream()
1493 ALOGE("NULL sink when opening input stream, refcount=%d", in->ref_count); in adev_open_input_stream()
1504 in->ref_count = 1; in adev_open_input_stream()
1582 if (in->ref_count == 0) free(in); in adev_close_input_stream()
/hardware/google/gchips/include/
Dgralloc1_priv.h294 int ref_count; member
Dgralloc3_priv.h294 int ref_count; member
/hardware/qcom/camera/msm8998/QCamera2/stack/common/
Dmm_jpeg_interface.h282 int32_t ref_count; member
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/inc/
Domx_swvdec.h130 unsigned int ref_count; ///< reference count member
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_interface.c628 my_obj->ref_count--; in mm_camera_intf_close()
629 if(my_obj->ref_count > 0) { in mm_camera_intf_close()
631 LOGD("ref_count=%d\n", my_obj->ref_count); in mm_camera_intf_close()
3184 g_cam_ctrl.cam_obj[cam_idx]->ref_count != 0) { in camera_open()
3201 cam_obj->ref_count++; in camera_open()
3230 g_cam_ctrl.cam_obj[aux_idx]->ref_count != 0) { in camera_open()
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/vdec/inc/
Domx_swvdec.h130 int ref_count; ///< reference count member
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/vdec/inc/
Domx_swvdec.h135 int ref_count; ///< reference count member

12