Lines Matching refs:mux_hw
17 const struct owl_mux_hw *mux_hw)
22 regmap_read(common->regmap, mux_hw->reg, ®);
23 parent = reg >> mux_hw->shift;
24 parent &= BIT(mux_hw->width) - 1;
33 return owl_mux_helper_get_parent(&mux->common, &mux->mux_hw);
37 struct owl_mux_hw *mux_hw, u8 index)
41 regmap_read(common->regmap, mux_hw->reg, ®);
42 reg &= ~GENMASK(mux_hw->width + mux_hw->shift - 1, mux_hw->shift);
43 regmap_write(common->regmap, mux_hw->reg,
44 reg | (index << mux_hw->shift));
53 return owl_mux_helper_set_parent(&mux->common, &mux->mux_hw, index);