Lines Matching refs:rate
47 static long scpi_clk_round_rate(struct clk_hw *hw, unsigned long rate, in scpi_clk_round_rate() argument
56 return rate; in scpi_clk_round_rate()
59 static int scpi_clk_set_rate(struct clk_hw *hw, unsigned long rate, in scpi_clk_set_rate() argument
64 return clk->scpi_ops->clk_set_val(clk->id, rate); in scpi_clk_set_rate()
74 static int __scpi_dvfs_round_rate(struct scpi_clk *clk, unsigned long rate) in __scpi_dvfs_round_rate() argument
82 if (ftmp >= (u32)rate) { in __scpi_dvfs_round_rate()
107 static long scpi_dvfs_round_rate(struct clk_hw *hw, unsigned long rate, in scpi_dvfs_round_rate() argument
112 return __scpi_dvfs_round_rate(clk, rate); in scpi_dvfs_round_rate()
115 static int __scpi_find_dvfs_index(struct scpi_clk *clk, unsigned long rate) in __scpi_find_dvfs_index() argument
121 if (opp->freq == rate) in __scpi_find_dvfs_index()
126 static int scpi_dvfs_set_rate(struct clk_hw *hw, unsigned long rate, in scpi_dvfs_set_rate() argument
130 int ret = __scpi_find_dvfs_index(clk, rate); in scpi_dvfs_set_rate()