Lines Matching refs:gate_id
135 u16 gate_id, int enable) in stm32_gate_endisable() argument
137 const struct stm32_gate_cfg *gate = &data->gates[gate_id]; in stm32_gate_endisable()
141 if (data->gate_cpt[gate_id]++ > 0) in stm32_gate_endisable()
149 if (--data->gate_cpt[gate_id] > 0) in stm32_gate_endisable()
161 u16 gate_id) in stm32_gate_disable_unused() argument
163 const struct stm32_gate_cfg *gate = &data->gates[gate_id]; in stm32_gate_disable_unused()
166 if (data->gate_cpt[gate_id] > 0) in stm32_gate_disable_unused()
177 u16 gate_id) in stm32_gate_is_enabled() argument
179 const struct stm32_gate_cfg *gate = &data->gates[gate_id]; in stm32_gate_is_enabled()
292 stm32_gate_endisable(gate->base, gate->clock_data, gate->gate_id, enable); in clk_stm32_gate_endisable()
313 return stm32_gate_is_enabled(gate->base, gate->clock_data, gate->gate_id); in clk_stm32_gate_is_enabled()
323 stm32_gate_disable_unused(gate->base, gate->clock_data, gate->gate_id); in clk_stm32_gate_disable_unused()
505 if (composite->gate_id == NO_STM32_GATE) in clk_stm32_composite_is_enabled()
508 return stm32_gate_is_enabled(composite->base, composite->clock_data, composite->gate_id); in clk_stm32_composite_is_enabled()
566 stm32_gate_endisable(composite->base, composite->clock_data, composite->gate_id, enable); in clk_stm32_composite_gate_endisable()
575 if (composite->gate_id == NO_STM32_GATE) in clk_stm32_composite_gate_enable()
590 if (composite->gate_id == NO_STM32_GATE) in clk_stm32_composite_gate_disable()
604 if (composite->gate_id == NO_STM32_GATE) in clk_stm32_composite_disable_unused()
609 stm32_gate_disable_unused(composite->base, composite->clock_data, composite->gate_id); in clk_stm32_composite_disable_unused()