/kernel/linux/linux-5.10/drivers/clk/rockchip/ |
D | clk-half-divider.c | 32 return DIV_ROUND_UP_ULL(((u64)parent_rate * 2), val); in clk_half_divider_recalc_rate() 50 bestdiv = DIV_ROUND_UP_ULL(((u64)parent_rate * 2), rate); in clk_half_divider_bestdiv() 77 now = DIV_ROUND_UP_ULL(((u64)parent_rate * 2), in clk_half_divider_bestdiv() 105 return DIV_ROUND_UP_ULL(((u64)*prate * 2), div * 2 + 3); in clk_half_divider_round_rate() 116 value = DIV_ROUND_UP_ULL(((u64)parent_rate * 2), rate); in clk_half_divider_set_rate()
|
/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-divider.c | 144 return DIV_ROUND_UP_ULL((u64)parent_rate, div); in divider_recalc_rate() 222 int div = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in _div_round_up() 239 up = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in _div_round_closest() 250 up_rate = DIV_ROUND_UP_ULL((u64)parent_rate, up); in _div_round_closest() 251 down_rate = DIV_ROUND_UP_ULL((u64)parent_rate, down); in _div_round_closest() 329 now = DIV_ROUND_UP_ULL((u64)parent_rate, i); in clk_divider_bestdiv() 354 return DIV_ROUND_UP_ULL((u64)*prate, div); in divider_round_rate_parent() 375 return DIV_ROUND_UP_ULL((u64)*prate, div); in divider_ro_round_rate_parent() 407 div = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in divider_get_val()
|
/kernel/linux/linux-5.10/drivers/clk/zynqmp/ |
D | divider.c | 55 up = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in zynqmp_divider_get_val() 61 up_rate = DIV_ROUND_UP_ULL((u64)parent_rate, up); in zynqmp_divider_get_val() 62 down_rate = DIV_ROUND_UP_ULL((u64)parent_rate, down); in zynqmp_divider_get_val() 109 return DIV_ROUND_UP_ULL(parent_rate, value); in zynqmp_clk_divider_recalc_rate() 189 return DIV_ROUND_UP_ULL((u64)*prate, bestdiv); in zynqmp_clk_divider_round_rate()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | i915_fixed.h | 80 tmp = DIV_ROUND_UP_ULL(tmp, 1 << 16); in mul_round_up_u32_fixed16() 102 tmp = DIV_ROUND_UP_ULL(tmp, d); in div_fixed16() 112 tmp = DIV_ROUND_UP_ULL(tmp, d.val); in div_round_up_u32_fixed16()
|
/kernel/linux/linux-5.10/drivers/clk/meson/ |
D | sclk-div.c | 82 now = DIV_ROUND_UP_ULL((u64)parent_now, i); in sclk_div_bestdiv() 108 return DIV_ROUND_UP_ULL((u64)*prate, div); in sclk_div_round_rate() 187 return DIV_ROUND_UP_ULL((u64)prate, sclk->cached_div); in sclk_div_recalc_rate()
|
D | clk-mpll.c | 40 return DIV_ROUND_UP_ULL((u64)parent_rate * SDM_DEN, divisor); in rate_from_params() 57 *sdm = DIV_ROUND_UP_ULL(frac, requested_rate); in params_from_rate()
|
D | vid-pll-div.c | 89 return DIV_ROUND_UP_ULL(parent_rate * div->multiplier, div->divider); in meson_vid_pll_div_recalc_rate()
|
D | clk-pll.c | 65 rate += DIV_ROUND_UP_ULL(frac_rate, in __pll_params_to_rate() 69 return DIV_ROUND_UP_ULL(rate, n); in __pll_params_to_rate()
|
/kernel/linux/linux-5.10/drivers/pwm/ |
D | pwm-imx27.c | 158 state->period = DIV_ROUND_UP_ULL(tmp, pwm_clk); in pwm_imx27_get_state() 170 state->duty_cycle = DIV_ROUND_UP_ULL(tmp, pwm_clk); in pwm_imx27_get_state() 205 period_ms = DIV_ROUND_UP_ULL(pwm_get_period(pwm), in pwm_imx27_wait_fifo_slot()
|
D | pwm-crc.c | 149 DIV_ROUND_UP_ULL(duty_cycle_reg * state->period, PWM_MAX_LEVEL); in crc_pwm_get_state()
|
D | pwm-sun4i.c | 132 state->period = DIV_ROUND_UP_ULL(NSEC_PER_SEC, clk_rate); in sun4i_pwm_get_state() 133 state->duty_cycle = DIV_ROUND_UP_ULL(state->period, 2); in sun4i_pwm_get_state()
|
D | pwm-sl28cpld.c | 137 prescaler = DIV_ROUND_UP_ULL(SL28CPLD_PWM_PERIOD(0), state->period); in sl28cpld_pwm_apply()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | dm.c | 96 u32 num_blocks = DIV_ROUND_UP_ULL(length, MLX5_SW_ICM_BLOCK_SIZE(dev)); in mlx5_dm_sw_icm_alloc() 185 u32 num_blocks = DIV_ROUND_UP_ULL(length, MLX5_SW_ICM_BLOCK_SIZE(dev)); in mlx5_dm_sw_icm_dealloc()
|
/kernel/linux/linux-5.10/drivers/clk/ti/ |
D | fapll.c | 354 return DIV_ROUND_UP_ULL(rate, synth_div_m); in ti_fapll_synth_recalc_rate() 377 post_div_m = DIV_ROUND_UP_ULL((u64)parent_rate * SYNTH_PHASE_K, rate); in ti_fapll_synth_set_frac_rate() 385 synth_int_div = DIV_ROUND_UP_ULL((u64)parent_rate * in ti_fapll_synth_set_frac_rate() 434 r = DIV_ROUND_UP_ULL(r, SYNTH_MAX_INT_DIV * SYNTH_MAX_DIV_M); in ti_fapll_synth_round_rate()
|
/kernel/linux/linux-5.10/arch/arm/mach-omap2/ |
D | timer.c | 154 arch_timer_freq = DIV_ROUND_UP_ULL(rate * num, den); in realtime_counter_init()
|
/kernel/linux/linux-5.10/net/ceph/ |
D | striper.c | 231 *num_file_extents = DIV_ROUND_UP_ULL(objoff + objlen, l->stripe_unit) - in ceph_extent_to_file() 274 DIV_ROUND_UP_ULL(remainder_bytes, l->stripe_unit); in ceph_get_num_objects()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/dss/ |
D | hdmi5_core.c | 52 v = DIV_ROUND_UP_ULL(ss_scl_high * sfr, 1000000); in hdmi5_core_ddc_init() 59 v = DIV_ROUND_UP_ULL(ss_scl_low * sfr, 1000000); in hdmi5_core_ddc_init() 66 v = DIV_ROUND_UP_ULL(fs_scl_high * sfr, 1000000); in hdmi5_core_ddc_init() 73 v = DIV_ROUND_UP_ULL(fs_scl_low * sfr, 1000000); in hdmi5_core_ddc_init() 80 v = DIV_ROUND_UP_ULL(sda_hold * sfr, 1000000); in hdmi5_core_ddc_init()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/dss/ |
D | hdmi5_core.c | 65 v = DIV_ROUND_UP_ULL(ss_scl_high * sfr, 1000000); in hdmi_core_ddc_init() 72 v = DIV_ROUND_UP_ULL(ss_scl_low * sfr, 1000000); in hdmi_core_ddc_init() 79 v = DIV_ROUND_UP_ULL(fs_scl_high * sfr, 1000000); in hdmi_core_ddc_init() 86 v = DIV_ROUND_UP_ULL(fs_scl_low * sfr, 1000000); in hdmi_core_ddc_init() 93 v = DIV_ROUND_UP_ULL(sda_hold * sfr, 1000000); in hdmi_core_ddc_init()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/pl111/ |
D | pl111_display.c | 462 div_rate = DIV_ROUND_UP_ULL(this_prate, div); in pl111_clk_div_choose_div() 481 return DIV_ROUND_UP_ULL(*prate, div); in pl111_clk_div_round_rate() 500 return DIV_ROUND_UP_ULL(prate, div); in pl111_clk_div_recalc_rate()
|
/kernel/linux/linux-5.10/drivers/clk/analogbits/ |
D | wrpll-cln28hpc.c | 195 c->init_r = DIV_ROUND_UP_ULL(parent_rate, MAX_POST_DIVR_FREQ); in __wrpll_update_parent_rate()
|
/kernel/linux/linux-5.10/drivers/char/hw_random/ |
D | ks-sa-rng.c | 95 return DIV_ROUND_UP_ULL((TRNG_DEF_CLK_DIV_CYCLES + 1) * 1000000000ull * in cycles_to_ns()
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
D | sdhci-of-dwcmshc.c | 134 extra = DIV_ROUND_UP_ULL(dma_get_required_mask(&pdev->dev), SZ_128M); in dwcmshc_probe()
|
D | sdhci-of-sparx5.c | 178 extra = DIV_ROUND_UP_ULL(dma_get_required_mask(&pdev->dev), SZ_128M); in sdhci_sparx5_probe()
|
/kernel/linux/linux-5.10/drivers/cpuidle/ |
D | cpuidle-pseries.c | 364 u64 latency_us = DIV_ROUND_UP_ULL(tb_to_ns(latency_tb), NSEC_PER_USEC); in fixup_cede0_latency()
|
/kernel/linux/linux-5.10/drivers/clk/nxp/ |
D | clk-lpc18xx-cgu.c | 387 m = DIV_ROUND_UP_ULL(*prate, rate * 2); in lpc18xx_pll0_round_rate() 408 m = DIV_ROUND_UP_ULL(parent_rate, rate * 2); in lpc18xx_pll0_set_rate()
|