Lines Matching full:rpm
19 #include <dt-bindings/mfd/qcom-rpm.h>
97 struct qcom_rpm *rpm; member
102 struct qcom_rpm *rpm; member
123 * RPM clock. in clk_rpm_handoff()
129 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, in clk_rpm_handoff()
133 ret = qcom_rpm_write(r->rpm, QCOM_RPM_SLEEP_STATE, in clk_rpm_handoff()
145 return qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, in clk_rpm_set_rate_active()
153 return qcom_rpm_write(r->rpm, QCOM_RPM_SLEEP_STATE, in clk_rpm_set_rate_sleep()
183 /* Don't send requests to the RPM if the rate has not been set. */ in clk_rpm_prepare()
265 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, clk_id, &value, 1); in clk_rpm_xo_prepare()
286 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, clk_id, &value, 1); in clk_rpm_xo_unprepare()
301 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, in clk_rpm_fixed_prepare()
315 ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, in clk_rpm_fixed_unprepare()
365 * RPM handles rate rounding and we don't have a way to in clk_rpm_round_rate()
378 * RPM handles rate rounding and we don't have a way to in clk_rpm_recalc_rate()
553 struct qcom_rpm *rpm; in rpm_clk_probe() local
557 rpm = dev_get_drvdata(pdev->dev.parent); in rpm_clk_probe()
558 if (!rpm) { in rpm_clk_probe()
559 dev_err(&pdev->dev, "Unable to retrieve handle to RPM\n"); in rpm_clk_probe()
582 rpm_clks[i]->rpm = rpm; in rpm_clk_probe()
606 dev_err(&pdev->dev, "Error registering RPM Clock driver (%d)\n", ret); in rpm_clk_probe()
618 .name = "qcom-clk-rpm",
637 MODULE_DESCRIPTION("Qualcomm RPM Clock Controller Driver");
639 MODULE_ALIAS("platform:qcom-clk-rpm");