Home
last modified time | relevance | path

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

/drivers/clk/tegra/
Dclk-periph-gate.c69 gate->enable_refcnt[gate->clk_num]++; in clk_periph_enable()
70 if (gate->enable_refcnt[gate->clk_num] > 1) { in clk_periph_enable()
105 gate->enable_refcnt[gate->clk_num]--; in clk_periph_disable()
106 if (gate->enable_refcnt[gate->clk_num] > 0) { in clk_periph_disable()
132 unsigned long flags, int clk_num, int *enable_refcnt) in tegra_clk_register_periph_gate() argument
159 gate->enable_refcnt = enable_refcnt; in tegra_clk_register_periph_gate()
Dclk.h521 int *enable_refcnt; member
540 unsigned long flags, int clk_num, int *enable_refcnt);
Dclk-periph.c175 periph->gate.enable_refcnt = periph_clk_enb_refcnt; in _tegra_clk_register_periph()
/drivers/clk/
Dclk.c36 static int enable_refcnt; variable
124 enable_refcnt++; in clk_enable_lock()
131 WARN_ON_ONCE(enable_refcnt != 0); in clk_enable_lock()
133 enable_refcnt = 1; in clk_enable_lock()
141 WARN_ON_ONCE(enable_refcnt == 0); in clk_enable_unlock()
143 if (--enable_refcnt) { in clk_enable_unlock()