Lines Matching refs:ri
137 struct mmp_clk_mix_reg_info *ri = &mix->reg_info; in _set_rate() local
151 mux_div = readl(ri->reg_clk_ctrl); in _set_rate()
153 mux_div = readl(ri->reg_clk_sel); in _set_rate()
156 width = ri->width_div; in _set_rate()
157 shift = ri->shift_div; in _set_rate()
163 width = ri->width_mux; in _set_rate()
164 shift = ri->shift_mux; in _set_rate()
170 writel(mux_div, ri->reg_clk_ctrl); in _set_rate()
172 mux_div |= (1 << ri->bit_fc); in _set_rate()
173 writel(mux_div, ri->reg_clk_ctrl); in _set_rate()
176 fc_req = readl(ri->reg_clk_ctrl); in _set_rate()
178 if (!(fc_req & (1 << ri->bit_fc))) in _set_rate()
189 fc_req = readl(ri->reg_clk_ctrl); in _set_rate()
190 fc_req |= 1 << ri->bit_fc; in _set_rate()
191 writel(fc_req, ri->reg_clk_ctrl); in _set_rate()
192 writel(mux_div, ri->reg_clk_sel); in _set_rate()
193 fc_req &= ~(1 << ri->bit_fc); in _set_rate()
292 struct mmp_clk_mix_reg_info *ri = &mix->reg_info; in mmp_clk_mix_get_parent() local
303 mux_div = readl(ri->reg_clk_ctrl); in mmp_clk_mix_get_parent()
305 mux_div = readl(ri->reg_clk_sel); in mmp_clk_mix_get_parent()
322 struct mmp_clk_mix_reg_info *ri = &mix->reg_info; in mmp_clk_mix_recalc_rate() local
333 mux_div = readl(ri->reg_clk_ctrl); in mmp_clk_mix_recalc_rate()
335 mux_div = readl(ri->reg_clk_sel); in mmp_clk_mix_recalc_rate()