Home
last modified time | relevance | path

Searched refs:usecount (Results 1 - 25 of 56) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/gpu/drm/
H A 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()
285 atomic_dec(&aux_dev->usecount); in drm_dp_aux_unregister_devnode()
286 wait_var_event(&aux_dev->usecount, !atomic_rea in drm_dp_aux_unregister_devnode()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/display/
H A 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_rea in drm_dp_aux_unregister_devnode()
[all...]
/kernel/linux/linux-5.10/fs/jffs2/
H A 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()
H A Dcompr.h57 int usecount; member
/kernel/linux/linux-6.6/fs/jffs2/
H A 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()
H A Dcompr.h57 int usecount; member
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/core/
H A Dengine.c44 if (--engine->usecount == 0) in nvkm_engine_unref()
56 if (++engine->usecount == 1) { in nvkm_engine_ref()
59 engine->usecount--; in nvkm_engine_ref()
117 if (!engine->usecount) { in nvkm_engine_init()
/kernel/linux/linux-5.10/drivers/sh/clk/
H A 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()
/kernel/linux/linux-6.6/drivers/sh/clk/
H A 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()
/kernel/linux/linux-5.10/drivers/gpu/host1x/
H A Dbus.c715 client->usecount = 0; in __host1x_client_init()
811 if (client->usecount == 1) { in host1x_client_suspend()
819 client->usecount--; in host1x_client_suspend()
820 dev_dbg(client->dev, "use count: %u\n", client->usecount); in host1x_client_suspend()
831 if (client->usecount == 0) in host1x_client_suspend()
835 client->usecount++; in host1x_client_suspend()
854 if (client->usecount == 0) { in host1x_client_resume()
862 client->usecount++; in host1x_client_resume()
863 dev_dbg(client->dev, "use count: %u\n", client->usecount); in host1x_client_resume()
/kernel/linux/linux-5.10/arch/arm/mach-omap1/
H A Dclock.c413 if (clk->usecount++ == 0) { in omap1_clk_enable()
433 clk->usecount--; in omap1_clk_enable()
439 if (clk->usecount > 0 && !(--clk->usecount)) { in omap1_clk_disable()
634 if (clk->usecount == 0) { in clk_disable()
635 pr_err("Trying disable clock %s with 0 usecount\n", in clk_disable()
945 if (ck->usecount > 0 || !ck->enable_reg) in clk_disable_unused()
981 c->usecount); in debug_clock_show()
998 debugfs_create_u8("usecount", S_IRUGO, c->dent, &c->usecount); in clk_debugfs_register_one()
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-omap2/
H A Dclockdomain.c955 if (!clkdm->usecount && (clkdm->flags & CLKDM_CAN_FORCE_SLEEP)) in clkdm_allow_idle_nolock()
1155 * Increment the usecount of the clockdomain @clkdm and ensure that it
1176 clkdm->usecount++; in clkdm_clk_enable()
1177 if (clkdm->usecount > 1 && autodeps) { in clkdm_clk_enable()
1196 * Decrement the usecount of this clockdomain @clkdm when @clk is
1198 * clockdomain usecount goes to 0, put the clockdomain to sleep
1201 * pointers; -ERANGE if the @clkdm usecount underflows; or returns 0
1212 if (clk && (__clk_get_enable_count(clk) == 0) && clkdm->usecount == 0) in clkdm_clk_disable()
1215 if (clkdm->usecount == 0) { in clkdm_clk_disable()
1221 clkdm->usecount in clkdm_clk_disable()
[all...]
/kernel/linux/linux-6.6/arch/arm/mach-omap2/
H A Dclockdomain.c955 if (!clkdm->usecount && (clkdm->flags & CLKDM_CAN_FORCE_SLEEP)) in clkdm_allow_idle_nolock()
1115 * Increment the usecount of the clockdomain @clkdm and ensure that it
1136 clkdm->usecount++; in clkdm_clk_enable()
1137 if (clkdm->usecount > 1 && autodeps) { in clkdm_clk_enable()
1156 * Decrement the usecount of this clockdomain @clkdm when @clk is
1158 * clockdomain usecount goes to 0, put the clockdomain to sleep
1161 * pointers; -ERANGE if the @clkdm usecount underflows; or returns 0
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()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/host1x/
H A Dbus.c732 client->usecount = 0; in __host1x_client_init()
827 if (client->usecount == 1) { in host1x_client_suspend()
835 client->usecount--; in host1x_client_suspend()
836 dev_dbg(client->dev, "use count: %u\n", client->usecount); in host1x_client_suspend()
847 if (client->usecount == 0) in host1x_client_suspend()
851 client->usecount++; in host1x_client_suspend()
870 if (client->usecount == 0) { in host1x_client_resume()
878 client->usecount++; in host1x_client_resume()
879 dev_dbg(client->dev, "use count: %u\n", client->usecount); in host1x_client_resume()
/kernel/linux/linux-5.10/arch/c6x/platforms/
H A Dpll.c31 clk->usecount++; in __clk_enable()
36 if (WARN_ON(clk->usecount == 0)) in __clk_disable()
38 --clk->usecount; in __clk_disable()
136 if (WARN_ON(clk->usecount)) in clk_set_parent()
395 buf, parent->usecount, state, clk_get_rate(parent)); in dump_clock()
/kernel/linux/linux-5.10/include/linux/mtd/
H A Dinftl.h33 int usecount; member
H A Dnftl.h25 int usecount; member
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvkm/core/
H A Dengine.h14 int usecount; member
/kernel/linux/linux-6.6/include/linux/mtd/
H A Dinftl.h33 int usecount; member
H A Dnftl.h25 int usecount; member
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/
H A Dhub.c102 if (wgrp->usecount == 0) { in tegra_windowgroup_enable()
112 wgrp->usecount++; in tegra_windowgroup_enable()
125 if (wgrp->usecount == 1) { in tegra_windowgroup_disable()
135 wgrp->usecount--; in tegra_windowgroup_disable()
894 wgrp->usecount = 0; in tegra_display_hub_probe()
H A Dhub.h16 unsigned int usecount; member
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvkm/engine/
H A Dfifo.h14 int usecount; member
/kernel/linux/linux-6.6/drivers/gpu/drm/tegra/
H A Dhub.h16 unsigned int usecount; member
/kernel/linux/linux-5.10/arch/c6x/include/asm/
H A Dclock.h84 int usecount; member

Completed in 18 milliseconds

123