Home
last modified time | relevance | path

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

/Linux-v4.19/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()
/Linux-v4.19/drivers/clk/imgtec/
Dclk-boston.c60 sys_freq = mult_frac(in_freq, mul, sys_div); in clk_boston_setup()
63 cpu_freq = mult_frac(in_freq, mul, cpu_div); in clk_boston_setup()
/Linux-v4.19/drivers/gpu/drm/msm/dsi/phy/
Ddsi_phy.c73 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc()
74 lpx = mult_frac(NSEC_PER_MSEC, coeff, esc_rate / 1000); in msm_dsi_dphy_timing_calc()
184 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc_v2()
186 lpx = mult_frac(NSEC_PER_MSEC, coeff, esc_rate / 1000); in msm_dsi_dphy_timing_calc_v2()
293 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc_v3()
295 lpx = mult_frac(NSEC_PER_MSEC, coeff, esc_rate / 1000); in msm_dsi_dphy_timing_calc_v3()
/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_plane.c268 phasex_step = mult_frac(MDP4_VG_PHASE_STEP_DEFAULT, in mdp4_plane_mode_set()
285 phasey_step = mult_frac(MDP4_VG_PHASE_STEP_DEFAULT, in mdp4_plane_mode_set()
/Linux-v4.19/drivers/clk/
Dclk-cdce925.c96 return mult_frac(parent_rate, (unsigned long)n, (unsigned long)m); in cdce925_pll_calculate_rate()
204 rate = mult_frac(rate, (unsigned long)n, (unsigned long)m); in cdce925_pll_calc_range_bits()
Dclk.c2557 ret = mult_frac(scale, duty->num, duty->den); in clk_core_get_scaled_duty_cycle()
/Linux-v4.19/drivers/md/
Ddm-bufio.c939 *threshold_buffers = mult_frac(buffers, in __get_memory_limit()
1890 mem = (__u64)mult_frac(totalram_pages - totalhigh_pages, in dm_bufio_init()
1897 if (mem > mult_frac(VMALLOC_TOTAL, DM_BUFIO_VMALLOC_PERCENT, 100)) in dm_bufio_init()
1898 mem = mult_frac(VMALLOC_TOTAL, DM_BUFIO_VMALLOC_PERCENT, 100); in dm_bufio_init()
/Linux-v4.19/fs/
Dsuper.c90 dentries = mult_frac(sc->nr_to_scan, dentries, total_objects); in super_cache_scan()
91 inodes = mult_frac(sc->nr_to_scan, inodes, total_objects); in super_cache_scan()
92 fs_objects = mult_frac(sc->nr_to_scan, fs_objects, total_objects); in super_cache_scan()
/Linux-v4.19/include/linux/
Ddcache.h504 return mult_frac(val, sysctl_vfs_cache_pressure, 100); in vfs_pressure_ratio()
Dkernel.h194 #define mult_frac(x, numer, denom)( \ macro
/Linux-v4.19/drivers/mtd/ubi/
Dbuild.c562 limit = mult_frac(device_pebs, max_beb_per1024, 1024); in get_bad_peb_limit()
565 if (mult_frac(limit, 1024, max_beb_per1024) < device_pebs) in get_bad_peb_limit()
/Linux-v4.19/drivers/gpu/drm/msm/dsi/pll/
Ddsi_pll_28nm.c300 mult_frac(ref_clk, sdm_freq_seed, BIT(16)); in dsi_pll_28nm_clk_recalc_rate()
/Linux-v4.19/drivers/scsi/
Dsg.c82 #define SG_DEFAULT_TIMEOUT mult_frac(SG_DEFAULT_TIMEOUT_USER, HZ, USER_HZ)
951 if (val >= mult_frac((s64)INT_MAX, USER_HZ, HZ)) in sg_ioctl()
952 val = min_t(s64, mult_frac((s64)INT_MAX, USER_HZ, HZ), in sg_ioctl()
955 sfp->timeout = mult_frac(val, HZ, USER_HZ); in sg_ioctl()
Dscsi_debug.c5821 jdelay = mult_frac(USER_HZ * jdelay, HZ, denom * USER_HZ); in scsi_debug_queuecommand()
/Linux-v4.19/drivers/tty/serial/
Dvt8500_serial.c325 vt8500_write(port, mult_frac(baud, 4096, 1000000), VT8500_URBKR); in vt8500_set_baud_rate()
/Linux-v4.19/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_plane.c636 mult_frac((1 << PHASE_STEP_SHIFT), src_w, dst_w); in _dpu_plane_setup_scaler3()
638 mult_frac((1 << PHASE_STEP_SHIFT), src_h, dst_h); in _dpu_plane_setup_scaler3()
/Linux-v4.19/drivers/hid/
Dhid-lg4ff.c298 new_value = 8192 + mult_frac(value - 8192, max_range, range); in lg4ff_adjust_dfp_x_axis()
Dhid-sony.c1018 int calib_data = mult_frac(calib->sens_numer, in dualshock4_parse_report()
/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_plane.c646 *out_phase = mult_frac(unit, src, dst); in calc_phase_step()
/Linux-v4.19/drivers/media/dvb-core/
Ddvb_frontend.c2256 c->bandwidth_hz = mult_frac(c->symbol_rate, rolloff, 100); in dtv_set_frontend()
/Linux-v4.19/drivers/gpu/drm/i915/
Dintel_pm.c7130 min_ring_freq = mult_frac(min_ring_freq, 8, 3); in gen6_update_ring_freq()
7159 ring_freq = mult_frac(gpu_freq, 5, 4); in gen6_update_ring_freq()
/Linux-v4.19/mm/
Dpage_alloc.c7262 mult_frac(zone->managed_pages, in __setup_per_zone_wmarks()