Lines Matching refs:qmp

591 	struct qcom_qmp *qmp;  member
843 struct qcom_qmp *qmp = qphy->qmp; in qmp_ufs_com_init() local
849 ret = regulator_bulk_enable(cfg->num_vregs, qmp->vregs); in qmp_ufs_com_init()
851 dev_err(qmp->dev, "failed to enable regulators, err=%d\n", ret); in qmp_ufs_com_init()
855 ret = clk_bulk_prepare_enable(cfg->num_clks, qmp->clks); in qmp_ufs_com_init()
870 regulator_bulk_disable(cfg->num_vregs, qmp->vregs); in qmp_ufs_com_init()
877 struct qcom_qmp *qmp = qphy->qmp; in qmp_ufs_com_exit() local
880 reset_control_assert(qmp->ufs_reset); in qmp_ufs_com_exit()
882 clk_bulk_disable_unprepare(cfg->num_clks, qmp->clks); in qmp_ufs_com_exit()
884 regulator_bulk_disable(cfg->num_vregs, qmp->vregs); in qmp_ufs_com_exit()
892 struct qcom_qmp *qmp = qphy->qmp; in qmp_ufs_init() local
895 dev_vdbg(qmp->dev, "Initializing QMP phy\n"); in qmp_ufs_init()
903 if (!qmp->ufs_reset) { in qmp_ufs_init()
904 qmp->ufs_reset = in qmp_ufs_init()
905 devm_reset_control_get_exclusive(qmp->dev, in qmp_ufs_init()
908 if (IS_ERR(qmp->ufs_reset)) { in qmp_ufs_init()
909 ret = PTR_ERR(qmp->ufs_reset); in qmp_ufs_init()
910 dev_err(qmp->dev, in qmp_ufs_init()
914 qmp->ufs_reset = NULL; in qmp_ufs_init()
919 ret = reset_control_assert(qmp->ufs_reset); in qmp_ufs_init()
934 struct qcom_qmp *qmp = qphy->qmp; in qmp_ufs_power_on() local
962 ret = reset_control_deassert(qmp->ufs_reset); in qmp_ufs_power_on()
979 dev_err(qmp->dev, "phy initialization timed-out\n"); in qmp_ufs_power_on()
1046 struct qcom_qmp *qmp = dev_get_drvdata(dev); in qmp_ufs_vreg_init() local
1050 qmp->vregs = devm_kcalloc(dev, num, sizeof(*qmp->vregs), GFP_KERNEL); in qmp_ufs_vreg_init()
1051 if (!qmp->vregs) in qmp_ufs_vreg_init()
1055 qmp->vregs[i].supply = cfg->vreg_list[i]; in qmp_ufs_vreg_init()
1057 return devm_regulator_bulk_get(dev, num, qmp->vregs); in qmp_ufs_vreg_init()
1062 struct qcom_qmp *qmp = dev_get_drvdata(dev); in qmp_ufs_clk_init() local
1066 qmp->clks = devm_kcalloc(dev, num, sizeof(*qmp->clks), GFP_KERNEL); in qmp_ufs_clk_init()
1067 if (!qmp->clks) in qmp_ufs_clk_init()
1071 qmp->clks[i].id = cfg->clk_list[i]; in qmp_ufs_clk_init()
1073 return devm_clk_bulk_get(dev, num, qmp->clks); in qmp_ufs_clk_init()
1085 struct qcom_qmp *qmp = dev_get_drvdata(dev); in qmp_ufs_create() local
1139 qphy->qmp = qmp; in qmp_ufs_create()
1140 qmp->phys[id] = qphy; in qmp_ufs_create()
1187 struct qcom_qmp *qmp; in qmp_ufs_probe() local
1196 qmp = devm_kzalloc(dev, sizeof(*qmp), GFP_KERNEL); in qmp_ufs_probe()
1197 if (!qmp) in qmp_ufs_probe()
1200 qmp->dev = dev; in qmp_ufs_probe()
1201 dev_set_drvdata(dev, qmp); in qmp_ufs_probe()
1227 qmp->phys = devm_kcalloc(dev, num, sizeof(*qmp->phys), GFP_KERNEL); in qmp_ufs_probe()
1228 if (!qmp->phys) in qmp_ufs_probe()