Home
last modified time | relevance | path

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

/trusted-firmware-a-latest/drivers/st/clk/
Dclk-stm32-core.c537 if (priv->gate_refcounts[id] == 0U) { in _clk_stm32_enable_core()
551 priv->gate_refcounts[id]++; in _clk_stm32_enable_core()
553 if (priv->gate_refcounts[id] == UINT_MAX) { in _clk_stm32_enable_core()
585 if ((priv->gate_refcounts[id] == 1U) && _stm32_clk_is_flags(priv, id, CLK_IS_CRITICAL)) { in _clk_stm32_disable_core()
589 if (priv->gate_refcounts[id] == 0U) { in _clk_stm32_disable_core()
599 if (--priv->gate_refcounts[id] > 0U) { in _clk_stm32_disable_core()
628 return priv->gate_refcounts[id]; in _clk_stm32_is_enabled()
Dstm32mp1_clk.c637 static unsigned int gate_refcounts[NB_GATES]; variable
1146 if (gate_refcounts[i] == 0U) { in __stm32mp1_clk_enable()
1150 gate_refcounts[i]++; in __stm32mp1_clk_enable()
1151 if (gate_refcounts[i] == UINT_MAX) { in __stm32mp1_clk_enable()
1190 if (gate_refcounts[i] == 0U) { in __stm32mp1_clk_disable()
1194 gate_refcounts[i]--; in __stm32mp1_clk_disable()
1196 if (gate_refcounts[i] == 0U) { in __stm32mp1_clk_disable()
Dclk-stm32-core.h76 uint32_t *gate_refcounts; member
Dclk-stm32mp13.c1987 .gate_refcounts = refcounts_mp13,