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