Searched refs:usecount (Results 1 – 17 of 17) sorted by relevance
| /linux/drivers/gpu/drm/display/ |
| H A D | drm_dp_aux_dev.c | 50 atomic_t usecount; member 82 atomic_set(&aux_dev->usecount, 1); in alloc_drm_dp_aux_dev() 152 if (!atomic_inc_not_zero(&aux_dev->usecount)) in auxdev_read_iter() 183 if (atomic_dec_and_test(&aux_dev->usecount)) in auxdev_read_iter() 184 wake_up_var(&aux_dev->usecount); in auxdev_read_iter() 195 if (!atomic_inc_not_zero(&aux_dev->usecount)) in auxdev_write_iter() 226 if (atomic_dec_and_test(&aux_dev->usecount)) in auxdev_write_iter() 227 wake_up_var(&aux_dev->usecount); in auxdev_write_iter() 291 atomic_dec(&aux_dev->usecount); in drm_dp_aux_unregister_devnode() 292 wait_var_event(&aux_dev->usecount, !atomic_read(&aux_dev->usecount)); in drm_dp_aux_unregister_devnode()
|
| /linux/fs/jffs2/ |
| H A D | compr.c | 103 this->usecount++; in jffs2_selected_compress() 111 this->usecount--; in jffs2_selected_compress() 202 this->usecount++; in jffs2_compress() 208 this->usecount--; in jffs2_compress() 278 this->usecount++; in jffs2_decompress() 289 this->usecount--; in jffs2_decompress() 311 comp->usecount=0; in jffs2_register_compressor() 345 if (comp->usecount) { in jffs2_unregister_compressor()
|
| H A D | compr.h | 57 int usecount; member
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | st.c | 13 refcount_t usecount; member 121 refcount_inc(&idx_data->usecount); in mlx5_st_alloc_index() 133 refcount_set(&idx_data->usecount, 1); in mlx5_st_alloc_index() 176 if (refcount_dec_and_test(&idx_data->usecount)) { in mlx5_st_dealloc_index()
|
| /linux/drivers/sh/clk/ |
| H A D | core.c | 240 if (WARN(!clk->usecount, "Trying to disable clock %p with 0 usecount\n", in __clk_disable() 244 if (!(--clk->usecount)) { in __clk_disable() 269 if (clk->usecount++ == 0) { in __clk_enable() 288 clk->usecount--; in __clk_enable() 427 clk->usecount = 0; in clk_register() 522 if (clk->usecount == 0) { in clk_set_parent() 577 if (likely(clkp->usecount && clkp->ops)) { in clks_core_resume() 618 if (!clk->usecount && clk->ops && clk->ops->disable) in clk_late_init()
|
| /linux/arch/arm/mach-omap2/ |
| H A D | clockdomain.c | 955 if (!clkdm->usecount && (clkdm->flags & CLKDM_CAN_FORCE_SLEEP)) in clkdm_allow_idle_nolock() 1136 clkdm->usecount++; in clkdm_clk_enable() 1137 if (clkdm->usecount > 1 && autodeps) { in clkdm_clk_enable() 1172 if (clk && (__clk_get_enable_count(clk) == 0) && clkdm->usecount == 0) in clkdm_clk_disable() 1175 if (clkdm->usecount == 0) { in clkdm_clk_disable() 1181 clkdm->usecount--; in clkdm_clk_disable() 1182 if (clkdm->usecount > 0) { in clkdm_clk_disable()
|
| H A D | clockdomain.h | 139 int usecount; member
|
| H A D | pm-debug.c | 77 clkdm->usecount); in clkdm_dbg_show_counter()
|
| H A D | cm3xxx.c | 205 if (clkdm->usecount > 0) in omap3xxx_clkdm_allow_idle() 217 if (clkdm->usecount > 0) in omap3xxx_clkdm_deny_idle()
|
| /linux/drivers/devfreq/event/ |
| H A D | rockchip-dfi.c | 102 int usecount; member 177 dfi->usecount++; in rockchip_dfi_enable() 178 if (dfi->usecount > 1) in rockchip_dfi_enable() 225 dfi->usecount--; in rockchip_dfi_disable() 227 WARN_ON_ONCE(dfi->usecount < 0); in rockchip_dfi_disable() 229 if (dfi->usecount > 0) in rockchip_dfi_disable()
|
| /linux/include/linux/mtd/ |
| H A D | nftl.h | 25 int usecount; member
|
| H A D | inftl.h | 33 int usecount; member
|
| /linux/include/linux/ |
| H A D | sh_clk.h | 50 int usecount; member
|
| H A D | host1x.h | 112 unsigned int usecount; member
|
| /linux/drivers/infiniband/hw/mlx5/ |
| H A D | odp.c | 244 if (!refcount_inc_not_zero(&imr->mmkey.usecount)) in destroy_unused_implicit_child_mr() 503 refcount_set(&mr->mmkey.usecount, 2); in implicit_get_child_mr() 527 refcount_inc(&ret->mmkey.usecount); in implicit_get_child_mr() 780 refcount_inc(&mtt->mmkey.usecount); in pagefault_implicit_mr() 983 refcount_inc(&mmkey->usecount); in find_odp_mkey() 2000 refcount_inc(&mmkey->usecount); in get_prefetchable_mr()
|
| /linux/drivers/video/fbdev/matrox/ |
| H A D | matroxfb_base.h | 344 unsigned int usecount; member
|
| /linux/drivers/char/ipmi/ |
| H A D | ipmi_msghandler.c | 300 struct kref usecount; member 2970 rv = kref_get_unless_zero(&bmc->usecount); in __find_bmc_guid() 3009 rv = kref_get_unless_zero(&bmc->usecount); in __find_bmc_prod_dev_id() 3056 struct bmc_device *bmc = container_of(ref, struct bmc_device, usecount); in cleanup_bmc_device() 3085 kref_put(&bmc->usecount, cleanup_bmc_device); in __ipmi_bmc_unregister() 3176 kref_init(&bmc->usecount); in __ipmi_bmc_register() 3247 kref_put(&bmc->usecount, cleanup_bmc_device); in __ipmi_bmc_register()
|