Home
last modified time | relevance | path

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

/rk3399_ARM-atf/drivers/st/clk/
H A Dclk-stm32-core.c546 if (priv->gate_refcounts[id] == 0U) { in _clk_stm32_enable_core()
560 priv->gate_refcounts[id]++; in _clk_stm32_enable_core()
562 if (priv->gate_refcounts[id] == UINT8_MAX) { in _clk_stm32_enable_core()
594 if ((priv->gate_refcounts[id] == 1U) && _stm32_clk_is_flags(priv, id, CLK_IS_CRITICAL)) { in _clk_stm32_disable_core()
598 if (priv->gate_refcounts[id] == 0U) { in _clk_stm32_disable_core()
608 if (--priv->gate_refcounts[id] > 0U) { in _clk_stm32_disable_core()
637 return priv->gate_refcounts[id]; in _clk_stm32_is_enabled()
H A Dstm32mp1_clk.c889 static unsigned int gate_refcounts[NB_GATES]; variable
1398 if (gate_refcounts[i] == 0U) { in __stm32mp1_clk_enable()
1402 gate_refcounts[i]++; in __stm32mp1_clk_enable()
1403 if (gate_refcounts[i] == UINT_MAX) { in __stm32mp1_clk_enable()
1442 if (gate_refcounts[i] == 0U) { in __stm32mp1_clk_disable()
1446 gate_refcounts[i]--; in __stm32mp1_clk_disable()
1448 if (gate_refcounts[i] == 0U) { in __stm32mp1_clk_disable()
H A Dclk-stm32-core.h76 uint8_t *gate_refcounts; member
H A Dclk-stm32mp13.c2018 .gate_refcounts = refcounts_mp13,
H A Dclk-stm32mp2.c2516 .gate_refcounts = refcounts_mp2,