Lines Matching full:scm
155 if (of_device_is_compatible(__scm ? __scm->dev->of_node : NULL, "qcom,scm-sc7180")) { in __get_convention()
186 * Sends a command to the SCM and waits for the command to finish processing.
200 pr_err("Unknown current SCM calling convention.\n"); in qcom_scm_call()
213 * Sends a command to the SCM and waits for the command to finish processing.
227 pr_err("Unknown current SCM calling convention.\n"); in qcom_scm_call_atomic()
268 * Set the Linux entry point for the SCM to transfer control to when coming
456 * During the scm call memory protection will be enabled for the meta in qcom_scm_pas_init_image()
955 * Return: true iff the SCM calls wrapped by qcom_scm_ice_invalidate_key() and
972 * these SoCs; only this SCM call does.
1004 * these SoCs; only this SCM call does.
1079 * @resp: response buffer passed to SCM
1081 * Write HDCP register(s) through SCM.
1165 * qcom_scm_is_available() - Checks if SCM is available
1175 struct qcom_scm *scm; in qcom_scm_probe() local
1179 scm = devm_kzalloc(&pdev->dev, sizeof(*scm), GFP_KERNEL); in qcom_scm_probe()
1180 if (!scm) in qcom_scm_probe()
1183 ret = qcom_scm_find_dload_address(&pdev->dev, &scm->dload_mode_addr); in qcom_scm_probe()
1189 scm->core_clk = devm_clk_get(&pdev->dev, "core"); in qcom_scm_probe()
1190 if (IS_ERR(scm->core_clk)) { in qcom_scm_probe()
1191 if (PTR_ERR(scm->core_clk) == -EPROBE_DEFER) in qcom_scm_probe()
1192 return PTR_ERR(scm->core_clk); in qcom_scm_probe()
1196 return PTR_ERR(scm->core_clk); in qcom_scm_probe()
1199 scm->core_clk = NULL; in qcom_scm_probe()
1202 scm->iface_clk = devm_clk_get(&pdev->dev, "iface"); in qcom_scm_probe()
1203 if (IS_ERR(scm->iface_clk)) { in qcom_scm_probe()
1204 if (PTR_ERR(scm->iface_clk) == -EPROBE_DEFER) in qcom_scm_probe()
1205 return PTR_ERR(scm->iface_clk); in qcom_scm_probe()
1209 return PTR_ERR(scm->iface_clk); in qcom_scm_probe()
1212 scm->iface_clk = NULL; in qcom_scm_probe()
1215 scm->bus_clk = devm_clk_get(&pdev->dev, "bus"); in qcom_scm_probe()
1216 if (IS_ERR(scm->bus_clk)) { in qcom_scm_probe()
1217 if (PTR_ERR(scm->bus_clk) == -EPROBE_DEFER) in qcom_scm_probe()
1218 return PTR_ERR(scm->bus_clk); in qcom_scm_probe()
1222 return PTR_ERR(scm->bus_clk); in qcom_scm_probe()
1225 scm->bus_clk = NULL; in qcom_scm_probe()
1228 scm->reset.ops = &qcom_scm_pas_reset_ops; in qcom_scm_probe()
1229 scm->reset.nr_resets = 1; in qcom_scm_probe()
1230 scm->reset.of_node = pdev->dev.of_node; in qcom_scm_probe()
1231 ret = devm_reset_controller_register(&pdev->dev, &scm->reset); in qcom_scm_probe()
1236 ret = clk_set_rate(scm->core_clk, INT_MAX); in qcom_scm_probe()
1240 __scm = scm; in qcom_scm_probe()
1264 { .compatible = "qcom,scm-apq8064",
1267 { .compatible = "qcom,scm-apq8084", .data = (void *)(SCM_HAS_CORE_CLK |
1271 { .compatible = "qcom,scm-ipq4019" },
1272 { .compatible = "qcom,scm-msm8660", .data = (void *) SCM_HAS_CORE_CLK },
1273 { .compatible = "qcom,scm-msm8960", .data = (void *) SCM_HAS_CORE_CLK },
1274 { .compatible = "qcom,scm-msm8916", .data = (void *)(SCM_HAS_CORE_CLK |
1278 { .compatible = "qcom,scm-msm8974", .data = (void *)(SCM_HAS_CORE_CLK |
1282 { .compatible = "qcom,scm-msm8994" },
1283 { .compatible = "qcom,scm-msm8996" },
1284 { .compatible = "qcom,scm" },