Lines Matching refs:fract
69 static void clk_fd_get_div(struct clk_hw *hw, struct u32_fract *fract) in clk_fd_get_div() argument
100 fract->numerator = m; in clk_fd_get_div()
101 fract->denominator = n; in clk_fd_get_div()
106 struct u32_fract fract; in clk_fd_recalc_rate() local
109 clk_fd_get_div(hw, &fract); in clk_fd_recalc_rate()
111 if (!fract.numerator || !fract.denominator) in clk_fd_recalc_rate()
114 ret = (u64)parent_rate * fract.numerator; in clk_fd_recalc_rate()
115 do_div(ret, fract.denominator); in clk_fd_recalc_rate()
209 struct u32_fract fract; in clk_fd_numerator_get() local
211 clk_fd_get_div(hw, &fract); in clk_fd_numerator_get()
213 *val = fract.numerator; in clk_fd_numerator_get()
221 struct u32_fract fract; in clk_fd_denominator_get() local
223 clk_fd_get_div(hw, &fract); in clk_fd_denominator_get()
225 *val = fract.denominator; in clk_fd_denominator_get()