Home
last modified time | relevance | path

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

123

/aosp12/hardware/google/gchips/gralloc3/src/
H A Dmali_gralloc_reference.cpp50 hnd->ref_count++; in mali_gralloc_reference_retain()
57 hnd->ref_count = 1; in mali_gralloc_reference_retain()
100 if (hnd->ref_count == 0) in mali_gralloc_reference_release()
109 hnd->ref_count--; in mali_gralloc_reference_release()
111 if (hnd->ref_count == 0 && canFree) in mali_gralloc_reference_release()
131 hnd->ref_count--; in mali_gralloc_reference_release()
133 if (hnd->ref_count == 0) in mali_gralloc_reference_release()
H A Dmali_gralloc_buffer.h245 int ref_count; member
316 , ref_count(1) in private_handle_t()
366 , ref_count(1) in private_handle_t()
/aosp12/hardware/google/gchips/gralloc4/src/core/
H A 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()
/aosp12/hardware/qcom/sdm845/display/gralloc/
H A 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()
/aosp12/system/bt/gd/l2cap/le/internal/
H A Dlink.cc239 int ref_count = 0; in RefreshRefCount() local
240 ref_count += fixed_channel_allocator_.GetRefCount(); in RefreshRefCount()
241 ref_count += dynamic_channel_allocator_.NumberOfChannels(); in RefreshRefCount()
242 ASSERT_LOG(ref_count >= 0, "ref_count %d is less than 0", ref_count); in RefreshRefCount()
243 if (ref_count > 0) { in RefreshRefCount()
/aosp12/system/bt/gd/l2cap/internal/
H A Dfixed_channel_allocator.h87 int ref_count = 0; in GetRefCount() local
90 ref_count++; in GetRefCount()
93 return ref_count; in GetRefCount()
/aosp12/hardware/qcom/sm7250/display/gralloc/
H A 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()
/aosp12/hardware/qcom/sm8150/display/gralloc/
H A 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()
/aosp12/system/bt/gd/l2cap/classic/internal/
H A Dlink.cc260 int ref_count = 0; in RefreshRefCount() local
261 ref_count += fixed_channel_allocator_.GetRefCount(); in RefreshRefCount()
262 ref_count += dynamic_channel_allocator_.NumberOfChannels(); in RefreshRefCount()
264 ref_count += 1; in RefreshRefCount()
266 ASSERT_LOG(ref_count >= 0, "ref_count %d is less than 0", ref_count); in RefreshRefCount()
267 if (ref_count > 0) { in RefreshRefCount()
/aosp12/hardware/qcom/display/msm8909w_3100/libgralloc1/
H A 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()
/aosp12/hardware/qcom/display/msm8996/libgralloc1/
H A 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()
/aosp12/hardware/qcom/display/msm8998/libgralloc1/
H A 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()
/aosp12/hardware/qcom/display/msm8909/gralloc/
H A 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()
/aosp12/hardware/qcom/bt/msm8992/libbt-vendor/src/
H A 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()
/aosp12/hardware/qcom/bt/msm8909/libbt-vendor/src/
H A 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()
/aosp12/hardware/qcom/bt/msm8996/libbt-vendor/src/
H A 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()
/aosp12/hardware/qcom/bt/msm8909w_3100/libbt-vendor/src/
H A 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()
/aosp12/hardware/qcom/bt/msm8998/libbt-vendor/src/
H A 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()
/aosp12/hardware/qcom/sdm845/bt/libbt-vendor/src/
H A 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()
/aosp12/hardware/google/gchips/gralloc4/src/
H A Dmali_gralloc_buffer.h213 int ref_count DEFAULT_INITIALIZER(0);
260 , ref_count(1) in private_handle_t()
H A Dmali_gralloc_buffer4.h213 int ref_count DEFAULT_INITIALIZER(0);
260 , ref_count(1) in private_handle_t()
/aosp12/bionic/libc/kernel/uapi/linux/
H A Datm_zatm.h27 int ref_count; member
/aosp12/hardware/libhardware/modules/audio_remote_submix/
H A Daudio_hw.cpp203 volatile int32_t ref_count; member
494 const_cast<struct submix_stream_in*>(in)->ref_count--; in audio_config_compare()
497 if (in->ref_count == 0) { in audio_config_compare()
501 ALOGV("submix_audio_device_destroy_pipe_l(): input ref_count %d", in->ref_count); in audio_config_compare()
1664 in->ref_count++; in audio_config_compare()
1671 in->ref_count); in audio_config_compare()
1674 ALOGD(" Non-NULL sink when opening input stream, refcount=%d", in->ref_count); in audio_config_compare()
1677 ALOGE("NULL sink when opening input stream, refcount=%d", in->ref_count); in audio_config_compare()
1688 in->ref_count = 1; in audio_config_compare()
1764 if (in->ref_count == 0) free(in); in audio_config_compare()
/aosp12/frameworks/compile/slang/lit-tests/P_ref_count/
H A Dref_count.rscript5 #pragma rs java_package_name(ref_count)
/aosp12/hardware/google/gchips/include/
H A Dgralloc1_priv.h294 int ref_count; member

123