Lines Matching refs:rcc
306 struct rpm_cc *rcc = r->rpm_cc; in clk_rpm_xo_prepare() local
310 mutex_lock(&rcc->xo_lock); in clk_rpm_xo_prepare()
312 value = rcc->xo_buffer_value | (QCOM_RPM_XO_MODE_ON << r->xo_offset); in clk_rpm_xo_prepare()
316 rcc->xo_buffer_value = value; in clk_rpm_xo_prepare()
319 mutex_unlock(&rcc->xo_lock); in clk_rpm_xo_prepare()
327 struct rpm_cc *rcc = r->rpm_cc; in clk_rpm_xo_unprepare() local
331 mutex_lock(&rcc->xo_lock); in clk_rpm_xo_unprepare()
333 value = rcc->xo_buffer_value & ~(QCOM_RPM_XO_MODE_ON << r->xo_offset); in clk_rpm_xo_unprepare()
337 rcc->xo_buffer_value = value; in clk_rpm_xo_unprepare()
340 mutex_unlock(&rcc->xo_lock); in clk_rpm_xo_unprepare()
592 struct rpm_cc *rcc = data; in qcom_rpm_clk_hw_get() local
595 if (idx >= rcc->num_clks) { in qcom_rpm_clk_hw_get()
600 return rcc->clks[idx] ? &rcc->clks[idx]->hw : ERR_PTR(-ENOENT); in qcom_rpm_clk_hw_get()
605 struct rpm_cc *rcc; in rpm_clk_probe() local
625 rcc = devm_kzalloc(&pdev->dev, sizeof(*rcc), GFP_KERNEL); in rpm_clk_probe()
626 if (!rcc) in rpm_clk_probe()
629 rcc->clks = rpm_clks; in rpm_clk_probe()
630 rcc->num_clks = num_clks; in rpm_clk_probe()
631 mutex_init(&rcc->xo_lock); in rpm_clk_probe()
638 rpm_clks[i]->rpm_cc = rcc; in rpm_clk_probe()
655 rcc); in rpm_clk_probe()