Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/clk/rockchip/
Dclk-half-divider.c31 return DIV_ROUND_UP_ULL(((u64)parent_rate * 2), val); in clk_half_divider_recalc_rate()
49 bestdiv = DIV_ROUND_UP_ULL(((u64)parent_rate * 2), rate); in clk_half_divider_bestdiv()
76 now = DIV_ROUND_UP_ULL(((u64)parent_rate * 2), in clk_half_divider_bestdiv()
104 return DIV_ROUND_UP_ULL(((u64)*prate * 2), div * 2 + 3); in clk_half_divider_round_rate()
115 value = DIV_ROUND_UP_ULL(((u64)parent_rate * 2), rate); in clk_half_divider_set_rate()
/linux-4.19.296/drivers/clk/
Dclk-divider.c131 return DIV_ROUND_UP_ULL((u64)parent_rate, div); in divider_recalc_rate()
209 int div = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in _div_round_up()
226 up = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in _div_round_closest()
237 up_rate = DIV_ROUND_UP_ULL((u64)parent_rate, up); in _div_round_closest()
238 down_rate = DIV_ROUND_UP_ULL((u64)parent_rate, down); in _div_round_closest()
316 now = DIV_ROUND_UP_ULL((u64)parent_rate, i); in clk_divider_bestdiv()
341 return DIV_ROUND_UP_ULL((u64)*prate, div); in divider_round_rate_parent()
362 return DIV_ROUND_UP_ULL((u64)*prate, div); in divider_ro_round_rate_parent()
394 div = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in divider_get_val()
Dclk-xgene.c300 scale = DIV_ROUND_UP_ULL(ret, *parent_rate); in xgene_clk_pmd_round_rate()
323 scale = DIV_ROUND_UP_ULL(ret, (u64)parent_rate); in xgene_clk_pmd_set_rate()
/linux-4.19.296/drivers/clk/meson/
Dsclk-div.c78 now = DIV_ROUND_UP_ULL((u64)parent_now, i); in sclk_div_bestdiv()
104 return DIV_ROUND_UP_ULL((u64)*prate, div); in sclk_div_round_rate()
183 return DIV_ROUND_UP_ULL((u64)prate, sclk->cached_div); in sclk_div_recalc_rate()
Dclk-mpll.c36 return DIV_ROUND_UP_ULL((u64)parent_rate * SDM_DEN, divisor); in rate_from_params()
53 *sdm = DIV_ROUND_UP_ULL(frac, requested_rate); in params_from_rate()
Dclk-pll.c54 rate += DIV_ROUND_UP_ULL(frac_rate, in __pll_params_to_rate()
58 return DIV_ROUND_UP_ULL(rate, pllt->n << od); in __pll_params_to_rate()
/linux-4.19.296/drivers/clk/ti/
Dfapll.c353 return DIV_ROUND_UP_ULL(rate, synth_div_m); in ti_fapll_synth_recalc_rate()
376 post_div_m = DIV_ROUND_UP_ULL((u64)parent_rate * SYNTH_PHASE_K, rate); in ti_fapll_synth_set_frac_rate()
384 synth_int_div = DIV_ROUND_UP_ULL((u64)parent_rate * in ti_fapll_synth_set_frac_rate()
433 r = DIV_ROUND_UP_ULL(r, SYNTH_MAX_INT_DIV * SYNTH_MAX_DIV_M); in ti_fapll_synth_round_rate()
Ddivider.c148 int div = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in _div_round_up()
/linux-4.19.296/drivers/pwm/
Dpwm-stm32.c304 result->period = DIV_ROUND_UP_ULL(prd, rate << icpsc); in stm32_pwm_capture()
306 result->duty_cycle = DIV_ROUND_UP_ULL(dty, rate); in stm32_pwm_capture()
Dpwm-pca9685.c335 duty = DIV_ROUND_UP_ULL(duty, period_ns); in pca9685_pwm_config()
/linux-4.19.296/drivers/clk/nxp/
Dclk-lpc18xx-cgu.c386 m = DIV_ROUND_UP_ULL(*prate, rate * 2); in lpc18xx_pll0_round_rate()
407 m = DIV_ROUND_UP_ULL(parent_rate, rate * 2); in lpc18xx_pll0_set_rate()
/linux-4.19.296/drivers/clk/qcom/
Dclk-alpha-pll.c824 return DIV_ROUND_UP_ULL((u64)*prate, div); in clk_alpha_pll_postdiv_round_ro_rate()
834 div = DIV_ROUND_UP_ULL((u64)parent_rate, rate) - 1; in clk_alpha_pll_postdiv_set_rate()
1096 div = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in clk_alpha_pll_postdiv_fabia_set_rate()
/linux-4.19.296/drivers/clk/mvebu/
Darmada-37xx-periph.c334 return DIV_ROUND_UP_ULL((u64)parent_rate, div); in clk_double_div_recalc_rate()
442 return DIV_ROUND_UP_ULL((u64)parent_rate, div); in clk_pm_cpu_recalc_rate()
/linux-4.19.296/include/linux/
Dkernel.h121 #define DIV_ROUND_UP_ULL(ll, d) \ macro
125 # define DIV_ROUND_UP_SECTOR_T(ll,d) DIV_ROUND_UP_ULL(ll, d)
/linux-4.19.296/drivers/nvmem/
Dimx-ocotp.c238 fsource = DIV_ROUND_UP_ULL((u64)clk_rate * DEF_FSOURCE, in imx_ocotp_set_imx7_timing()
/linux-4.19.296/drivers/iio/light/
Dapds9300.c78 lux = 3150 * ch0 - (unsigned long)DIV_ROUND_UP_ULL(ch0 in apds9300_calculate_lux()
/linux-4.19.296/drivers/i2c/busses/
Di2c-nomadik.c378 ns = DIV_ROUND_UP_ULL(1000000000ULL, i2c_clk); in setup_i2c_controller()
/linux-4.19.296/include/linux/mtd/
Drawnand.h926 DIV_ROUND_UP_ULL(dividend, divisor)); \
/linux-4.19.296/fs/
Dfs-writeback.c833 return DIV_ROUND_UP_ULL((u64)nr_pages * this_bw, tot_bw); in wb_split_bdi_pages()
/linux-4.19.296/drivers/memory/
Demif.c198 t_ck = (u32)DIV_ROUND_UP_ULL(1000000000000ull, freq); in set_ddr_clk_period()
/linux-4.19.296/drivers/clk/bcm/
Dclk-bcm2835.c846 div = DIV_ROUND_UP_ULL(parent_rate, rate); in bcm2835_pll_divider_set_rate()
/linux-4.19.296/fs/gfs2/
Dbmap.c499 ptrs = DIV_ROUND_UP_ULL(max_len, factor); in gfs2_walk_metadata()