Home
last modified time | relevance | path

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

/linux/drivers/peci/controller/
H A Dpeci-aspeed.c119 #define ASPEED_PECI_CLK_DIV2(clk_div_exp) BIT(clk_div_exp) argument
120 #define ASPEED_PECI_CLK_DIV(msg_timing, clk_div_exp) \ argument
121 (4 * ASPEED_PECI_CLK_DIV1(msg_timing) * ASPEED_PECI_CLK_DIV2(clk_div_exp))
313 static void clk_aspeed_peci_find_div_values(unsigned long rate, int *msg_timing, int *clk_div_exp) in clk_aspeed_peci_find_div_values() argument
329 *clk_div_exp = clk_div_exp_temp; in clk_aspeed_peci_find_div_values()
335 int msg_timing, clk_div_exp; in clk_aspeed_peci_get_div() local
337 clk_aspeed_peci_find_div_values(this_rate, &msg_timing, &clk_div_exp); in clk_aspeed_peci_get_div()
339 return ASPEED_PECI_CLK_DIV(msg_timing, clk_div_exp); in clk_aspeed_peci_get_div()
348 int clk_div_exp, msg_timing; in clk_aspeed_peci_set_rate() local
351 clk_aspeed_peci_find_div_values(this_rate, &msg_timing, &clk_div_exp); in clk_aspeed_peci_set_rate()
[all …]