Lines Matching refs:desc
104 qcom_cc_map(struct platform_device *pdev, const struct qcom_cc_desc *desc) in qcom_cc_map() argument
113 return devm_regmap_init_mmio(dev, base, desc->config); in qcom_cc_map()
255 const struct qcom_cc_desc *desc) in qcom_cc_icc_register() argument
264 if (!desc->icc_hws) in qcom_cc_icc_register()
267 icd = devm_kcalloc(dev, desc->num_icc_hws, sizeof(*icd), GFP_KERNEL); in qcom_cc_icc_register()
271 for (i = 0; i < desc->num_icc_hws; i++) { in qcom_cc_icc_register()
272 icd[i].master_id = desc->icc_hws[i].master_id; in qcom_cc_icc_register()
273 icd[i].slave_id = desc->icc_hws[i].slave_id; in qcom_cc_icc_register()
274 hws = &desc->clks[desc->icc_hws[i].clk_id]->hw; in qcom_cc_icc_register()
282 return devm_icc_clk_register(dev, desc->icc_first_node_id, in qcom_cc_icc_register()
283 desc->num_icc_hws, icd); in qcom_cc_icc_register()
287 const struct qcom_cc_desc *desc, struct regmap *regmap) in qcom_cc_really_probe() argument
293 size_t num_clks = desc->num_clks; in qcom_cc_really_probe()
294 struct clk_regmap **rclks = desc->clks; in qcom_cc_really_probe()
295 size_t num_clk_hws = desc->num_clk_hws; in qcom_cc_really_probe()
296 struct clk_hw **clk_hws = desc->clk_hws; in qcom_cc_really_probe()
306 reset->rcdev.nr_resets = desc->num_resets; in qcom_cc_really_probe()
308 reset->reset_map = desc->resets; in qcom_cc_really_probe()
314 if (desc->gdscs && desc->num_gdscs) { in qcom_cc_really_probe()
319 scd->scs = desc->gdscs; in qcom_cc_really_probe()
320 scd->num = desc->num_gdscs; in qcom_cc_really_probe()
354 return qcom_cc_icc_register(dev, desc); in qcom_cc_really_probe()
358 int qcom_cc_probe(struct platform_device *pdev, const struct qcom_cc_desc *desc) in qcom_cc_probe() argument
362 regmap = qcom_cc_map(pdev, desc); in qcom_cc_probe()
366 return qcom_cc_really_probe(&pdev->dev, desc, regmap); in qcom_cc_probe()
371 const struct qcom_cc_desc *desc) in qcom_cc_probe_by_index() argument
380 regmap = devm_regmap_init_mmio(&pdev->dev, base, desc->config); in qcom_cc_probe_by_index()
384 return qcom_cc_really_probe(&pdev->dev, desc, regmap); in qcom_cc_probe_by_index()