Searched refs:enable_refcnt (Results 1 – 4 of 4) sorted by relevance
70 gate->enable_refcnt[gate->clk_num]++; in clk_periph_enable()71 if (gate->enable_refcnt[gate->clk_num] > 1) { in clk_periph_enable()106 gate->enable_refcnt[gate->clk_num]--; in clk_periph_disable()107 if (gate->enable_refcnt[gate->clk_num] > 0) { in clk_periph_disable()133 unsigned long flags, int clk_num, int *enable_refcnt) in tegra_clk_register_periph_gate() argument160 gate->enable_refcnt = enable_refcnt; in tegra_clk_register_periph_gate()
382 int *enable_refcnt; member401 unsigned long flags, int clk_num, int *enable_refcnt);
176 periph->gate.enable_refcnt = periph_clk_enb_refcnt; in _tegra_clk_register_periph()
34 static int enable_refcnt; variable125 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()140 WARN_ON_ONCE(enable_refcnt == 0); in clk_enable_unlock()142 if (--enable_refcnt) in clk_enable_unlock()