Home
last modified time | relevance | path

Searched refs:ref_cnt (Results 1 – 8 of 8) sorted by relevance

/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/
Dvk_descriptor_set_layout.h54 uint32_t ref_cnt; member
72 assert(layout && layout->ref_cnt >= 1); in vk_descriptor_set_layout_ref()
73 p_atomic_inc(&layout->ref_cnt); in vk_descriptor_set_layout_ref()
81 assert(layout && layout->ref_cnt >= 1); in vk_descriptor_set_layout_unref()
82 if (p_atomic_dec_zero(&layout->ref_cnt)) in vk_descriptor_set_layout_unref()
Dvk_pipeline_layout.h55 uint32_t ref_cnt; member
94 assert(layout && layout->ref_cnt >= 1); in vk_pipeline_layout_ref()
95 p_atomic_inc(&layout->ref_cnt); in vk_pipeline_layout_ref()
103 assert(layout && layout->ref_cnt >= 1); in vk_pipeline_layout_unref()
104 if (p_atomic_dec_zero(&layout->ref_cnt)) in vk_pipeline_layout_unref()
Dvk_pipeline_cache.h111 uint32_t ref_cnt; member
126 p_atomic_set(&object->ref_cnt, 1); in vk_pipeline_cache_object_init()
135 assert(p_atomic_read(&object->ref_cnt) <= 1); in vk_pipeline_cache_object_finish()
141 assert(object && p_atomic_read(&object->ref_cnt) >= 1); in vk_pipeline_cache_object_ref()
142 p_atomic_inc(&object->ref_cnt); in vk_pipeline_cache_object_ref()
Dvk_pipeline_layout.c44 layout->ref_cnt = 1; in vk_pipeline_layout_init()
116 assert(layout && layout->ref_cnt == 0); in vk_pipeline_layout_destroy()
Dvk_descriptor_set_layout.c37 layout->ref_cnt = 1; in vk_descriptor_set_layout_init()
Dvk_pipeline_cache.c181 assert(object && p_atomic_read(&object->ref_cnt) >= 1); in vk_pipeline_cache_object_unref()
185 if (p_atomic_dec_zero(&object->ref_cnt)) in vk_pipeline_cache_object_unref()
189 bool destroy = p_atomic_dec_zero(&object->ref_cnt); in vk_pipeline_cache_object_unref()
274 assert(object->ref_cnt == 1); in vk_pipeline_cache_object_deserialize()
305 assert(object->ref_cnt == 1); in vk_pipeline_cache_insert_object()
/hardware/qcom/audio/hal/audio_extn/
Dtfa_98xx.c70 int ref_cnt[Audio_Mode_Max]; member
327 if ((new_audio_mode == Audio_Mode_None) || (data->ref_cnt[new_audio_mode] <= 0)) { in audio_extn_tfa_98xx_disable_speaker()
332 data->ref_cnt[new_audio_mode]--; in audio_extn_tfa_98xx_disable_speaker()
335 if (data->ref_cnt[i] > 0) { in audio_extn_tfa_98xx_disable_speaker()
364 if ((new_audio_mode != Audio_Mode_None) && (data->ref_cnt[new_audio_mode] >= 1)) { in audio_extn_tfa_98xx_enable_speaker()
366 data->ref_cnt[new_audio_mode]++; in audio_extn_tfa_98xx_enable_speaker()
384 data->ref_cnt[i] = data->route_cnt[i]; in audio_extn_tfa_98xx_enable_speaker()
448 data->ref_cnt[new_audio_mode]++; in audio_extn_tfa_98xx_update()
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCamera2HWI.cpp2893 uint8_t ref_cnt = 1; in getStreamRefCount() local
2896 return ref_cnt; in getStreamRefCount()
2907 ref_cnt++; in getStreamRefCount()
2918 return ref_cnt; in getStreamRefCount()