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

/linux-4.4.14/drivers/clk/ti/
H A Dclockdomain.c31 * omap2_clkops_enable_clkdm - increment usecount on clkdm of @hw
34 * Increment the usecount of the clockdomain of the clock pointed to
35 * by @hw; if the usecount is 1, the clockdomain will be "enabled."
73 * omap2_clkops_disable_clkdm - decrement usecount on clkdm of @hw
76 * Decrement the usecount of the clockdomain of the clock pointed to
77 * by @hw; if the usecount is 0, the clockdomain will be "disabled."
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/core/
H A Dengine.h13 int usecount; member in struct:nvkm_engine
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/core/
H A Dengine.c36 if (--engine->usecount == 0) nvkm_engine_unref()
48 if (++engine->usecount == 1) { nvkm_engine_ref()
51 engine->usecount--; nvkm_engine_ref()
94 if (!engine->usecount) { nvkm_engine_init()
/linux-4.4.14/arch/arm/mach-lpc32xx/
H A Dclock.h26 u32 usecount; member in struct:clk
H A Dclock.c1070 if (clk->usecount > 0) { local_clk_disable()
1071 clk->usecount--; local_clk_disable()
1074 if ((clk->usecount == 0) && (clk->enable)) local_clk_disable()
1093 if ((clk->usecount == 0) && (clk->enable)) local_clk_enable()
1097 clk->usecount++; local_clk_enable()
/linux-4.4.14/fs/jffs2/
H A Dcompr.c103 this->usecount++; jffs2_selected_compress()
111 this->usecount--; jffs2_selected_compress()
202 this->usecount++; jffs2_compress()
208 this->usecount--; jffs2_compress()
278 this->usecount++; jffs2_decompress()
289 this->usecount--; jffs2_decompress()
311 comp->usecount=0; jffs2_register_compressor()
345 if (comp->usecount) { jffs2_unregister_compressor()
H A Dcompr.h57 int usecount; member in struct:jffs2_compressor
/linux-4.4.14/drivers/sh/clk/
H A Dcore.c239 if (WARN(!clk->usecount, "Trying to disable clock %p with 0 usecount\n", __clk_disable()
243 if (!(--clk->usecount)) { __clk_disable()
268 if (clk->usecount++ == 0) { __clk_enable()
287 clk->usecount--; __clk_enable()
426 clk->usecount = 0; clk_register()
515 if (clk->usecount == 0) { clk_set_parent()
652 if (likely(clkp->usecount && clkp->ops)) { clks_core_resume()
689 if (!clk->usecount && clk->ops && clk->ops->disable) clk_late_init()
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/engine/
H A Dfifo.h11 int usecount; member in struct:nvkm_fifo_engn
/linux-4.4.14/include/linux/mtd/
H A Dinftl.h32 int usecount; member in struct:INFTLrecord
H A Dnftl.h39 int usecount; member in struct:NFTLrecord
H A Dmtd.h254 int usecount; member in struct:mtd_info
/linux-4.4.14/arch/arm/mach-omap1/
H A Dclock.c416 if (clk->usecount++ == 0) { omap1_clk_enable()
436 clk->usecount--; omap1_clk_enable()
442 if (clk->usecount > 0 && !(--clk->usecount)) { omap1_clk_disable()
637 if (clk->usecount == 0) { clk_disable()
638 pr_err("Trying disable clock %s with 0 usecount\n", clk_disable()
968 if (ck->usecount > 0 || !ck->enable_reg) clk_disable_unused()
1004 c->usecount); clk_dbg_show_summary()
1034 d = debugfs_create_u8("usecount", S_IRUGO, c->dent, (u8 *)&c->usecount); clk_debugfs_register_one()
H A Dclock.h115 * @usecount: number of users that have requested this clock to be enabled
124 * XXX @usecount is poorly named. It should be "enable_count" or
127 * yet called clk_disable(); the usecount of parent clocks is also
132 * XXX @clkdm, @usecount, @children, @sibling should be marked for
155 s8 usecount; member in struct:clk
/linux-4.4.14/arch/c6x/platforms/
H A Dpll.c35 clk->usecount++; __clk_enable()
40 if (WARN_ON(clk->usecount == 0)) __clk_disable()
42 --clk->usecount; __clk_disable()
140 if (WARN_ON(clk->usecount)) clk_set_parent()
399 buf, parent->usecount, state, clk_get_rate(parent)); dump_clock()
/linux-4.4.14/arch/arm/mach-davinci/
H A Dclock.c38 if (clk->usecount++ == 0) { __clk_enable()
49 if (WARN_ON(clk->usecount == 0)) __clk_disable()
51 if (--clk->usecount == 0) { __clk_disable()
194 if (WARN_ON(clk->usecount)) clk_set_parent()
269 if (ck->usecount > 0) davinci_clk_disable_unused()
674 buf, parent->usecount, state, clk_get_rate(parent)); dump_clock()
H A Ddm644x.c141 .usecount = 1, /* REVISIT how to disable? */
156 .usecount = 1, /* REVISIT how to disable? */
284 .usecount = 1, /* REVISIT: why can't this be disabled? */
H A Ddm646x.c169 .usecount = 1, /* REVISIT how to disable? */
273 .usecount = 1, /* REVIST: disabling hangs system */
280 .usecount = 1, /* REVIST: disabling hangs system */
H A Dclock.h93 u8 usecount; member in struct:clk
H A Ddm355.c318 .usecount = 1, /* REVISIT: why can't this be disabled? */
H A Ddm365.c382 .usecount = 1,
/linux-4.4.14/arch/arm/mach-omap2/
H A Dclockdomain.c1126 clkdm->usecount++; _clkdm_clk_hwmod_enable()
1127 if (clkdm->usecount > 1 && autodeps) { _clkdm_clk_hwmod_enable()
1146 * Increment the usecount of the clockdomain @clkdm and ensure that it
1173 * Decrement the usecount of this clockdomain @clkdm when @clk is
1175 * clockdomain usecount goes to 0, put the clockdomain to sleep
1178 * pointers; -ERANGE if the @clkdm usecount underflows; or returns 0
1189 if ((__clk_get_enable_count(clk) == 0) && clkdm->usecount == 0) clkdm_clk_disable()
1192 if (clkdm->usecount == 0) { clkdm_clk_disable()
1198 clkdm->usecount--; clkdm_clk_disable()
1199 if (clkdm->usecount > 0) { clkdm_clk_disable()
1220 * Increment the usecount of the clockdomain @clkdm and ensure that it
1252 * Decrement the usecount of this clockdomain @clkdm when @oh is
1254 * If the clockdomain usecount goes to 0, put the clockdomain to sleep
1257 * Returns -EINVAL if passed null pointers; -ERANGE if the @clkdm usecount
1277 if (clkdm->usecount == 0) { clkdm_hwmod_disable()
1283 clkdm->usecount--; clkdm_hwmod_disable()
1284 if (clkdm->usecount > 0) { clkdm_hwmod_disable()
H A Dpm.c113 /* XXX The usecount test is racy */ omap_pm_clkdms_setup()
118 clkdm->usecount == 0) omap_pm_clkdms_setup()
H A Dpm-debug.c87 clkdm->usecount); clkdm_dbg_show_counter()
H A Dclockdomain.h116 * @usecount: Usecount tracking
140 int usecount; member in struct:clockdomain
H A Dcm3xxx.c212 if (clkdm->usecount > 0) omap3xxx_clkdm_allow_idle()
224 if (clkdm->usecount > 0) omap3xxx_clkdm_deny_idle()
/linux-4.4.14/arch/c6x/include/asm/
H A Dclock.h87 int usecount; member in struct:clk
/linux-4.4.14/include/linux/
H A Dsh_clk.h49 int usecount; member in struct:clk
H A Ddma-buf.h47 * @map_dma_buf: returns list of scatter pages allocated, increases usecount
52 * @unmap_dma_buf: decreases usecount of buffer, might deallocate scatter
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Dchan.c49 if (--engn->usecount) nvkm_fifo_chan_child_fini()
82 if (engn->usecount++) nvkm_fifo_chan_child_init()
/linux-4.4.14/drivers/mtd/
H A Dmtdcore.c410 mtd->usecount = 0; add_mtd_device()
503 if (mtd->usecount) { del_mtd_device()
505 mtd->index, mtd->name, mtd->usecount); del_mtd_device()
776 mtd->usecount++; __get_mtd_device()
830 --mtd->usecount; __put_mtd_device()
831 BUG_ON(mtd->usecount < 0); __put_mtd_device()
H A Dssfdc.c24 int usecount; member in struct:ssfdcr_record
/linux-4.4.14/drivers/gpu/ipu-v3/
H A Dipu-prv.h155 int usecount; member in struct:ipu_soc
/linux-4.4.14/drivers/pinctrl/
H A Dcore.h141 * or pin, and each of these will increment the @usecount.
/linux-4.4.14/drivers/video/fbdev/matrox/
H A Dmatroxfb_base.h345 unsigned int usecount; member in struct:matrox_fb_info
H A Dmatroxfb_base.c357 /* Currently we are holding big kernel lock on all dead & usecount updates. matroxfb_remove()
366 if (minfo->usecount) { matroxfb_remove()
394 minfo->usecount++;
412 if (!(--minfo->usecount) && minfo->dead) {
2065 minfo->usecount = 0; matroxfb_probe()
/linux-4.4.14/drivers/mtd/maps/
H A Dvmu-flash.c724 if (mtd->usecount > 0) vmu_can_unload()
/linux-4.4.14/drivers/clk/imx/
H A Dclk-imx6sl.c431 * usecount and enabling/disabling of parent PLLs. imx6sl_clocks_init()
/linux-4.4.14/drivers/char/ipmi/
H A Dipmi_msghandler.c201 struct kref usecount; member in struct:bmc_device
930 * There is no module usecount here, because it's not ipmi_create_user()
2421 struct bmc_device *bmc = container_of(ref, struct bmc_device, usecount); cleanup_bmc_device()
2438 kref_put(&bmc->usecount, cleanup_bmc_device); ipmi_bmc_unregister()
2471 kref_get(&bmc->usecount); ipmi_bmc_register()
2514 kref_init(&bmc->usecount); ipmi_bmc_register()
/linux-4.4.14/drivers/dma-buf/
H A Ddma-buf.c513 * dma_buf_unmap_attachment - unmaps and decreases usecount of the buffer;might
/linux-4.4.14/drivers/mmc/host/
H A Domap_hsmmc.c442 * disable regulators enabled during boot and get the usecount omap_hsmmc_disable_boot_regulators()
/linux-4.4.14/drivers/usb/core/
H A Dhcd.c1592 /* may be called in any context with a valid urb->dev usecount

Completed in 1278 milliseconds