Lines Matching defs:sclk
140 struct scpi_clk *sclk, const char *name)
150 sclk->hw.init = &init;
151 sclk->scpi_ops = get_scpi_ops();
154 sclk->info = sclk->scpi_ops->dvfs_get_info(sclk->id);
155 if (IS_ERR(sclk->info))
156 return PTR_ERR(sclk->info);
158 if (sclk->scpi_ops->clk_get_range(sclk->id, &min, &max) || !max)
164 ret = devm_clk_hw_register(dev, &sclk->hw);
166 clk_hw_set_rate_range(&sclk->hw, min, max);
178 struct scpi_clk *sclk;
183 sclk = clk_data->clk[count];
184 if (idx == sclk->id)
185 return &sclk->hw;
214 struct scpi_clk *sclk;
218 sclk = devm_kzalloc(dev, sizeof(*sclk), GFP_KERNEL);
219 if (!sclk)
234 sclk->id = val;
236 err = scpi_clk_ops_init(dev, match, sclk, name);
243 clk_data->clk[idx] = sclk;