Lines Matching refs:sclk
151 struct scpi_clk *sclk, const char *name) in scpi_clk_ops_init() argument
161 sclk->hw.init = &init; in scpi_clk_ops_init()
162 sclk->scpi_ops = get_scpi_ops(); in scpi_clk_ops_init()
165 sclk->info = sclk->scpi_ops->dvfs_get_info(sclk->id); in scpi_clk_ops_init()
166 if (IS_ERR(sclk->info)) in scpi_clk_ops_init()
167 return PTR_ERR(sclk->info); in scpi_clk_ops_init()
169 if (sclk->scpi_ops->clk_get_range(sclk->id, &min, &max) || !max) in scpi_clk_ops_init()
175 ret = devm_clk_hw_register(dev, &sclk->hw); in scpi_clk_ops_init()
177 clk_hw_set_rate_range(&sclk->hw, min, max); in scpi_clk_ops_init()
189 struct scpi_clk *sclk; in scpi_of_clk_src_get() local
194 sclk = clk_data->clk[count]; in scpi_of_clk_src_get()
195 if (idx == sclk->id) in scpi_of_clk_src_get()
196 return &sclk->hw; in scpi_of_clk_src_get()
225 struct scpi_clk *sclk; in scpi_clk_add() local
229 sclk = devm_kzalloc(dev, sizeof(*sclk), GFP_KERNEL); in scpi_clk_add()
230 if (!sclk) in scpi_clk_add()
245 sclk->id = val; in scpi_clk_add()
247 err = scpi_clk_ops_init(dev, match, sclk, name); in scpi_clk_add()
252 clk_data->clk[idx] = sclk; in scpi_clk_add()