Home
last modified time | relevance | path

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

/drivers/gpu/drm/
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()
/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()
/drivers/gpu/host1x/
Dbus.c747 client->usecount = 0; in __host1x_client_init()
843 if (client->usecount == 1) { in host1x_client_suspend()
851 client->usecount--; in host1x_client_suspend()
852 dev_dbg(client->dev, "use count: %u\n", client->usecount); in host1x_client_suspend()
863 if (client->usecount == 0) in host1x_client_suspend()
867 client->usecount++; in host1x_client_suspend()
886 if (client->usecount == 0) { in host1x_client_resume()
894 client->usecount++; in host1x_client_resume()
895 dev_dbg(client->dev, "use count: %u\n", client->usecount); in host1x_client_resume()
/drivers/gpu/drm/tegra/
Dhub.h16 unsigned int usecount; member
Dhub.c116 if (wgrp->usecount == 0) { in tegra_windowgroup_enable()
126 wgrp->usecount++; in tegra_windowgroup_enable()
139 if (wgrp->usecount == 1) { in tegra_windowgroup_disable()
149 wgrp->usecount--; in tegra_windowgroup_disable()
1099 wgrp->usecount = 0; in tegra_display_hub_probe()
/drivers/mtd/
Dmtdcore.c626 mtd->usecount = 0; in add_mtd_device()
740 if (mtd->usecount) { in del_mtd_device()
742 mtd->index, mtd->name, mtd->usecount); in del_mtd_device()
1166 master->usecount++; in __get_mtd_device()
1169 mtd->usecount++; in __get_mtd_device()
1229 --mtd->usecount; in __put_mtd_device()
1230 BUG_ON(mtd->usecount < 0); in __put_mtd_device()
1234 master->usecount--; in __put_mtd_device()
Dssfdc.c21 int usecount; member
/drivers/gpu/drm/nouveau/include/nvkm/engine/
Dfifo.h15 int usecount; member
/drivers/infiniband/hw/mlx5/
Dodp.c216 if (!refcount_inc_not_zero(&imr->mmkey.usecount)) in destroy_unused_implicit_child_mr()
441 refcount_set(&mr->mmkey.usecount, 2); in implicit_get_child_mr()
465 refcount_inc(&ret->mmkey.usecount); in implicit_get_child_mr()
637 refcount_inc(&mtt->mmkey.usecount); in pagefault_implicit_mr()
864 refcount_inc(&mmkey->usecount); in pagefault_single_data_segment()
1729 refcount_inc(&mmkey->usecount); in get_prefetchable_mr()
Dmlx5_ib.h1584 refcount_set(&mmkey->usecount, 1); in mlx5r_store_odp_mkey()
1593 if (refcount_dec_and_test(&mmkey->usecount)) in mlx5r_deref_odp_mkey()
1601 wait_event(mmkey->wait, refcount_read(&mmkey->usecount) == 0); in mlx5r_deref_wait_odp_mkey()
Dmr.c1946 refcount_read(&mr->mmkey.usecount) != 0 && in mlx5_ib_dereg_mr()
/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dchan.c58 if (--engn->usecount) in nvkm_fifo_chan_child_fini()
91 if (engn->usecount++) in nvkm_fifo_chan_child_init()
/drivers/gpu/ipu-v3/
Dipu-prv.h181 int usecount; member
/drivers/char/ipmi/
Dipmi_msghandler.c310 struct kref usecount; member
2844 rv = kref_get_unless_zero(&bmc->usecount); in __find_bmc_guid()
2883 rv = kref_get_unless_zero(&bmc->usecount); in __find_bmc_prod_dev_id()
2930 struct bmc_device *bmc = container_of(ref, struct bmc_device, usecount); in cleanup_bmc_device()
2959 kref_put(&bmc->usecount, cleanup_bmc_device); in __ipmi_bmc_unregister()
3050 kref_init(&bmc->usecount); in __ipmi_bmc_register()
3121 kref_put(&bmc->usecount, cleanup_bmc_device); in __ipmi_bmc_register()
/drivers/video/fbdev/matrox/
Dmatroxfb_base.h345 unsigned int usecount; member
Dmatroxfb_base.c367 if (minfo->usecount) { in matroxfb_remove()
395 minfo->usecount++; in matroxfb_open()
413 if (!(--minfo->usecount) && minfo->dead) { in matroxfb_release()
2074 minfo->usecount = 0; in matroxfb_probe()
/drivers/mtd/maps/
Dvmu-flash.c722 if (mtd->usecount > 0) in vmu_can_unload()