Home
last modified time | relevance | path

Searched refs:FRAC_BITS (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/drivers/thermal/
H A Dgov_power_allocator.c21 #define FRAC_BITS 10 macro
22 #define int_to_frac(x) ((x) << FRAC_BITS)
23 #define frac_to_int(x) ((x) >> FRAC_BITS)
35 return (x * y) >> FRAC_BITS; in mul_frac()
48 return div_s64(x << FRAC_BITS, y); in div_frac()
448 weight = 1 << FRAC_BITS; in allocate_power()
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dradeon_legacy_tv.c67 #define FRAC_BITS 0xe macro
614 tmp |= (vert_space * (1 << FRAC_BITS) / 10000); in radeon_legacy_tv_mode_set()
644 tv_y_saw_tooth_cntl = (vert_space * SLOPE_value[i] * (1 << (FRAC_BITS - 1)) + in radeon_legacy_tv_mode_set()
646 (1 << (FRAC_BITS - 1)) / 8) << 16); in radeon_legacy_tv_mode_set()
649 RADEON_Y_FALL_PING_PONG | (272 * SLOPE_value[i] / 8) * (1 << (FRAC_BITS - 1)) / in radeon_legacy_tv_mode_set()
652 (flicker_removal * 1024 - 272) * SLOPE_value[i] / 8 * (1 << (FRAC_BITS - 1)) / 1024; in radeon_legacy_tv_mode_set()
/openbmc/linux/drivers/gpu/drm/msm/dsi/phy/
H A Ddsi_phy_10nm.c40 #define FRAC_BITS 18 macro
127 multiplier = 1 << FRAC_BITS; in dsi_pll_calc_dec_frac()
167 ssc_step_size *= (1 << FRAC_BITS); in dsi_pll_calc_ssc()
178 config->decimal_div_start, frac, FRAC_BITS); in dsi_pll_calc_ssc()
445 multiplier = 1 << FRAC_BITS; in dsi_pll_10nm_vco_recalc_rate()
H A Ddsi_phy_7nm.c40 #define FRAC_BITS 18 macro
123 multiplier = 1 << FRAC_BITS; in dsi_pll_calc_dec_frac()
184 ssc_step_size *= (1 << FRAC_BITS); in dsi_pll_calc_ssc()
195 config->decimal_div_start, frac, FRAC_BITS); in dsi_pll_calc_ssc()
504 multiplier = 1 << FRAC_BITS; in dsi_pll_7nm_vco_recalc_rate()
/openbmc/linux/drivers/cpufreq/
H A Dintel_pstate.c49 #define FRAC_BITS 8 macro
50 #define int_tofp(X) ((int64_t)(X) << FRAC_BITS)
51 #define fp_toint(X) ((X) >> FRAC_BITS)
53 #define ONE_EIGHTH_FP ((int64_t)1 << (FRAC_BITS - 3))
56 #define EXT_FRAC_BITS (EXT_BITS + FRAC_BITS)
62 return ((int64_t)x * (int64_t)y) >> FRAC_BITS; in mul_fp()
67 return div64_s64((int64_t)x << FRAC_BITS, y); in div_fp()
75 mask = (1 << FRAC_BITS) - 1; in ceiling_fp()
/openbmc/linux/drivers/staging/media/ipu3/
H A Dipu3-css-params.c2877 static const unsigned int FRAC_BITS = IMGU_ABI_GDC_FRAC_BITS; in imgu_css_cfg_gdc_table() local
2895 gdc_luma.p0_x = (OFFSET_X - (OFFSET_X & XMEM_ALIGN_MASK)) << FRAC_BITS; in imgu_css_cfg_gdc_table()
2897 gdc_luma.p1_x = gdc_luma.p0_x + (IMGU_DVS_BLOCK_W << FRAC_BITS); in imgu_css_cfg_gdc_table()
2900 gdc_luma.p2_y = gdc_luma.p0_y + (IMGU_DVS_BLOCK_H << FRAC_BITS); in imgu_css_cfg_gdc_table()
2918 FRAC_BITS; in imgu_css_cfg_gdc_table()
2920 gdc_chroma.p1_x = gdc_chroma.p0_x + (IMGU_DVS_BLOCK_W << FRAC_BITS); in imgu_css_cfg_gdc_table()
2923 gdc_chroma.p2_y = gdc_chroma.p0_y + (IMGU_DVS_BLOCK_H / 2 << FRAC_BITS); in imgu_css_cfg_gdc_table()
/openbmc/linux/net/sched/
H A Dsch_qfq.c111 #define FRAC_BITS 30 /* fixed point arithmetic */ macro
112 #define ONE_FP (1UL << FRAC_BITS)
1448 q->min_slot_shift = FRAC_BITS + maxbudg_shift - QFQ_MAX_INDEX; in qfq_init_qdisc()
/openbmc/linux/drivers/net/wireless/realtek/rtw88/
H A Dphy.c781 #define FRAC_BITS 3 macro
808 linear = i > 2 ? linear << FRAC_BITS : linear; in rtw_phy_db_2_linear()
821 if (i <= 2 && (linear << FRAC_BITS) <= db_invert_table[i][j]) in rtw_phy_linear_2_db()
875 sum = (sum + (1 << (FRAC_BITS - 1))) >> FRAC_BITS; in rtw_phy_rf_power_2_rssi()