Home
last modified time | relevance | path

Searched refs:enable_refcnt (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/drivers/clk/tegra/
Dclk-periph-gate.c88 if (!gate->enable_refcnt[gate->clk_num]++) in clk_periph_enable()
103 WARN_ON(!gate->enable_refcnt[gate->clk_num]); in clk_periph_disable()
105 if (--gate->enable_refcnt[gate->clk_num] == 0) in clk_periph_disable()
123 if (!gate->enable_refcnt[gate->clk_num]) in clk_periph_disable_unused()
138 unsigned long flags, int clk_num, int *enable_refcnt) in tegra_clk_register_periph_gate() argument
165 gate->enable_refcnt = enable_refcnt; in tegra_clk_register_periph_gate()
Dclk.h567 int *enable_refcnt; member
585 unsigned long flags, int clk_num, int *enable_refcnt);
Dclk-periph.c203 periph->gate.enable_refcnt = periph_clk_enb_refcnt; in _tegra_clk_register_periph()
Dclk-sdmmc-mux.c263 sdmmc_mux->gate.enable_refcnt = periph_clk_enb_refcnt; in tegra_clk_register_sdmmc_mux_div()
/linux-6.12.1/drivers/clk/
Dclk.c34 static int enable_refcnt; variable
253 enable_refcnt++; in clk_enable_lock()
262 WARN_ON_ONCE(enable_refcnt != 0); in clk_enable_lock()
264 enable_refcnt = 1; in clk_enable_lock()
272 WARN_ON_ONCE(enable_refcnt == 0); in clk_enable_unlock()
274 if (--enable_refcnt) { in clk_enable_unlock()