Lines Matching full:rcc
256 struct rpm_cc *rcc = r->rpm_cc; in clk_rpm_xo_prepare() local
260 mutex_lock(&rcc->xo_lock); in clk_rpm_xo_prepare()
262 value = rcc->xo_buffer_value | (QCOM_RPM_XO_MODE_ON << r->xo_offset); in clk_rpm_xo_prepare()
266 rcc->xo_buffer_value = value; in clk_rpm_xo_prepare()
269 mutex_unlock(&rcc->xo_lock); in clk_rpm_xo_prepare()
277 struct rpm_cc *rcc = r->rpm_cc; in clk_rpm_xo_unprepare() local
281 mutex_lock(&rcc->xo_lock); in clk_rpm_xo_unprepare()
283 value = rcc->xo_buffer_value & ~(QCOM_RPM_XO_MODE_ON << r->xo_offset); in clk_rpm_xo_unprepare()
287 rcc->xo_buffer_value = value; in clk_rpm_xo_unprepare()
290 mutex_unlock(&rcc->xo_lock); in clk_rpm_xo_unprepare()
519 struct rpm_cc *rcc = data; in qcom_rpm_clk_hw_get() local
522 if (idx >= rcc->num_clks) { in qcom_rpm_clk_hw_get()
527 return rcc->clks[idx] ? &rcc->clks[idx]->hw : ERR_PTR(-ENOENT); in qcom_rpm_clk_hw_get()
532 struct rpm_cc *rcc; in rpm_clk_probe() local
552 rcc = devm_kzalloc(&pdev->dev, sizeof(*rcc), GFP_KERNEL); in rpm_clk_probe()
553 if (!rcc) in rpm_clk_probe()
556 rcc->clks = rpm_clks; in rpm_clk_probe()
557 rcc->num_clks = num_clks; in rpm_clk_probe()
558 mutex_init(&rcc->xo_lock); in rpm_clk_probe()
565 rpm_clks[i]->rpm_cc = rcc; in rpm_clk_probe()
582 rcc); in rpm_clk_probe()