Lines Matching refs:ri
134 struct mmp_clk_mix_reg_info *ri = &mix->reg_info; in _set_rate() local
148 mux_div = readl(ri->reg_clk_ctrl); in _set_rate()
150 mux_div = readl(ri->reg_clk_sel); in _set_rate()
153 width = ri->width_div; in _set_rate()
154 shift = ri->shift_div; in _set_rate()
160 width = ri->width_mux; in _set_rate()
161 shift = ri->shift_mux; in _set_rate()
167 writel(mux_div, ri->reg_clk_ctrl); in _set_rate()
169 mux_div |= (1 << ri->bit_fc); in _set_rate()
170 writel(mux_div, ri->reg_clk_ctrl); in _set_rate()
173 fc_req = readl(ri->reg_clk_ctrl); in _set_rate()
175 if (!(fc_req & (1 << ri->bit_fc))) in _set_rate()
186 fc_req = readl(ri->reg_clk_ctrl); in _set_rate()
187 fc_req |= 1 << ri->bit_fc; in _set_rate()
188 writel(fc_req, ri->reg_clk_ctrl); in _set_rate()
189 writel(mux_div, ri->reg_clk_sel); in _set_rate()
190 fc_req &= ~(1 << ri->bit_fc); in _set_rate()
289 struct mmp_clk_mix_reg_info *ri = &mix->reg_info; in mmp_clk_mix_get_parent() local
300 mux_div = readl(ri->reg_clk_ctrl); in mmp_clk_mix_get_parent()
302 mux_div = readl(ri->reg_clk_sel); in mmp_clk_mix_get_parent()
319 struct mmp_clk_mix_reg_info *ri = &mix->reg_info; in mmp_clk_mix_recalc_rate() local
330 mux_div = readl(ri->reg_clk_ctrl); in mmp_clk_mix_recalc_rate()
332 mux_div = readl(ri->reg_clk_sel); in mmp_clk_mix_recalc_rate()