Home
last modified time | relevance | path

Searched refs:mult_frac (Results 1 – 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/clk/qcom/
Dclk-regmap-mux-div.c102 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()
/kernel/linux/linux-5.10/drivers/clk/imgtec/
Dclk-boston.c56 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dintel_llc.c64 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dsi/phy/
Ddsi_phy.c65 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc()
66 lpx = mult_frac(NSEC_PER_MSEC, coeff, esc_rate / 1000); in msm_dsi_dphy_timing_calc()
176 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc_v2()
284 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc_v3()
390 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc_v4()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_plane.c259 phasex_step = mult_frac(MDP4_VG_PHASE_STEP_DEFAULT, in mdp4_plane_mode_set()
276 phasey_step = mult_frac(MDP4_VG_PHASE_STEP_DEFAULT, in mdp4_plane_mode_set()
/kernel/linux/linux-5.10/drivers/thermal/
Dthermal-generic-adc.c48 temp = temp_hi + mult_frac(temp_lo - temp_hi, val - adc_hi, in gadc_thermal_adc_to_temp()
/kernel/linux/linux-5.10/drivers/clk/at91/
Dclk-sam9x60-pll.c192 nmul = mult_frac(rate, 1, parent_rate); in sam9x60_frac_pll_compute_mul_frac()
193 tmprate = mult_frac(parent_rate, nmul, 1); in sam9x60_frac_pll_compute_mul_frac()
/kernel/linux/linux-5.10/drivers/clk/
Dclk-sparx5.c68 rate = mult_frac(rate, divt, divb); in s5_calc_freq()
Dclk-cdce925.c97 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()
/kernel/linux/linux-5.10/include/linux/
Ddcache.h510 return mult_frac(val, sysctl_vfs_cache_pressure, 100); in vfs_pressure_ratio()
Dkernel.h162 #define mult_frac(x, numer, denom)( \ macro
/kernel/linux/linux-5.10/fs/
Dsuper.c93 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()
/kernel/linux/linux-5.10/drivers/mtd/ubi/
Dbuild.c566 limit = mult_frac(device_pebs, max_beb_per1024, 1024); in get_bad_peb_limit()
569 if (mult_frac(limit, 1024, max_beb_per1024) < device_pebs) in get_bad_peb_limit()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_plane.c169 mult_frac(src_height, 1, dst_height) : 1; in _dpu_plane_calc_bw()
538 mult_frac((1 << PHASE_STEP_SHIFT), src_w, dst_w); in _dpu_plane_setup_scaler3()
540 mult_frac((1 << PHASE_STEP_SHIFT), src_h, dst_h); in _dpu_plane_setup_scaler3()
/kernel/linux/linux-5.10/drivers/md/
Ddm-bufio.c2048 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dsi/pll/
Ddsi_pll_28nm.c292 mult_frac(ref_clk, sdm_freq_seed, BIT(16)); in dsi_pll_28nm_clk_recalc_rate()
/kernel/linux/linux-5.10/drivers/scsi/
Dsg.c77 #define SG_DEFAULT_TIMEOUT mult_frac(SG_DEFAULT_TIMEOUT_USER, HZ, USER_HZ)
955 if (val >= mult_frac((s64)INT_MAX, USER_HZ, HZ)) in sg_ioctl_common()
956 val = min_t(s64, mult_frac((s64)INT_MAX, USER_HZ, HZ), in sg_ioctl_common()
959 sfp->timeout = mult_frac(val, HZ, USER_HZ); in sg_ioctl_common()
/kernel/linux/linux-5.10/drivers/tty/serial/
Dvt8500_serial.c321 vt8500_write(port, mult_frac(baud, 4096, 1000000), VT8500_URBKR); in vt8500_set_baud_rate()
/kernel/linux/linux-5.10/net/mac80211/
Dmesh_hwmp.c453 mult_frac(new_metric, 10, 9) : in hwmp_route_info_get()
524 mult_frac(last_hop_metric, 10, 9) : in hwmp_route_info_get()
/kernel/linux/linux-5.10/drivers/hwmon/
Dbt1-pvt.c134 tmp = mult_frac(tmp, data, term->divider); in pvt_calc_poly()
/kernel/linux/linux-5.10/drivers/media/i2c/
Dvideo-i2c.c446 unsigned int delay = mult_frac(HZ, data->frame_interval.numerator, in video_i2c_thread_vid_cap()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_plane.c655 *out_phase = mult_frac(unit, src, dst); in calc_phase_step()
/kernel/linux/linux-5.10/drivers/hid/
Dhid-lg4ff.c291 new_value = 8192 + mult_frac(value - 8192, max_range, range); in lg4ff_adjust_dfp_x_axis()
Dhid-sony.c1037 int calib_data = mult_frac(calib->sens_numer, in dualshock4_parse_report()
/kernel/linux/linux-5.10/mm/
Dpage_alloc.c2495 max_boost = mult_frac(zone->_watermark[WMARK_HIGH], in boost_watermark()
8042 mult_frac(zone_managed_pages(zone), in __setup_per_zone_wmarks()

12