Home
last modified time | relevance | path

Searched refs:usecount (Results 1 – 23 of 23) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/display/
Ddrm_dp_aux_dev.c50 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-6.12.1/fs/jffs2/
Dcompr.c103 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()
Dcompr.h57 int usecount; member
/linux-6.12.1/drivers/sh/clk/
Dcore.c240 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()
614 if (!clk->usecount && clk->ops && clk->ops->disable) in clk_late_init()
/linux-6.12.1/drivers/gpu/host1x/
Dbus.c724 client->usecount = 0; in __host1x_client_init()
819 if (client->usecount == 1) { in host1x_client_suspend()
827 client->usecount--; in host1x_client_suspend()
828 dev_dbg(client->dev, "use count: %u\n", client->usecount); in host1x_client_suspend()
839 if (client->usecount == 0) in host1x_client_suspend()
843 client->usecount++; in host1x_client_suspend()
862 if (client->usecount == 0) { in host1x_client_resume()
870 client->usecount++; in host1x_client_resume()
871 dev_dbg(client->dev, "use count: %u\n", client->usecount); in host1x_client_resume()
/linux-6.12.1/arch/arm/mach-omap2/
Dclockdomain.c955 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()
Dclockdomain.h138 int usecount; member
Dpm-debug.c77 clkdm->usecount); in clkdm_dbg_show_counter()
Dcm3xxx.c205 if (clkdm->usecount > 0) in omap3xxx_clkdm_allow_idle()
217 if (clkdm->usecount > 0) in omap3xxx_clkdm_deny_idle()
/linux-6.12.1/drivers/devfreq/event/
Drockchip-dfi.c104 int usecount; member
128 dfi->usecount++; in rockchip_dfi_enable()
129 if (dfi->usecount > 1) in rockchip_dfi_enable()
186 dfi->usecount--; in rockchip_dfi_disable()
188 WARN_ON_ONCE(dfi->usecount < 0); in rockchip_dfi_disable()
190 if (dfi->usecount > 0) in rockchip_dfi_disable()
/linux-6.12.1/include/linux/mtd/
Dnftl.h25 int usecount; member
Dinftl.h33 int usecount; member
/linux-6.12.1/drivers/gpu/drm/tegra/
Dhub.h16 unsigned int usecount; member
Dhub.c119 if (wgrp->usecount == 0) { in tegra_windowgroup_enable()
129 wgrp->usecount++; in tegra_windowgroup_enable()
142 if (wgrp->usecount == 1) { in tegra_windowgroup_disable()
152 wgrp->usecount--; in tegra_windowgroup_disable()
1107 wgrp->usecount = 0; in tegra_display_hub_probe()
/linux-6.12.1/include/linux/
Dsh_clk.h50 int usecount; member
Dhost1x.h107 unsigned int usecount; member
/linux-6.12.1/drivers/infiniband/hw/mlx5/
Dodp.c231 if (!refcount_inc_not_zero(&imr->mmkey.usecount)) in destroy_unused_implicit_child_mr()
476 refcount_set(&mr->mmkey.usecount, 2); in implicit_get_child_mr()
500 refcount_inc(&ret->mmkey.usecount); in implicit_get_child_mr()
751 refcount_inc(&mtt->mmkey.usecount); in pagefault_implicit_mr()
937 refcount_inc(&mmkey->usecount); in find_odp_mkey()
1939 refcount_inc(&mmkey->usecount); in get_prefetchable_mr()
Dmlx5_ib.h648 refcount_t usecount; member
1626 refcount_set(&mmkey->usecount, 1); in mlx5r_store_odp_mkey()
1635 if (refcount_dec_and_test(&mmkey->usecount)) in mlx5r_deref_odp_mkey()
1643 wait_event(mmkey->wait, refcount_read(&mmkey->usecount) == 0); in mlx5r_deref_wait_odp_mkey()
Dmr.c2059 refcount_read(&mr->mmkey.usecount) != 0 && in __mlx5_ib_dereg_mr()
/linux-6.12.1/drivers/gpu/ipu-v3/
Dipu-prv.h182 int usecount; member
/linux-6.12.1/drivers/video/fbdev/matrox/
Dmatroxfb_base.h344 unsigned int usecount; member
Dmatroxfb_base.c368 if (minfo->usecount) { in matroxfb_remove()
396 minfo->usecount++; in matroxfb_open()
414 if (!(--minfo->usecount) && minfo->dead) { in matroxfb_release()
2081 minfo->usecount = 0; in matroxfb_probe()
/linux-6.12.1/drivers/char/ipmi/
Dipmi_msghandler.c324 struct kref usecount; member
2976 rv = kref_get_unless_zero(&bmc->usecount); in __find_bmc_guid()
3015 rv = kref_get_unless_zero(&bmc->usecount); in __find_bmc_prod_dev_id()
3062 struct bmc_device *bmc = container_of(ref, struct bmc_device, usecount); in cleanup_bmc_device()
3091 kref_put(&bmc->usecount, cleanup_bmc_device); in __ipmi_bmc_unregister()
3182 kref_init(&bmc->usecount); in __ipmi_bmc_register()
3253 kref_put(&bmc->usecount, cleanup_bmc_device); in __ipmi_bmc_register()