Lines Matching refs:cc
208 static void qcom_cc_drop_protected(struct device *dev, struct qcom_cc *cc) in qcom_cc_drop_protected() argument
216 if (i >= cc->num_rclks) in qcom_cc_drop_protected()
219 cc->rclks[i] = NULL; in qcom_cc_drop_protected()
226 struct qcom_cc *cc = data; in qcom_cc_clk_hw_get() local
229 if (idx >= cc->num_rclks) { in qcom_cc_clk_hw_get()
234 return cc->rclks[idx] ? &cc->rclks[idx]->hw : NULL; in qcom_cc_clk_hw_get()
243 struct qcom_cc *cc; in qcom_cc_really_probe() local
250 cc = devm_kzalloc(dev, sizeof(*cc), GFP_KERNEL); in qcom_cc_really_probe()
251 if (!cc) in qcom_cc_really_probe()
254 reset = &cc->reset; in qcom_cc_really_probe()
282 cc->rclks = rclks; in qcom_cc_really_probe()
283 cc->num_rclks = num_clks; in qcom_cc_really_probe()
285 qcom_cc_drop_protected(dev, cc); in qcom_cc_really_probe()
302 ret = devm_of_clk_add_hw_provider(dev, qcom_cc_clk_hw_get, cc); in qcom_cc_really_probe()