Searched refs:frac_bits (Results 1 – 5 of 5) sorted by relevance
496 u32 frac_bits; member941 GENMASK(CM_DIV_FRAC_BITS - data->frac_bits, 0) >> 1; in bcm2835_clock_choose_div()961 CM_DIV_FRAC_BITS - data->frac_bits); in bcm2835_clock_choose_div()978 if (data->int_bits == 0 && data->frac_bits == 0) in bcm2835_clock_rate_from_divisor()985 div >>= CM_DIV_FRAC_BITS - data->frac_bits; in bcm2835_clock_rate_from_divisor()986 div &= (1 << (data->int_bits + data->frac_bits)) - 1; in bcm2835_clock_rate_from_divisor()991 temp = (u64)parent_rate << data->frac_bits; in bcm2835_clock_rate_from_divisor()1006 if (data->int_bits == 0 && data->frac_bits == 0) in bcm2835_clock_get_rate()1152 if (data->frac_bits) in bcm2835_clock_choose_div_and_prate()1919 .frac_bits = 0,[all …]
86 static u64 fixed_power(u64 x, unsigned int frac_bits, unsigned int n) in fixed_power() argument88 unsigned long result = 1UL << frac_bits; in fixed_power()94 result += 1UL << (frac_bits - 1); in fixed_power()95 result >>= frac_bits; in fixed_power()101 x += 1UL << (frac_bits - 1); in fixed_power()102 x >>= frac_bits; in fixed_power()
523 static inline struct fixed31_32 dc_fixpt_truncate(struct fixed31_32 arg, unsigned int frac_bits) in dc_fixpt_truncate() argument527 if (frac_bits >= FIXED31_32_BITS_PER_FRACTIONAL_PART) { in dc_fixpt_truncate()528 ASSERT(frac_bits == FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_truncate()534 arg.value &= (~0LL) << (FIXED31_32_BITS_PER_FRACTIONAL_PART - frac_bits); in dc_fixpt_truncate()
70 u32 frac_bits; member139 config->frac_bits = 18; in dsi_pll_setup_config()173 multiplier = 1 << config->frac_bits; in dsi_pll_calc_dec_frac()222 ssc_step_size *= (1 << config->frac_bits); in dsi_pll_calc_ssc()239 regs->decimal_div_start, frac, config->frac_bits); in dsi_pll_calc_ssc()
70 u32 frac_bits; member139 config->frac_bits = 18; in dsi_pll_setup_config()174 multiplier = 1 << config->frac_bits; in dsi_pll_calc_dec_frac()223 ssc_step_size *= (1 << config->frac_bits); in dsi_pll_calc_ssc()240 regs->decimal_div_start, frac, config->frac_bits); in dsi_pll_calc_ssc()