Home
last modified time | relevance | path

Searched refs:ref_count (Results 1 - 24 of 24) sorted by relevance

/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/umplock/
H A Dumplock_driver.c30 int ref_count; member
144 device.items[i_index].references[ref_index].ref_count = 0; in do_umplock_create_locked()
159 device.items[i_index].references[0].ref_count = 0; in do_umplock_create_locked()
203 device.items[i_index].references[ref_index].ref_count++; in do_umplock_process()
205 PDEBUG(1, "try to lock, pid: %d, secure_id: 0x%x, ref_count: %d\n", lock_cmd->pid, lock_item->secure_id, device.items[i_index].references[ref_index].ref_count); in do_umplock_process()
208 PDEBUG(1, "already own the lock, pid: %d, secure_id: 0x%x, ref_count: %d\n", lock_cmd->pid, lock_item->secure_id, device.items[i_index].references[ref_index].ref_count); in do_umplock_process()
218 device.items[i_index].references[ref_index].ref_count--; in do_umplock_process()
221 if (0 == device.items[i_index].references[ref_index].ref_count) { in do_umplock_process()
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/common/
H A Dump_kernel_ref_drv.c70 _mali_osk_atomic_init(&mem->ref_count, 1); in ump_dd_handle_create_from_phys_blocks()
128 _mali_osk_atomic_init(&new_allocation->ref_count, 1); in _ump_ukk_allocate()
H A Dump_kernel_types.h40 _mali_osk_atomic_t ref_count; member
H A Dump_kernel_api.c137 new_ref = _ump_osk_atomic_inc_and_read(&mem->ref_count); in ump_dd_reference_add()
/device/soc/rockchip/rk3568/hardware/mpp/mpp/legacy/inc/
H A Dmpp_buffer_impl.h63 RK_S32 ref_count; member
110 RK_S32 ref_count; member
H A Dmpp_meta_impl.h47 RK_S32 ref_count; member
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/ump/common/
H A Dump_kernel_types.h41 _mali_osk_atomic_t ref_count; member
/device/soc/rockchip/common/vendor/drivers/pci/
H A Drockchip-pcie-dma.h180 int ref_count; member
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_memory_types.h43 * ref_count is used to mark how many memory backends are using this item.
47 atomic_t ref_count; member
H A Dmali_memory.c47 /* If need to share the allocation, add ref_count here */ in mali_mem_vma_open()
53 /* If need to share the allocation, unref ref_count here */ in mali_mem_vma_close()
446 atomic_inc(&node->swap_it->ref_count); in _mali_page_node_ref()
493 return atomic_read(&node->swap_it->ref_count); in _mali_page_node_get_ref_count()
H A Dmali_memory_swap_alloc.c361 atomic_set(&swap_item->ref_count, 1); in mali_mem_swap_alloc_swap_item()
374 if (0 == atomic_dec_return(&swap_item->ref_count)) { in mali_mem_swap_free_swap_item()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_memory_types.h44 * ref_count is used to mark how many memory backends are using this item.
48 atomic_t ref_count; member
H A Dmali_memory.c45 /* If need to share the allocation, add ref_count here */ in mali_mem_vma_open()
51 /* If need to share the allocation, unref ref_count here */ in mali_mem_vma_close()
444 atomic_inc(&node->swap_it->ref_count); in _mali_page_node_ref()
488 return atomic_read(&node->swap_it->ref_count); in mali_page_node_get_ref_count()
H A Dmali_memory_swap_alloc.c360 atomic_set(&swap_item->ref_count, 1); in mali_mem_swap_alloc_swap_item()
373 if (0 == atomic_dec_return(&swap_item->ref_count)) { in mali_mem_swap_free_swap_item()
/device/soc/rockchip/common/sdk_linux/drivers/pci/controller/
H A Drockchip-pcie-dma.h181 int ref_count; member
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hifb/src/
H A Dhifb_main.h185 atomic_t ref_count; /* framebuffer reference count */ member
H A Dhifb_main.c1531 if (!atomic_read(&par->ref_count)) { in hifb_open_is_cursor_layer()
1535 atomic_set(&par->ref_count, 0); in hifb_open_is_cursor_layer()
1540 atomic_inc(&par->ref_count); in hifb_open_is_cursor_layer()
1624 atomic_set(&par->ref_count, 0); in hifb_open_init_display()
1778 if (!atomic_read(&par->ref_count)) { in hifb_open_start()
1854 atomic_inc(&par->ref_count); in hifb_open()
1948 if (atomic_dec_and_test(&par->ref_count)) { in hifb_release()
6354 cnt = atomic_read(&par->ref_count);
9086 osal_seq_printf(p, "referecce count \t :%d\n", atomic_read(&par->ref_count));
9186 osal_seq_printf(p, "Open count \t :%d\n", atomic_read(&par->ref_count));
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/linux/
H A Dump_kernel_random_mapping.c182 new_ref = _ump_osk_atomic_dec_and_read(&mem->ref_count); in ump_random_mapping_put()
/device/soc/rockchip/rk3588/kernel/include/linux/
H A Drockchip-pcie-dma.h186 int ref_count; member
/device/soc/rockchip/rk3588/kernel/drivers/pci/controller/
H A Drockchip-pcie-dma.h186 int ref_count; member
/device/soc/rockchip/common/vendor/drivers/rockchip/
H A Drockchip_system_monitor.c79 static unsigned long ref_count[32] = {0}; variable
125 if (ref_count[single_status_offset] == 0) { in rockchip_set_system_status()
128 ref_count[single_status_offset]++; in rockchip_set_system_status()
151 if (ref_count[single_status_offset] == 0) { in rockchip_clear_system_status()
154 if (ref_count[single_status_offset] == 1) { in rockchip_clear_system_status()
157 ref_count[single_status_offset]--; in rockchip_clear_system_status()
/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/
H A Drockchip_system_monitor.c81 static unsigned long ref_count[32] = {0}; variable
130 if (ref_count[single_status_offset] == 0) in rockchip_set_system_status()
132 ref_count[single_status_offset]++; in rockchip_set_system_status()
154 if (ref_count[single_status_offset] == 0) { in rockchip_clear_system_status()
157 if (ref_count[single_status_offset] == 1) in rockchip_clear_system_status()
159 ref_count[single_status_offset]--; in rockchip_clear_system_status()
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/
H A Drockchip_drm_vop2.c205 unsigned int ref_count; member
1462 if (pd->ref_count == 0) { in vop2_power_domain_get()
1468 pd->ref_count++; in vop2_power_domain_get()
1492 if (--pd->ref_count == 0 && pd->module_on) { in vop2_power_domain_put()
1507 * Called if the pd ref_count reach 0 after 2.5
1517 if (pd->ref_count == 0) { in vop2_power_domain_off_work()
/device/soc/rockchip/rk3588/kernel/drivers/gpu/drm/rockchip/
H A Drockchip_drm_vop2.c221 unsigned int ref_count; member
1469 if (pd->ref_count == 0) { in vop2_power_domain_get()
1474 pd->ref_count++; in vop2_power_domain_get()
1498 if (--pd->ref_count == 0 && pd->module_on) { in vop2_power_domain_put()
1511 * Called if the pd ref_count reach 0 after 2.5
1521 if (pd->ref_count == 0) in vop2_power_domain_off_work()

Completed in 62 milliseconds