Searched refs:clk_divs (Results 1 – 1 of 1) sorted by relevance
37 DIV_ROUND_UP((d) * (p)->clk_rate, clk_divs[(p)->cks])40 #define DIV_BY_CLKS_PER_SEC(p, d) ((d) * clk_divs[(p)->cks] / (p)->clk_rate)42 static const unsigned int clk_divs[] = { 1, 4, 16, 32, 64, 128, 1024, 4096 }; variable247 for (i = ARRAY_SIZE(clk_divs) - 1; i >= 0; i--) { in rwdt_probe()248 clks_per_sec = priv->clk_rate / clk_divs[i]; in rwdt_probe()