Home
last modified time | relevance | path

Searched refs:qmp (Results 1 – 25 of 41) sorted by relevance

12

/linux/drivers/soc/qcom/
H A Dqcom_aoss.c58 struct qmp *qmp; member
78 struct qmp { struct
98 static void qmp_kick(struct qmp *qmp) in qmp_kick() argument
100 mbox_send_message(qmp->mbox_chan, NULL); in qmp_kick()
101 mbox_client_txdone(qmp->mbox_chan, 0); in qmp_kick()
104 static bool qmp_magic_valid(struct qmp *qmp) in qmp_magic_valid() argument
106 return readl(qmp->msgram + QMP_DESC_MAGIC) == QMP_MAGIC; in qmp_magic_valid()
109 static bool qmp_link_acked(struct qmp *qmp) in qmp_link_acked() argument
111 return readl(qmp->msgram + QMP_DESC_MCORE_LINK_STATE_ACK) == QMP_STATE_UP; in qmp_link_acked()
114 static bool qmp_mcore_channel_acked(struct qmp *qmp) in qmp_mcore_channel_acked() argument
[all …]
H A Dqcom_stats.c41 static struct qmp *qcom_stats_qmp;
/linux/drivers/phy/qualcomm/
H A Dphy-qcom-qmp-combo.c1818 int (*configure_dp_phy)(struct qmp_combo *qmp);
1819 void (*configure_dp_tx)(struct qmp_combo *qmp);
1820 int (*calibrate_dp_phy)(struct qmp_combo *qmp);
1821 void (*dp_aux_init)(struct qmp_combo *qmp);
1892 static void qmp_v3_dp_aux_init(struct qmp_combo *qmp);
1893 static void qmp_v3_configure_dp_tx(struct qmp_combo *qmp);
1894 static int qmp_v3_configure_dp_phy(struct qmp_combo *qmp);
1895 static int qmp_v3_calibrate_dp_phy(struct qmp_combo *qmp);
1897 static void qmp_v4_dp_aux_init(struct qmp_combo *qmp);
1898 static void qmp_v4_configure_dp_tx(struct qmp_combo *qmp);
[all …]
H A Dphy-qcom-qmp-usb-legacy.c727 static int qmp_usb_legacy_serdes_init(struct qmp_usb *qmp) in qmp_usb_legacy_serdes_init() argument
729 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_usb_legacy_serdes_init()
730 void __iomem *serdes = qmp->serdes; in qmp_usb_legacy_serdes_init()
741 struct qmp_usb *qmp = phy_get_drvdata(phy); in qmp_usb_legacy_init_dp_com() local
742 void __iomem *dp_com = qmp->dp_com; in qmp_usb_legacy_init_dp_com()
768 struct qmp_usb *qmp = phy_get_drvdata(phy); in qmp_usb_legacy_init() local
769 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_usb_legacy_init()
770 void __iomem *pcs = qmp->pcs; in qmp_usb_legacy_init()
773 ret = regulator_bulk_enable(cfg->num_vregs, qmp->vregs); in qmp_usb_legacy_init()
775 dev_err(qmp->dev, "failed to enable regulators, err=%d\n", ret); in qmp_usb_legacy_init()
[all …]
H A Dphy-qcom-qmp-pcie-msm8996.c191 struct qcom_qmp *qmp; member
282 struct qcom_qmp *qmp = qphy->qmp; in qmp_pcie_msm8996_serdes_init() local
291 qmp_configure(qmp->dev, serdes, serdes_tbl, serdes_tbl_num); in qmp_pcie_msm8996_serdes_init()
301 dev_err(qmp->dev, in qmp_pcie_msm8996_serdes_init()
311 struct qcom_qmp *qmp = qphy->qmp; in qmp_pcie_msm8996_com_init() local
316 mutex_lock(&qmp->phy_mutex); in qmp_pcie_msm8996_com_init()
317 if (qmp->init_count++) { in qmp_pcie_msm8996_com_init()
318 mutex_unlock(&qmp->phy_mutex); in qmp_pcie_msm8996_com_init()
322 ret = regulator_bulk_enable(cfg->num_vregs, qmp->vregs); in qmp_pcie_msm8996_com_init()
324 dev_err(qmp->dev, "failed to enable regulators, err=%d\n", ret); in qmp_pcie_msm8996_com_init()
[all …]
H A Dphy-qcom-qmp-usb.c1707 static int qmp_usb_serdes_init(struct qmp_usb *qmp) in qmp_usb_serdes_init() argument
1709 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_usb_serdes_init()
1710 void __iomem *serdes = qmp->serdes; in qmp_usb_serdes_init()
1714 qmp_configure(qmp->dev, serdes, serdes_tbl, serdes_tbl_num); in qmp_usb_serdes_init()
1721 struct qmp_usb *qmp = phy_get_drvdata(phy); in qmp_usb_init() local
1722 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_usb_init()
1723 void __iomem *pcs = qmp->pcs; in qmp_usb_init()
1726 ret = regulator_bulk_enable(cfg->num_vregs, qmp->vregs); in qmp_usb_init()
1728 dev_err(qmp->dev, "failed to enable regulators, err=%d\n", ret); in qmp_usb_init()
1732 ret = reset_control_bulk_assert(qmp->num_resets, qmp->resets); in qmp_usb_init()
[all …]
H A Dphy-qcom-qmp-ufs.c1755 static void qmp_ufs_serdes_init(struct qmp_ufs *qmp, const struct qmp_phy_cfg_tbls *tbls) in qmp_ufs_serdes_init() argument
1757 void __iomem *serdes = qmp->serdes; in qmp_ufs_serdes_init()
1759 qmp_configure(qmp->dev, serdes, tbls->serdes, tbls->serdes_num); in qmp_ufs_serdes_init()
1762 static void qmp_ufs_lanes_init(struct qmp_ufs *qmp, const struct qmp_phy_cfg_tbls *tbls) in qmp_ufs_lanes_init() argument
1764 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_ufs_lanes_init()
1765 void __iomem *tx = qmp->tx; in qmp_ufs_lanes_init()
1766 void __iomem *rx = qmp->rx; in qmp_ufs_lanes_init()
1768 qmp_configure_lane(qmp->dev, tx, tbls->tx, tbls->tx_num, 1); in qmp_ufs_lanes_init()
1769 qmp_configure_lane(qmp->dev, rx, tbls->rx, tbls->rx_num, 1); in qmp_ufs_lanes_init()
1772 qmp_configure_lane(qmp->dev, qmp->tx2, tbls->tx, tbls->tx_num, 2); in qmp_ufs_lanes_init()
[all …]
H A Dphy-qcom-qmp-pcie.c4444 static void qmp_pcie_init_port_b(struct qmp_pcie *qmp, const struct qmp_phy_cfg_tbls *tbls) in qmp_pcie_init_port_b() argument
4446 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_pcie_init_port_b()
4450 serdes = qmp->port_b + offs->serdes; in qmp_pcie_init_port_b()
4451 tx3 = qmp->port_b + offs->tx; in qmp_pcie_init_port_b()
4452 rx3 = qmp->port_b + offs->rx; in qmp_pcie_init_port_b()
4453 tx4 = qmp->port_b + offs->tx2; in qmp_pcie_init_port_b()
4454 rx4 = qmp->port_b + offs->rx2; in qmp_pcie_init_port_b()
4455 pcs = qmp->port_b + offs->pcs; in qmp_pcie_init_port_b()
4456 pcs_misc = qmp->port_b + offs->pcs_misc; in qmp_pcie_init_port_b()
4457 ln_shrd = qmp->port_b + offs->ln_shrd; in qmp_pcie_init_port_b()
[all …]
H A DMakefile11 obj-$(CONFIG_PHY_QCOM_QMP_COMBO) += phy-qcom-qmp-combo.o phy-qcom-qmp-usbc.o
12 obj-$(CONFIG_PHY_QCOM_QMP_PCIE) += phy-qcom-qmp-pcie.o
13 obj-$(CONFIG_PHY_QCOM_QMP_PCIE_8996) += phy-qcom-qmp-pcie-msm8996.o
14 obj-$(CONFIG_PHY_QCOM_QMP_UFS) += phy-qcom-qmp-ufs.o
15 obj-$(CONFIG_PHY_QCOM_QMP_USB) += phy-qcom-qmp-usb.o
16 obj-$(CONFIG_PHY_QCOM_QMP_USB_LEGACY) += phy-qcom-qmp-usb-legacy.o
/linux/include/linux/soc/qcom/
H A Dqcom_aoss.h12 struct qmp;
16 int qmp_send(struct qmp *qmp, const char *fmt, ...);
17 struct qmp *qmp_get(struct device *dev);
18 void qmp_put(struct qmp *qmp);
22 static inline int qmp_send(struct qmp *qmp, const char *fmt, ...) in qmp_send() argument
27 static inline struct qmp *qmp_get(struct device *dev) in qmp_get()
32 static inline void qmp_put(struct qmp *qmp) in qmp_put() argument
/linux/drivers/net/ipa/
H A Dipa_power.c48 struct qmp *qmp; member
199 struct qmp *qmp = qmp_get(power->dev); in ipa_power_retention_init() local
201 if (IS_ERR(qmp)) { in ipa_power_retention_init()
202 if (PTR_ERR(qmp) == -EPROBE_DEFER) in ipa_power_retention_init()
206 qmp = NULL; in ipa_power_retention_init()
208 power->qmp = qmp; in ipa_power_retention_init()
215 qmp_put(power->qmp); in ipa_power_retention_exit()
216 power->qmp = NULL; in ipa_power_retention_exit()
226 if (!power->qmp) in ipa_power_retention()
229 ret = qmp_send(power->qmp, fmt, enable ? '1' : '0'); in ipa_power_retention()
/linux/drivers/remoteproc/
H A Dqcom_q6v5.h20 struct qmp *qmp; member
/linux/drivers/gpu/drm/msm/adreno/
H A Da6xx_gmu.h123 struct qmp *qmp; member
H A Da6xx_gmu.c1888 if (cmd->enable_by_level && IS_ERR_OR_NULL(gmu->qmp)) { in a6xx_gmu_acd_probe()
1894 if (IS_ERR_OR_NULL(gmu->qmp)) in a6xx_gmu_acd_probe()
1901 ret = qmp_send(gmu->qmp, "{class: gpu, res: acd, val: %d}", !!cmd->enable_by_level); in a6xx_gmu_acd_probe()
2002 if (!IS_ERR_OR_NULL(gmu->qmp)) in a6xx_gmu_remove()
2003 qmp_put(gmu->qmp); in a6xx_gmu_remove()
2297 gmu->qmp = qmp_get(gmu->dev); in a6xx_gmu_init()
2298 if (PTR_ERR_OR_ZERO(gmu->qmp) == -EPROBE_DEFER) { in a6xx_gmu_init()
2334 if (!IS_ERR_OR_NULL(gmu->qmp)) in a6xx_gmu_init()
2335 qmp_put(gmu->qmp); in a6xx_gmu_init()
/linux/arch/arm64/boot/dts/qcom/
H A Dipq5424.dtsi234 compatible = "qcom,ipq5424-qmp-gen3x1-pcie-phy",
235 "qcom,ipq9574-qmp-gen3x1-pcie-phy";
260 compatible = "qcom,ipq5424-qmp-gen3x1-pcie-phy",
261 "qcom,ipq9574-qmp-gen3x1-pcie-phy";
355 compatible = "qcom,ipq5424-qmp-gen3x2-pcie-phy",
356 "qcom,ipq9574-qmp-gen3x2-pcie-phy";
381 compatible = "qcom,ipq5424-qmp-gen3x2-pcie-phy",
382 "qcom,ipq9574-qmp-gen3x2-pcie-phy";
676 compatible = "qcom,ipq5424-qmp-usb3-phy";
H A Dsc8180x.dtsi18 #include <dt-bindings/phy/phy-qcom-qmp.h>
1800 compatible = "qcom,sc8180x-qmp-pcie-phy";
1919 compatible = "qcom,sc8180x-qmp-pcie-phy";
2039 compatible = "qcom,sc8180x-qmp-pcie-phy";
2159 compatible = "qcom,sc8180x-qmp-pcie-phy";
2236 compatible = "qcom,sc8180x-qmp-ufs-phy";
2442 qcom,qmp = <&aoss_qmp>;
2473 qcom,qmp = <&aoss_qmp>;
2549 compatible = "qcom,sc8180x-qmp-usb3-dp-phy";
2597 compatible = "qcom,sc8180x-qmp-usb3-uni-phy";
[all …]
H A Dsm8350.dtsi19 #include <dt-bindings/phy/phy-qcom-qmp.h>
1603 compatible = "qcom,sm8350-qmp-gen3x1-pcie-phy";
1712 compatible = "qcom,sm8350-qmp-gen3x2-pcie-phy";
1788 compatible = "qcom,sm8350-qmp-ufs-phy";
1862 qcom,qmp = <&aoss_qmp>;
1904 qcom,qmp = <&aoss_qmp>;
2243 qcom,qmp = <&aoss_qmp>;
2282 qcom,qmp = <&aoss_qmp>;
2401 compatible = "qcom,sm8350-qmp-usb3-dp-phy";
2451 compatible = "qcom,sm8350-qmp-usb3-uni-phy";
[all …]
H A Dpurwa.dtsi152 compatible = "qcom,x1p42100-qmp-gen4x4-pcie-phy";
165 compatible = "qcom,x1p42100-qmp-gen4x4-pcie-phy";
H A Dsc8280xp.dtsi18 #include <dt-bindings/phy/phy-qcom-qmp.h>
2239 compatible = "qcom,sc8280xp-qmp-gen3x1-pcie-phy";
2350 compatible = "qcom,sc8280xp-qmp-gen3x2-pcie-phy";
2461 compatible = "qcom,sc8280xp-qmp-gen3x4-pcie-phy";
2575 compatible = "qcom,sc8280xp-qmp-gen3x2-pcie-phy";
2686 compatible = "qcom,sc8280xp-qmp-gen3x4-pcie-phy";
2763 compatible = "qcom,sc8280xp-qmp-ufs-phy";
2828 compatible = "qcom,sc8280xp-qmp-ufs-phy";
2883 qcom,qmp = <&aoss_qmp>;
2951 qcom,qmp = <&aoss_qmp>;
[all …]
H A Dsm8750.dtsi15 #include <dt-bindings/phy/phy-qcom-qmp.h>
2132 qcom,qmp = <&aoss_qmp>;
2183 qcom,qmp = <&aoss_qmp>;
2600 compatible = "qcom,sm8750-qmp-usb3-dp-phy";
2756 compatible = "qcom,sm8750-aoss-qmp", "qcom,aoss-qmp";
2771 qcom,qmp = <&aoss_qmp>;
3614 compatible = "qcom,sm8750-qmp-gen3x2-pcie-phy";
3645 compatible = "qcom,sm8750-qmp-ufs-phy";
4096 qcom,qmp = <&aoss_qmp>;
H A Dsm6350.dtsi20 #include <dt-bindings/phy/phy-qcom-qmp.h>
1222 compatible = "qcom,sm6350-qmp-ufs-phy";
1337 qcom,qmp = <&aoss_qmp>;
1622 qcom,qmp = <&aoss_qmp>;
1661 qcom,qmp = <&aoss_qmp>;
1807 compatible = "qcom,sm6350-qmp-usb3-dp-phy";
2520 compatible = "qcom,sm6350-aoss-qmp", "qcom,aoss-qmp";
H A Dsm8150.dtsi10 #include <dt-bindings/phy/phy-qcom-qmp.h>
1918 compatible = "qcom,sm8150-qmp-gen3x1-pcie-phy";
2036 compatible = "qcom,sm8150-qmp-gen3x2-pcie-phy";
2114 compatible = "qcom,sm8150-qmp-ufs-phy";
2196 qcom,qmp = <&aoss_qmp>;
2750 qcom,qmp = <&aoss_qmp>;
3372 qcom,qmp = <&aoss_qmp>;
3479 compatible = "qcom,sm8150-qmp-usb3-dp-phy";
3530 compatible = "qcom,sm8150-qmp-usb3-uni-phy";
4177 compatible = "qcom,sm8150-aoss-qmp", "qcom,aoss-qmp";
[all …]
H A Dsm8450.dtsi18 #include <dt-bindings/phy/phy-qcom-qmp.h>
2087 compatible = "qcom,sm8450-qmp-gen3x1-pcie-phy";
2354 compatible = "qcom,sm8450-qmp-gen4x2-pcie-phy";
2564 qcom,qmp = <&aoss_qmp>;
2656 compatible = "qcom,sm8450-qmp-usb3-dp-phy";
2726 qcom,qmp = <&aoss_qmp>;
2794 qcom,qmp = <&aoss_qmp>;
3096 qcom,qmp = <&aoss_qmp>;
3204 qcom,qmp = <&aoss_qmp>;
3762 compatible = "qcom,sm8450-aoss-qmp", "qcom,aoss-qmp";
[all …]
H A Dsdx75.dtsi842 compatible = "qcom,sdx75-qmp-usb3-uni-phy";
956 qcom,qmp = <&aoss_qmp>;
1114 compatible = "qcom,sdx75-aoss-qmp", "qcom,aoss-qmp";
/linux/arch/arm/boot/dts/qcom/
H A Dqcom-sdx65.dtsi243 compatible = "qcom,sdx65-qmp-usb3-uni-phy";
358 compatible = "qcom,sdx65-qmp-gen4x2-pcie-phy";

12