Lines Matching refs:msg_timing
118 #define ASPEED_PECI_CLK_DIV1(msg_timing) (4 * (msg_timing) + 1) 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
328 *msg_timing = msg_timing_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()
357 val = FIELD_PREP(ASPEED_PECI_T_NEGO_MSG_MASK, msg_timing); in clk_aspeed_peci_set_rate()
358 val |= FIELD_PREP(ASPEED_PECI_T_NEGO_ADDR_MASK, msg_timing); in clk_aspeed_peci_set_rate()
376 int div, msg_timing, addr_timing, clk_div_exp; in clk_aspeed_peci_recalc_rate() local
380 msg_timing = FIELD_GET(ASPEED_PECI_T_NEGO_MSG_MASK, reg); in clk_aspeed_peci_recalc_rate()
383 if (msg_timing != addr_timing) in clk_aspeed_peci_recalc_rate()
389 div = ASPEED_PECI_CLK_DIV(msg_timing, clk_div_exp); in clk_aspeed_peci_recalc_rate()