Home
last modified time | relevance | path

Searched refs:frac_bits (Results 1 – 10 of 10) sorted by relevance

/openbmc/qemu/include/hw/misc/
H A Dbcm2835_cprman_internals.h420 int frac_bits; member
539 .frac_bits = 8,
557 .frac_bits = 8,
563 .frac_bits = 8,
573 .frac_bits = 8,
579 .frac_bits = 8,
589 .frac_bits = 8,
595 .frac_bits = 0,
601 .frac_bits = 8,
607 .frac_bits = 12,
[all …]
H A Dbcm2835_cprman.h165 int frac_bits; member
/openbmc/linux/kernel/sched/
H A Dloadavg.c109 fixed_power_int(unsigned long x, unsigned int frac_bits, unsigned int n) in fixed_power_int() argument
111 unsigned long result = 1UL << frac_bits; in fixed_power_int()
117 result += 1UL << (frac_bits - 1); in fixed_power_int()
118 result >>= frac_bits; in fixed_power_int()
124 x += 1UL << (frac_bits - 1); in fixed_power_int()
125 x >>= frac_bits; in fixed_power_int()
/openbmc/linux/drivers/clk/bcm/
H A Dclk-bcm2835.c497 u32 frac_bits; member
943 GENMASK(CM_DIV_FRAC_BITS - data->frac_bits, 0) >> 1; in bcm2835_clock_choose_div()
962 CM_DIV_FRAC_BITS - data->frac_bits); in bcm2835_clock_choose_div()
979 if (data->int_bits == 0 && data->frac_bits == 0) in bcm2835_clock_rate_from_divisor()
986 div >>= CM_DIV_FRAC_BITS - data->frac_bits; in bcm2835_clock_rate_from_divisor()
987 div &= (1 << (data->int_bits + data->frac_bits)) - 1; in bcm2835_clock_rate_from_divisor()
992 temp = (u64)parent_rate << data->frac_bits; in bcm2835_clock_rate_from_divisor()
1029 if (data->int_bits == 0 && data->frac_bits == 0) in bcm2835_clock_get_rate()
1180 if (data->frac_bits) in bcm2835_clock_choose_div_and_prate()
1947 .frac_bits = 0,
[all …]
/openbmc/linux/drivers/md/
H A Ddm-ps-historical-service-time.c86 static u64 fixed_power(u64 x, unsigned int frac_bits, unsigned int n) in fixed_power() argument
88 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()
/openbmc/linux/drivers/gpu/drm/amd/display/include/
H A Dfixed31_32.h517 static inline struct fixed31_32 dc_fixpt_truncate(struct fixed31_32 arg, unsigned int frac_bits) in dc_fixpt_truncate() argument
521 if (frac_bits >= FIXED31_32_BITS_PER_FRACTIONAL_PART) { in dc_fixpt_truncate()
522 ASSERT(frac_bits == FIXED31_32_BITS_PER_FRACTIONAL_PART); in dc_fixpt_truncate()
528 arg.value &= (~0ULL) << (FIXED31_32_BITS_PER_FRACTIONAL_PART - frac_bits); in dc_fixpt_truncate()
/openbmc/qemu/hw/misc/
H A Dbcm2835_cprman.c277 if (mux->int_bits == 0 && mux->frac_bits == 0) { in clock_mux_update()
295 R_CM_CLOCKx_DIV_FRAC_LENGTH - mux->frac_bits, in clock_mux_update()
296 mux->int_bits + mux->frac_bits); in clock_mux_update()
303 freq = muldiv64(freq, 1 << mux->frac_bits, div); in clock_mux_update()
/openbmc/qemu/target/arm/tcg/
H A Dtranslate-vfp.c3093 int frac_bits; in trans_VCVT_fix_hp() local
3103 frac_bits = (a->opc & 1) ? (32 - a->imm) : (16 - a->imm); in trans_VCVT_fix_hp()
3109 shift = tcg_constant_i32(frac_bits); in trans_VCVT_fix_hp()
3149 int frac_bits; in trans_VCVT_fix_sp() local
3159 frac_bits = (a->opc & 1) ? (32 - a->imm) : (16 - a->imm); in trans_VCVT_fix_sp()
3165 shift = tcg_constant_i32(frac_bits); in trans_VCVT_fix_sp()
3206 int frac_bits; in trans_VCVT_fix_dp() local
3221 frac_bits = (a->opc & 1) ? (32 - a->imm) : (16 - a->imm); in trans_VCVT_fix_dp()
3227 shift = tcg_constant_i32(frac_bits); in trans_VCVT_fix_dp()
/openbmc/linux/sound/soc/fsl/
H A Dfsl_easrc.c179 unsigned int frac_bits; in fsl_easrc_set_rs_ratio() local
186 frac_bits = 39; in fsl_easrc_set_rs_ratio()
190 frac_bits = 38; in fsl_easrc_set_rs_ratio()
194 frac_bits = 37; in fsl_easrc_set_rs_ratio()
200 val = (u64)in_rate << frac_bits; in fsl_easrc_set_rs_ratio()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_color.c571 static u16 ctm_to_twos_complement(u64 coeff, int int_bits, int frac_bits) in ctm_to_twos_complement() argument
576 c >>= 32 - frac_bits - 1; in ctm_to_twos_complement()
584 c = clamp(c, -(s64)BIT(int_bits + frac_bits - 1), in ctm_to_twos_complement()
585 (s64)(BIT(int_bits + frac_bits - 1) - 1)); in ctm_to_twos_complement()
587 return c & (BIT(int_bits + frac_bits) - 1); in ctm_to_twos_complement()