/linux/drivers/clk/qcom/ |
A D | clk-regmap-mux-div.c | 102 parent_rate = mult_frac(req_rate, div, 2); in mux_div_determine_rate() 104 actual_rate = mult_frac(parent_rate, 2, div); in mux_div_determine_rate() 139 parent_rate = mult_frac(rate, div, 2); in __mux_div_set_rate_and_parent() 141 actual_rate = mult_frac(parent_rate, 2, div); in __mux_div_set_rate_and_parent() 216 return mult_frac(parent_rate, 2, div + 1); in mux_div_recalc_rate()
|
/linux/drivers/clk/imgtec/ |
A D | clk-boston.c | 56 sys_freq = mult_frac(in_freq, mul, sys_div); in clk_boston_setup() 59 cpu_freq = mult_frac(in_freq, mul, cpu_div); in clk_boston_setup()
|
/linux/drivers/gpu/drm/i915/gt/ |
A D | intel_llc.c | 64 consts->min_ring_freq = mult_frac(consts->min_ring_freq, 8, 3); in get_ia_constants() 97 ring_freq = mult_frac(gpu_freq, 5, 4); in calc_ia_freq()
|
/linux/drivers/power/supply/ |
A D | ltc4162-l-charger.c | 254 val->intval = 100 * mult_frac(ret, 14660, (int)info->rsnsb); in ltc4162l_get_ibat() 312 val->intval = 10000u * mult_frac(regval, 100000u, info->rsnsb); in ltc4162l_get_icharge() 321 value = mult_frac(value, info->rsnsb, 100000u); in ltc4162l_set_icharge() 410 regval = mult_frac(value, info->rsnsi, 50000u); in ltc4162l_set_iin_limit() 481 regval = mult_frac(value, info->rsnsb, 14660u); in ltc4162l_set_term_current()
|
/linux/drivers/gpu/drm/msm/dsi/phy/ |
A D | dsi_phy.c | 67 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc() 68 lpx = mult_frac(NSEC_PER_MSEC, coeff, esc_rate / 1000); in msm_dsi_dphy_timing_calc() 178 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc_v2() 286 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc_v3() 392 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc_v4() 478 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_cphy_timing_calc_v4()
|
A D | dsi_phy_28nm.c | 278 mult_frac(ref_clk, sdm_freq_seed, BIT(16)); in dsi_pll_28nm_clk_recalc_rate()
|
/linux/drivers/gpu/drm/msm/disp/mdp4/ |
A D | mdp4_plane.c | 261 phasex_step = mult_frac(MDP4_VG_PHASE_STEP_DEFAULT, in mdp4_plane_mode_set() 278 phasey_step = mult_frac(MDP4_VG_PHASE_STEP_DEFAULT, in mdp4_plane_mode_set()
|
/linux/include/linux/ |
A D | math.h | 113 #define mult_frac(x, numer, denom)( \ macro
|
A D | dcache.h | 514 return mult_frac(val, sysctl_vfs_cache_pressure, 100); in vfs_pressure_ratio()
|
/linux/drivers/thermal/ |
A D | thermal-generic-adc.c | 48 temp = temp_hi + mult_frac(temp_lo - temp_hi, val - adc_hi, in gadc_thermal_adc_to_temp()
|
/linux/drivers/clk/ |
A D | clk-cdce925.c | 97 return mult_frac(parent_rate, (unsigned long)n, (unsigned long)m); in cdce925_pll_calculate_rate() 205 rate = mult_frac(rate, (unsigned long)n, (unsigned long)m); in cdce925_pll_calc_range_bits()
|
A D | clk-sparx5.c | 68 rate = mult_frac(rate, divt, divb); in s5_calc_freq()
|
/linux/fs/ |
A D | super.c | 93 dentries = mult_frac(sc->nr_to_scan, dentries, total_objects); in super_cache_scan() 94 inodes = mult_frac(sc->nr_to_scan, inodes, total_objects); in super_cache_scan() 95 fs_objects = mult_frac(sc->nr_to_scan, fs_objects, total_objects); in super_cache_scan()
|
/linux/drivers/clk/at91/ |
A D | clk-sam9x60-pll.c | 204 nmul = mult_frac(rate, 1, parent_rate); in sam9x60_frac_pll_compute_mul_frac() 205 tmprate = mult_frac(parent_rate, nmul, 1); in sam9x60_frac_pll_compute_mul_frac()
|
/linux/drivers/md/ |
A D | dm-bufio.c | 2048 mem = (__u64)mult_frac(totalram_pages() - totalhigh_pages(), in dm_bufio_init() 2055 if (mem > mult_frac(VMALLOC_TOTAL, DM_BUFIO_VMALLOC_PERCENT, 100)) in dm_bufio_init() 2056 mem = mult_frac(VMALLOC_TOTAL, DM_BUFIO_VMALLOC_PERCENT, 100); in dm_bufio_init()
|
/linux/drivers/gpu/drm/msm/disp/dpu1/ |
A D | dpu_plane.c | 181 mult_frac(src_height, 1, dst_height) : 1; in _dpu_plane_calc_bw() 553 mult_frac((1 << PHASE_STEP_SHIFT), src_w, dst_w); in _dpu_plane_setup_scaler3() 555 mult_frac((1 << PHASE_STEP_SHIFT), src_h, dst_h); in _dpu_plane_setup_scaler3()
|
/linux/drivers/mtd/ubi/ |
A D | build.c | 571 limit = mult_frac(device_pebs, max_beb_per1024, 1024); in get_bad_peb_limit() 574 if (mult_frac(limit, 1024, max_beb_per1024) < device_pebs) in get_bad_peb_limit()
|
/linux/drivers/cpufreq/ |
A D | qcom-cpufreq-hw.c | 301 capacity = mult_frac(max_capacity, throttled_freq, policy->cpuinfo.max_freq); in qcom_lmh_dcvs_notify()
|
/linux/drivers/hid/ |
A D | hid-nintendo.c | 1148 value[0] = mult_frac((JC_IMU_PREC_RANGE_SCALE * in joycon_parse_imu_report() 1153 value[1] = mult_frac((JC_IMU_PREC_RANGE_SCALE * in joycon_parse_imu_report() 1158 value[2] = mult_frac((JC_IMU_PREC_RANGE_SCALE * in joycon_parse_imu_report()
|
A D | hid-playstation.c | 1095 int calib_data = mult_frac(ds->gyro_calib_data[i].sens_numer, in dualsense_parse_report() 1105 int calib_data = mult_frac(ds->accel_calib_data[i].sens_numer, in dualsense_parse_report()
|
/linux/drivers/scsi/ |
A D | sg.c | 78 #define SG_DEFAULT_TIMEOUT mult_frac(SG_DEFAULT_TIMEOUT_USER, HZ, USER_HZ) 963 if (val >= mult_frac((s64)INT_MAX, USER_HZ, HZ)) in sg_ioctl_common() 964 val = min_t(s64, mult_frac((s64)INT_MAX, USER_HZ, HZ), in sg_ioctl_common() 967 sfp->timeout = mult_frac(val, HZ, USER_HZ); in sg_ioctl_common()
|
/linux/drivers/staging/clocking-wizard/ |
A D | clk-xlnx-clock-wizard.c | 214 return mult_frac(parent_rate, 1000, (div * 1000) + frac); in clk_wzrd_recalc_ratef()
|
/linux/net/mac80211/ |
A D | mesh_hwmp.c | 453 mult_frac(new_metric, 10, 9) : in hwmp_route_info_get() 524 mult_frac(last_hop_metric, 10, 9) : in hwmp_route_info_get()
|
/linux/drivers/tty/serial/ |
A D | vt8500_serial.c | 319 vt8500_write(port, mult_frac(baud, 4096, 1000000), VT8500_URBKR); in vt8500_set_baud_rate()
|
/linux/drivers/media/i2c/ |
A D | video-i2c.c | 444 u32 delay = mult_frac(1000000UL, data->frame_interval.numerator, in video_i2c_thread_vid_cap()
|