Lines Matching refs:qmp

1498 	struct qcom_qmp *qmp;  member
2012 struct qcom_qmp *qmp = qphy->qmp; in qmp_usb_init() local
2015 void __iomem *dp_com = qmp->dp_com; in qmp_usb_init()
2019 ret = regulator_bulk_enable(cfg->num_vregs, qmp->vregs); in qmp_usb_init()
2021 dev_err(qmp->dev, "failed to enable regulators, err=%d\n", ret); in qmp_usb_init()
2025 ret = reset_control_bulk_assert(cfg->num_resets, qmp->resets); in qmp_usb_init()
2027 dev_err(qmp->dev, "reset assert failed\n"); in qmp_usb_init()
2031 ret = reset_control_bulk_deassert(cfg->num_resets, qmp->resets); in qmp_usb_init()
2033 dev_err(qmp->dev, "reset deassert failed\n"); in qmp_usb_init()
2037 ret = clk_bulk_prepare_enable(cfg->num_clks, qmp->clks); in qmp_usb_init()
2069 reset_control_bulk_assert(cfg->num_resets, qmp->resets); in qmp_usb_init()
2071 regulator_bulk_disable(cfg->num_vregs, qmp->vregs); in qmp_usb_init()
2079 struct qcom_qmp *qmp = qphy->qmp; in qmp_usb_exit() local
2082 reset_control_bulk_assert(cfg->num_resets, qmp->resets); in qmp_usb_exit()
2084 clk_bulk_disable_unprepare(cfg->num_clks, qmp->clks); in qmp_usb_exit()
2086 regulator_bulk_disable(cfg->num_vregs, qmp->vregs); in qmp_usb_exit()
2094 struct qcom_qmp *qmp = qphy->qmp; in qmp_usb_power_on() local
2107 dev_err(qmp->dev, "pipe_clk enable failed err=%d\n", ret); in qmp_usb_power_on()
2142 dev_err(qmp->dev, "phy initialization timed-out\n"); in qmp_usb_power_on()
2258 struct qcom_qmp *qmp = dev_get_drvdata(dev); in qmp_usb_runtime_suspend() local
2259 struct qmp_phy *qphy = qmp->phys[0]; in qmp_usb_runtime_suspend()
2272 clk_bulk_disable_unprepare(cfg->num_clks, qmp->clks); in qmp_usb_runtime_suspend()
2279 struct qcom_qmp *qmp = dev_get_drvdata(dev); in qmp_usb_runtime_resume() local
2280 struct qmp_phy *qphy = qmp->phys[0]; in qmp_usb_runtime_resume()
2291 ret = clk_bulk_prepare_enable(cfg->num_clks, qmp->clks); in qmp_usb_runtime_resume()
2298 clk_bulk_disable_unprepare(cfg->num_clks, qmp->clks); in qmp_usb_runtime_resume()
2309 struct qcom_qmp *qmp = dev_get_drvdata(dev); in qmp_usb_vreg_init() local
2313 qmp->vregs = devm_kcalloc(dev, num, sizeof(*qmp->vregs), GFP_KERNEL); in qmp_usb_vreg_init()
2314 if (!qmp->vregs) in qmp_usb_vreg_init()
2318 qmp->vregs[i].supply = cfg->vreg_list[i]; in qmp_usb_vreg_init()
2320 return devm_regulator_bulk_get(dev, num, qmp->vregs); in qmp_usb_vreg_init()
2325 struct qcom_qmp *qmp = dev_get_drvdata(dev); in qmp_usb_reset_init() local
2329 qmp->resets = devm_kcalloc(dev, cfg->num_resets, in qmp_usb_reset_init()
2330 sizeof(*qmp->resets), GFP_KERNEL); in qmp_usb_reset_init()
2331 if (!qmp->resets) in qmp_usb_reset_init()
2335 qmp->resets[i].id = cfg->reset_list[i]; in qmp_usb_reset_init()
2337 ret = devm_reset_control_bulk_get_exclusive(dev, cfg->num_resets, qmp->resets); in qmp_usb_reset_init()
2346 struct qcom_qmp *qmp = dev_get_drvdata(dev); in qmp_usb_clk_init() local
2350 qmp->clks = devm_kcalloc(dev, num, sizeof(*qmp->clks), GFP_KERNEL); in qmp_usb_clk_init()
2351 if (!qmp->clks) in qmp_usb_clk_init()
2355 qmp->clks[i].id = cfg->clk_list[i]; in qmp_usb_clk_init()
2357 return devm_clk_bulk_get(dev, num, qmp->clks); in qmp_usb_clk_init()
2383 static int phy_pipe_clk_register(struct qcom_qmp *qmp, struct device_node *np) in phy_pipe_clk_register() argument
2391 dev_err(qmp->dev, "%pOFn: No clock-output-names\n", np); in phy_pipe_clk_register()
2395 fixed = devm_kzalloc(qmp->dev, sizeof(*fixed), GFP_KERNEL); in phy_pipe_clk_register()
2405 ret = devm_clk_hw_register(qmp->dev, &fixed->hw); in phy_pipe_clk_register()
2417 return devm_add_action_or_reset(qmp->dev, phy_clk_release_provider, np); in phy_pipe_clk_register()
2446 struct qcom_qmp *qmp = dev_get_drvdata(dev); in qmp_usb_create() local
2521 qphy->qmp = qmp; in qmp_usb_create()
2522 qmp->phys[id] = qphy; in qmp_usb_create()
2598 struct qcom_qmp *qmp; in qmp_usb_probe() local
2607 qmp = devm_kzalloc(dev, sizeof(*qmp), GFP_KERNEL); in qmp_usb_probe()
2608 if (!qmp) in qmp_usb_probe()
2611 qmp->dev = dev; in qmp_usb_probe()
2612 dev_set_drvdata(dev, qmp); in qmp_usb_probe()
2626 qmp->dp_com = devm_platform_ioremap_resource(pdev, 1); in qmp_usb_probe()
2627 if (IS_ERR(qmp->dp_com)) in qmp_usb_probe()
2628 return PTR_ERR(qmp->dp_com); in qmp_usb_probe()
2649 qmp->phys = devm_kcalloc(dev, num, sizeof(*qmp->phys), GFP_KERNEL); in qmp_usb_probe()
2650 if (!qmp->phys) in qmp_usb_probe()
2677 ret = phy_pipe_clk_register(qmp, child); in qmp_usb_probe()
2679 dev_err(qmp->dev, in qmp_usb_probe()