Home
last modified time | relevance | path

Searched refs:UDIV_ROUND_NEAREST (Results 1 – 9 of 9) sorted by relevance

/optee_os-3.20.0/core/drivers/clk/sam/
A Dat91_usb.c35 return UDIV_ROUND_NEAREST(parent_rate, (usbdiv + 1)); in at91sam9x5_clk_usb_get_rate()
68 div = UDIV_ROUND_NEAREST(parent_rate, rate); in at91sam9x5_clk_usb_set_rate()
A Dat91_generated.c64 return UDIV_ROUND_NEAREST(parent_rate, gck->gckdiv + 1); in clk_generated_get_rate()
100 div = UDIV_ROUND_NEAREST(parent_rate, rate); in clk_generated_set_rate()
A Dat91_audio_pll.c156 fr = UDIV_ROUND_NEAREST(fr, AUDIO_PLL_DIV_FRAC); in clk_audio_pll_fout()
209 tmp = UDIV_ROUND_NEAREST(tmp, parent_rate); in clk_audio_pll_frac_compute_frac()
A Dat91_master.c91 return UDIV_ROUND_NEAREST(parent_rate, pres); in clk_master_pres_get_rate()
A Dat91_pll.c176 tmpmul = UDIV_ROUND_NEAREST(rate, parent_rate / tmpdiv); in clk_pll_get_best_div_mul()
/optee_os-3.20.0/core/drivers/
A Datmel_rtc.c214 val = UDIV_ROUND_NEAREST(ATMEL_RTC_CORR_DIVIDEND, val); in atmel_rtc_get_offset()
254 corr = UDIV_ROUND_NEAREST(ATMEL_RTC_CORR_DIVIDEND, in atmel_rtc_set_offset()
257 corr = UDIV_ROUND_NEAREST(ATMEL_RTC_CORR_DIVIDEND, offset); in atmel_rtc_set_offset()
A Dstm32_i2c.c385 uint32_t i2cbus = UDIV_ROUND_NEAREST(I2C_NSEC_PER_SEC, speed_freq); in i2c_compute_timing()
386 uint32_t i2cclk = UDIV_ROUND_NEAREST(I2C_NSEC_PER_SEC, clock_src); in i2c_compute_timing()
413 i2cbus = UDIV_ROUND_NEAREST(I2C_NSEC_PER_SEC, speed_freq); in i2c_compute_timing()
/optee_os-3.20.0/lib/libutils/ext/include/
A Dutil.h85 #define UDIV_ROUND_NEAREST(x, y) \ macro
92 #define UDIV_ROUND_NEAREST(x, y) (((x) + ((y) / 2)) / (y)) macro
/optee_os-3.20.0/core/drivers/clk/
A Dclk-stm32-core.c242 div = UDIV_ROUND_NEAREST((uint64_t)parent_rate, rate); in divider_get_val()

Completed in 13 milliseconds