Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/tty/serial/
Dqcom_geni_serial.c1146 static unsigned long find_clk_rate_in_tol(struct clk *clk, unsigned int desired_clk, in find_clk_rate_in_tol() argument
1154 abs_tol = div_u64((u64)desired_clk * percent_tol, 100); in find_clk_rate_in_tol()
1158 mult = (u64)div * desired_clk; in find_clk_rate_in_tol()
1173 div = DIV_ROUND_CLOSEST(freq, desired_clk); in find_clk_rate_in_tol()
1175 if (achieved <= desired_clk + abs_tol && in find_clk_rate_in_tol()
1176 achieved >= desired_clk - abs_tol) { in find_clk_rate_in_tol()
1181 div = DIV_ROUND_UP(freq, desired_clk); in find_clk_rate_in_tol()
1191 unsigned long desired_clk; in get_clk_div_rate() local
1193 desired_clk = baud * sampling_rate; in get_clk_div_rate()
1194 if (!desired_clk) in get_clk_div_rate()
[all …]