Lines Matching refs:div_int
142 u32 div_int; member
406 u32 div_int, div_frc; in vc5_pll_recalc_rate() local
411 div_int = (fb[0] << 4) | (fb[1] >> 4); in vc5_pll_recalc_rate()
415 return (parent_rate * div_int) + ((parent_rate * div_frc) >> 24); in vc5_pll_recalc_rate()
422 u32 div_int; in vc5_pll_round_rate() local
431 div_int = rate / *parent_rate; in vc5_pll_round_rate()
432 if (div_int > 0xfff) in vc5_pll_round_rate()
440 hwdata->div_int = div_int; in vc5_pll_round_rate()
443 return (*parent_rate * div_int) + ((*parent_rate * div_frc) >> 24); in vc5_pll_round_rate()
453 fb[0] = hwdata->div_int >> 4; in vc5_pll_set_rate()
454 fb[1] = hwdata->div_int << 4; in vc5_pll_set_rate()
475 u32 div_int, div_frc; in vc5_fod_recalc_rate() local
484 div_int = (od_int[0] << 4) | (od_int[1] >> 4); in vc5_fod_recalc_rate()
489 if (div_int == 0 && div_frc == 0) in vc5_fod_recalc_rate()
493 return div64_u64((u64)f_in << 24ULL, ((u64)div_int << 24ULL) + div_frc); in vc5_fod_recalc_rate()
502 u32 div_int; in vc5_fod_round_rate() local
506 div_int = f_in / rate; in vc5_fod_round_rate()
512 if (div_int > 0xffe) { in vc5_fod_round_rate()
513 div_int = 0xffe; in vc5_fod_round_rate()
514 rate = f_in / div_int; in vc5_fod_round_rate()
522 hwdata->div_int = div_int; in vc5_fod_round_rate()
525 return div64_u64((u64)f_in << 24ULL, ((u64)div_int << 24ULL) + div_frc); in vc5_fod_round_rate()
538 hwdata->div_int >> 4, hwdata->div_int << 4, in vc5_fod_set_rate()