Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 3 of 3) sorted by relevance

/optee_os/core/drivers/clk/
H A Dclk-stm32mp21.c2342 unsigned long ratio = 0; in clk_stm32_flexgen_get_round_rate() local
2346 ratio = UDIV_ROUND_NEAREST((uint64_t)freq, rate); in clk_stm32_flexgen_get_round_rate()
2348 if (!ratio) in clk_stm32_flexgen_get_round_rate()
2349 ratio = 1; in clk_stm32_flexgen_get_round_rate()
2350 else if (ratio > FLEXGEN_FINDIV_MAX) in clk_stm32_flexgen_get_round_rate()
2351 ratio = FLEXGEN_FINDIV_MAX; in clk_stm32_flexgen_get_round_rate()
2353 freq = UDIV_ROUND_NEAREST((uint64_t)freq, ratio); in clk_stm32_flexgen_get_round_rate()
2362 *findiv = ratio - 1; in clk_stm32_flexgen_get_round_rate()
H A Dclk-stm32mp25.c2370 unsigned long ratio = 0; in clk_stm32_flexgen_get_round_rate() local
2374 ratio = UDIV_ROUND_NEAREST((uint64_t)freq, rate); in clk_stm32_flexgen_get_round_rate()
2376 if (!ratio) in clk_stm32_flexgen_get_round_rate()
2377 ratio = 1; in clk_stm32_flexgen_get_round_rate()
2378 else if (ratio > 64) in clk_stm32_flexgen_get_round_rate()
2379 ratio = 64; in clk_stm32_flexgen_get_round_rate()
2381 freq = UDIV_ROUND_NEAREST((uint64_t)freq, ratio); in clk_stm32_flexgen_get_round_rate()
2390 *findiv = ratio - 1; in clk_stm32_flexgen_get_round_rate()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dssl_tls.c7547 uint32_t ratio = ssl->conf->hs_timeout_max / ssl->conf->hs_timeout_min + 1; in mbedtls_ssl_resend_hello_request() local
7550 while (ratio != 0) { in mbedtls_ssl_resend_hello_request()
7552 ratio >>= 1; in mbedtls_ssl_resend_hello_request()