Home
last modified time | relevance | path

Searched refs:mmux (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/clk/sophgo/
Dclk-cv18xx-ip.c605 static u8 mmux_get_parent_id(struct cv1800_clk_mmux *mmux) in mmux_get_parent_id() argument
607 struct clk_hw *hw = &mmux->common.hw; in mmux_get_parent_id()
621 struct cv1800_clk_mmux *mmux = hw_to_cv1800_clk_mmux(hw); in mmux_enable() local
623 return cv1800_clk_setbit(&mmux->common, &mmux->gate); in mmux_enable()
628 struct cv1800_clk_mmux *mmux = hw_to_cv1800_clk_mmux(hw); in mmux_disable() local
630 cv1800_clk_clearbit(&mmux->common, &mmux->gate); in mmux_disable()
635 struct cv1800_clk_mmux *mmux = hw_to_cv1800_clk_mmux(hw); in mmux_is_enabled() local
637 return cv1800_clk_checkbit(&mmux->common, &mmux->gate); in mmux_is_enabled()
643 struct cv1800_clk_mmux *mmux = data; in mmux_round_rate() local
647 if (cv1800_clk_checkbit(&mmux->common, &mmux->bypass)) in mmux_round_rate()
[all …]
/linux-6.12.1/drivers/clk/stm32/
Dclk-stm32mp1.c309 struct stm32_mmux *mmux; member
380 struct stm32_mmux *mmux; member
488 struct stm32_clk_mmux *mmux; in _get_stm32_mux() local
492 if (cfg->mmux) { in _get_stm32_mux()
493 mmux = devm_kzalloc(dev, sizeof(*mmux), GFP_KERNEL); in _get_stm32_mux()
494 if (!mmux) in _get_stm32_mux()
497 mmux->mux.reg = cfg->mux->reg_off + base; in _get_stm32_mux()
498 mmux->mux.shift = cfg->mux->shift; in _get_stm32_mux()
499 mmux->mux.mask = (1 << cfg->mux->width) - 1; in _get_stm32_mux()
500 mmux->mux.flags = cfg->mux->mux_flags; in _get_stm32_mux()
[all …]
Dclk-stm32mp13.c1494 struct multi_mux *mmux = stm32_mp13_multi_mux[composite->mux_id]; in stm32mp13_is_multi_mux() local
1496 if (mmux) { in stm32mp13_is_multi_mux()
1497 if (!(mmux->hw1 == hw)) in stm32mp13_is_multi_mux()
1498 return mmux->hw1; in stm32mp13_is_multi_mux()
1500 return mmux->hw2; in stm32mp13_is_multi_mux()