Searched refs:enable_refcnt (Results 1 – 5 of 5) sorted by relevance
88 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() argument165 gate->enable_refcnt = enable_refcnt; in tegra_clk_register_periph_gate()
567 int *enable_refcnt; member585 unsigned long flags, int clk_num, int *enable_refcnt);
196 periph->gate.enable_refcnt = periph_clk_enb_refcnt; in _tegra_clk_register_periph()
263 sdmmc_mux->gate.enable_refcnt = periph_clk_enb_refcnt; in tegra_clk_register_sdmmc_mux_div()
34 static int enable_refcnt; variable165 enable_refcnt++; in clk_enable_lock()174 WARN_ON_ONCE(enable_refcnt != 0); in clk_enable_lock()176 enable_refcnt = 1; in clk_enable_lock()184 WARN_ON_ONCE(enable_refcnt == 0); in clk_enable_unlock()186 if (--enable_refcnt) { in clk_enable_unlock()