Searched refs:enable_refcnt (Results 1 – 4 of 4) sorted by relevance
69 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() argument159 gate->enable_refcnt = enable_refcnt; in tegra_clk_register_periph_gate()
521 int *enable_refcnt; member540 unsigned long flags, int clk_num, int *enable_refcnt);
175 periph->gate.enable_refcnt = periph_clk_enb_refcnt; in _tegra_clk_register_periph()
36 static int enable_refcnt; variable124 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()