/linux-4.19.296/drivers/clk/rockchip/ |
D | clk-half-divider.c | 31 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/ |
D | clk-divider.c | 131 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()
|
D | clk-xgene.c | 300 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/ |
D | sclk-div.c | 78 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()
|
D | clk-mpll.c | 36 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()
|
D | clk-pll.c | 54 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/ |
D | fapll.c | 353 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()
|
D | divider.c | 148 int div = DIV_ROUND_UP_ULL((u64)parent_rate, rate); in _div_round_up()
|
/linux-4.19.296/drivers/pwm/ |
D | pwm-stm32.c | 304 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()
|
D | pwm-pca9685.c | 335 duty = DIV_ROUND_UP_ULL(duty, period_ns); in pca9685_pwm_config()
|
/linux-4.19.296/drivers/clk/nxp/ |
D | clk-lpc18xx-cgu.c | 386 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/ |
D | clk-alpha-pll.c | 824 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/ |
D | armada-37xx-periph.c | 334 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/ |
D | kernel.h | 121 #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/ |
D | imx-ocotp.c | 238 fsource = DIV_ROUND_UP_ULL((u64)clk_rate * DEF_FSOURCE, in imx_ocotp_set_imx7_timing()
|
/linux-4.19.296/drivers/iio/light/ |
D | apds9300.c | 78 lux = 3150 * ch0 - (unsigned long)DIV_ROUND_UP_ULL(ch0 in apds9300_calculate_lux()
|
/linux-4.19.296/drivers/i2c/busses/ |
D | i2c-nomadik.c | 378 ns = DIV_ROUND_UP_ULL(1000000000ULL, i2c_clk); in setup_i2c_controller()
|
/linux-4.19.296/include/linux/mtd/ |
D | rawnand.h | 926 DIV_ROUND_UP_ULL(dividend, divisor)); \
|
/linux-4.19.296/fs/ |
D | fs-writeback.c | 833 return DIV_ROUND_UP_ULL((u64)nr_pages * this_bw, tot_bw); in wb_split_bdi_pages()
|
/linux-4.19.296/drivers/memory/ |
D | emif.c | 198 t_ck = (u32)DIV_ROUND_UP_ULL(1000000000000ull, freq); in set_ddr_clk_period()
|
/linux-4.19.296/drivers/clk/bcm/ |
D | clk-bcm2835.c | 846 div = DIV_ROUND_UP_ULL(parent_rate, rate); in bcm2835_pll_divider_set_rate()
|
/linux-4.19.296/fs/gfs2/ |
D | bmap.c | 499 ptrs = DIV_ROUND_UP_ULL(max_len, factor); in gfs2_walk_metadata()
|