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