/Linux-v4.19/drivers/clk/qcom/ |
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-v4.19/drivers/clk/imgtec/ |
D | clk-boston.c | 60 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/ |
D | dsi_phy.c | 73 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/ |
D | mdp4_plane.c | 268 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/ |
D | clk-cdce925.c | 96 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()
|
D | clk.c | 2557 ret = mult_frac(scale, duty->num, duty->den); in clk_core_get_scaled_duty_cycle()
|
/Linux-v4.19/drivers/md/ |
D | dm-bufio.c | 939 *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/ |
D | super.c | 90 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/ |
D | dcache.h | 504 return mult_frac(val, sysctl_vfs_cache_pressure, 100); in vfs_pressure_ratio()
|
D | kernel.h | 194 #define mult_frac(x, numer, denom)( \ macro
|
/Linux-v4.19/drivers/mtd/ubi/ |
D | build.c | 562 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/ |
D | dsi_pll_28nm.c | 300 mult_frac(ref_clk, sdm_freq_seed, BIT(16)); in dsi_pll_28nm_clk_recalc_rate()
|
/Linux-v4.19/drivers/scsi/ |
D | sg.c | 82 #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()
|
D | scsi_debug.c | 5821 jdelay = mult_frac(USER_HZ * jdelay, HZ, denom * USER_HZ); in scsi_debug_queuecommand()
|
/Linux-v4.19/drivers/tty/serial/ |
D | vt8500_serial.c | 325 vt8500_write(port, mult_frac(baud, 4096, 1000000), VT8500_URBKR); in vt8500_set_baud_rate()
|
/Linux-v4.19/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_plane.c | 636 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/ |
D | hid-lg4ff.c | 298 new_value = 8192 + mult_frac(value - 8192, max_range, range); in lg4ff_adjust_dfp_x_axis()
|
D | hid-sony.c | 1018 int calib_data = mult_frac(calib->sens_numer, in dualshock4_parse_report()
|
/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_plane.c | 646 *out_phase = mult_frac(unit, src, dst); in calc_phase_step()
|
/Linux-v4.19/drivers/media/dvb-core/ |
D | dvb_frontend.c | 2256 c->bandwidth_hz = mult_frac(c->symbol_rate, rolloff, 100); in dtv_set_frontend()
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | intel_pm.c | 7130 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/ |
D | page_alloc.c | 7262 mult_frac(zone->managed_pages, in __setup_per_zone_wmarks()
|