Lines Matching refs:idx
76 int idx; in __scpi_dvfs_round_rate() local
80 for (idx = 0; idx < clk->info->count; idx++, opp++) { in __scpi_dvfs_round_rate()
97 int idx = clk->scpi_ops->dvfs_get_idx(clk->id); in scpi_dvfs_recalc_rate() local
100 if (idx < 0) in scpi_dvfs_recalc_rate()
103 opp = clk->info->opps + idx; in scpi_dvfs_recalc_rate()
117 int idx, max_opp = clk->info->count; in __scpi_find_dvfs_index() local
120 for (idx = 0; idx < max_opp; idx++, opp++) in __scpi_find_dvfs_index()
122 return idx; in __scpi_find_dvfs_index()
191 unsigned int idx = clkspec->args[0], count; in scpi_of_clk_src_get() local
195 if (idx == sclk->id) in scpi_of_clk_src_get()
206 int idx, count; in scpi_clk_add() local
229 for (idx = 0; idx < count; idx++) { in scpi_clk_add()
239 idx, &name)) { in scpi_clk_add()
245 idx, &val)) { in scpi_clk_add()
252 clks[idx] = scpi_clk_ops_init(dev, match, sclk, name); in scpi_clk_add()
253 if (IS_ERR_OR_NULL(clks[idx])) in scpi_clk_add()
257 clk_data->clk[idx] = sclk; in scpi_clk_add()