Searched refs:UDIV_ROUND_NEAREST (Results 1 – 9 of 9) sorted by relevance
/optee_os-3.20.0/core/drivers/clk/sam/ |
A D | at91_usb.c | 35 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 D | at91_generated.c | 64 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 D | at91_audio_pll.c | 156 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 D | at91_master.c | 91 return UDIV_ROUND_NEAREST(parent_rate, pres); in clk_master_pres_get_rate()
|
A D | at91_pll.c | 176 tmpmul = UDIV_ROUND_NEAREST(rate, parent_rate / tmpdiv); in clk_pll_get_best_div_mul()
|
/optee_os-3.20.0/core/drivers/ |
A D | atmel_rtc.c | 214 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 D | stm32_i2c.c | 385 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 D | util.h | 85 #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 D | clk-stm32-core.c | 242 div = UDIV_ROUND_NEAREST((uint64_t)parent_rate, rate); in divider_get_val()
|
Completed in 13 milliseconds