Lines Matching refs:div
18 cd->div.width, 0); in sprd_div_round_rate()
22 const struct sprd_div_internal *div, in sprd_div_helper_recalc_rate() argument
29 val = reg >> div->shift; in sprd_div_helper_recalc_rate()
30 val &= (1 << div->width) - 1; in sprd_div_helper_recalc_rate()
33 div->width); in sprd_div_helper_recalc_rate()
42 return sprd_div_helper_recalc_rate(&cd->common, &cd->div, parent_rate); in sprd_div_recalc_rate()
46 const struct sprd_div_internal *div, in sprd_div_helper_set_rate() argument
54 div->width, 0); in sprd_div_helper_set_rate()
57 reg &= ~GENMASK(div->width + div->shift - 1, div->shift); in sprd_div_helper_set_rate()
60 reg | (val << div->shift)); in sprd_div_helper_set_rate()
72 return sprd_div_helper_set_rate(&cd->common, &cd->div, in sprd_div_set_rate()