Home
last modified time | relevance | path

Searched refs:user_cnt (Results 1 – 17 of 17) sorted by relevance

/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
Doal_mem.c279 mem->user_cnt = 0; in oal_mem_create_subpool()
463 mem->user_cnt = 1; in oal_mem_alloc_enhanced()
496 if (oal_unlikely(mem->user_cnt == 0)) { in oal_mem_free_enhanced()
500 mem->user_cnt--; in oal_mem_free_enhanced()
502 if (mem->user_cnt != 0) { in oal_mem_free_enhanced()
Doal_mem.h217 hi_u8 user_cnt :4; /* 申请本内存块的用户计数 */ member
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hdmi/src/mkp/
Ddrv_hdmi_intf_k.c181 if (hdmi_dev->kernel_cnt == 0 && hdmi_dev->user_cnt == 0) { in hi_drv_hdmi_csc_param_set()
232 if (hdmi_dev->kernel_cnt == 0 && hdmi_dev->user_cnt == 0) { in hi_drv_hdmi_video_param_set()
303 if (hdmi_dev->kernel_cnt == 0 && hdmi_dev->user_cnt == 0) { in hi_drv_hdmi_set_hdr_attr()
Ddrv_hdmi_intf.h48 hi_u32 user_cnt; member
Ddrv_hdmi_intf.c1289 hdmi_dev->user_cnt = 0;
1434 hdmi_dev->user_cnt++;
1449 hdmi_dev->user_cnt, hdmi_dev->kernel_cnt, hdmi_dev->user_callback_cnt);
1487 if (hdmi_dev->user_cnt == 0) {
1549 hdmi_info("user_cnt: %u, kernel_cnt: %u\n", hdmi_dev->user_cnt, hdmi_dev->kernel_cnt);
1553 if (user && hdmi_dev->user_cnt > 0) {
1562 if (hdmi_dev->user_cnt == 1) {
1569 hdmi_dev->user_cnt--;
1570 if (hdmi_dev->user_cnt == 0 && hdmi_dev->kernel_cnt > 0) {
1587 if (hdmi_dev->user_cnt == 0 && hdmi_dev->kernel_cnt == 0) {
[all …]
Ddrv_hdmi_proc.c614 osal_seq_printf(file, "%-15s: %-20d \n", "UserCnt", hdmi_dev->user_cnt); in proc_sw_status()
Ddrv_hdmi_debug.c3255 if (hdmi_dev->user_cnt == 0 && hdmi_dev->kernel_cnt == 0) { in drv_hdmi_debug_source_write()
/device/soc/amlogic/a311d/soc/amlogic/media/common/codec_mm/
Dcodec_mm_scatter.c1362 ret = atomic_read(&mms->user_cnt); in codec_mm_scatter_free_on_nouser_ext()
1415 old_user = atomic_read(&mms->user_cnt); in codec_mm_scatter_inc_user_in1()
1417 ret = atomic_add_return(cnt, &mms->user_cnt); in codec_mm_scatter_inc_user_in1()
1453 if (atomic_read(&mms->user_cnt) >= 1) { in codec_mm_scatter_dec_user_in1()
1454 after_users = atomic_sub_return(cnt, &mms->user_cnt); in codec_mm_scatter_dec_user_in1()
1539 atomic_set(&mms->user_cnt, 0); in codec_mm_scatter_alloc_new()
1549 atomic_set(&mms->user_cnt, 1000L); in codec_mm_scatter_alloc_new()
1589 if (mms->page_max_cnt >= max_page && atomic_read(&mms->user_cnt) == 0) { in codec_mm_scatter_alloc()
1590 if (atomic_add_return(1000L, &mms->user_cnt) == 1000L) { in codec_mm_scatter_alloc()
1595 atomic_sub(1000L, &mms->user_cnt); in codec_mm_scatter_alloc()
[all …]
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/common/codec_mm/
Dcodec_mm_scatter.c1580 ret = atomic_read(&mms->user_cnt); in codec_mm_scatter_free_on_nouser_ext()
1640 old_user = atomic_read(&mms->user_cnt); in codec_mm_scatter_inc_user_in1()
1642 ret = atomic_add_return(cnt, &mms->user_cnt); in codec_mm_scatter_inc_user_in1()
1684 if (atomic_read(&mms->user_cnt) >= 1) { in codec_mm_scatter_dec_user_in1()
1685 after_users = atomic_sub_return(cnt, &mms->user_cnt); in codec_mm_scatter_dec_user_in1()
1787 atomic_set(&mms->user_cnt, 0); in codec_mm_scatter_alloc_new()
1798 atomic_set(&mms->user_cnt, 1000); in codec_mm_scatter_alloc_new()
1841 atomic_read(&mms->user_cnt) == 0) { in codec_mm_scatter_alloc()
1843 &mms->user_cnt) == 1000) { in codec_mm_scatter_alloc()
1848 atomic_sub(1000, &mms->user_cnt); in codec_mm_scatter_alloc()
[all …]
/device/soc/amlogic/a311d/soc/include/linux/amlogic/media/codec_mm/
Dcodec_mm_scatter.h43 atomic_t user_cnt; member
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/include/linux/amlogic/media/codec_mm/
Dcodec_mm_scatter.h44 atomic_t user_cnt; member
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/g2d/g2d_legacy/
Dg2d_driver_i.h59 __u32 user_cnt; member
Dg2d_driver.c503 para.user_cnt++; in g2d_open()
504 if (para.user_cnt == 1) { in g2d_open()
519 para.user_cnt--; in g2d_release()
520 if (para.user_cnt == 0) { in g2d_release()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/g2d/g2d_rcq/
Dg2d_driver_i.h65 __u32 user_cnt; member
Dg2d.c460 para.user_cnt++; in g2d_open()
461 if (para.user_cnt == 1) { in g2d_open()
475 para.user_cnt--; in g2d_release()
476 if (para.user_cnt == 0) { in g2d_release()
/device/soc/chipsea/cst85/liteos_m/sdk/modules/wifi/macif/
Dwifi_tx_swdesc.h310 uint8_t user_cnt; member
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/frw/
Dfrw_event.c631 event_mem->user_cnt++; in frw_event_post_event()