Home
last modified time | relevance | path

Searched refs:qmp (Results 1 – 25 of 50) 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-usbc.c416 void (*dp_aux_init)(struct qmp_usbc *qmp);
417 void (*configure_dp_tx)(struct qmp_usbc *qmp);
418 int (*configure_dp_phy)(struct qmp_usbc *qmp);
419 int (*calibrate_dp_phy)(struct qmp_usbc *qmp);
644 static void qmp_v2_dp_aux_init(struct qmp_usbc *qmp);
645 static void qmp_v2_configure_dp_tx(struct qmp_usbc *qmp);
646 static int qmp_v2_configure_dp_phy(struct qmp_usbc *qmp);
647 static int qmp_v2_calibrate_dp_phy(struct qmp_usbc *qmp);
689 static void qmp_usbc_set_phy_mode(struct qmp_usbc *qmp, bool is_dp) in qmp_usbc_set_phy_mode() argument
691 if (qmp->tcsr_map && qmp->dp_phy_mode_reg) in qmp_usbc_set_phy_mode()
[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-combo.c2242 int (*configure_dp_clocks)(struct qmp_combo *qmp);
2243 int (*configure_dp_phy)(struct qmp_combo *qmp);
2244 void (*configure_dp_tx)(struct qmp_combo *qmp);
2245 int (*calibrate_dp_phy)(struct qmp_combo *qmp);
2246 void (*dp_aux_init)(struct qmp_combo *qmp);
2319 static void qmp_v3_dp_aux_init(struct qmp_combo *qmp);
2320 static void qmp_v3_configure_dp_tx(struct qmp_combo *qmp);
2321 static int qmp_v3_configure_dp_clocks(struct qmp_combo *qmp);
2322 static int qmp_v3_configure_dp_phy(struct qmp_combo *qmp);
2323 static int qmp_v3_calibrate_dp_phy(struct qmp_combo *qmp);
[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.c1868 static int qmp_usb_serdes_init(struct qmp_usb *qmp) in qmp_usb_serdes_init() argument
1870 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_usb_serdes_init()
1871 void __iomem *serdes = qmp->serdes; in qmp_usb_serdes_init()
1875 qmp_configure(qmp->dev, serdes, serdes_tbl, serdes_tbl_num); in qmp_usb_serdes_init()
1882 struct qmp_usb *qmp = phy_get_drvdata(phy); in qmp_usb_init() local
1883 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_usb_init()
1884 void __iomem *pcs = qmp->pcs; in qmp_usb_init()
1887 ret = regulator_bulk_enable(cfg->num_vregs, qmp->vregs); in qmp_usb_init()
1889 dev_err(qmp->dev, "failed to enable regulators, err=%d\n", ret); in qmp_usb_init()
1893 ret = reset_control_bulk_assert(qmp->num_resets, qmp->resets); in qmp_usb_init()
[all …]
H A Dphy-qcom-qmp-ufs.c1847 static void qmp_ufs_serdes_init(struct qmp_ufs *qmp, const struct qmp_phy_cfg_tbls *tbls) in qmp_ufs_serdes_init() argument
1849 void __iomem *serdes = qmp->serdes; in qmp_ufs_serdes_init()
1851 qmp_configure(qmp->dev, serdes, tbls->serdes, tbls->serdes_num); in qmp_ufs_serdes_init()
1854 static void qmp_ufs_lanes_init(struct qmp_ufs *qmp, const struct qmp_phy_cfg_tbls *tbls) in qmp_ufs_lanes_init() argument
1856 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_ufs_lanes_init()
1857 void __iomem *tx = qmp->tx; in qmp_ufs_lanes_init()
1858 void __iomem *rx = qmp->rx; in qmp_ufs_lanes_init()
1860 qmp_configure_lane(qmp->dev, tx, tbls->tx, tbls->tx_num, 1); in qmp_ufs_lanes_init()
1861 qmp_configure_lane(qmp->dev, rx, tbls->rx, tbls->rx_num, 1); in qmp_ufs_lanes_init()
1864 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.c4651 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
4653 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_pcie_init_port_b()
4657 serdes = qmp->port_b + offs->serdes; in qmp_pcie_init_port_b()
4658 tx3 = qmp->port_b + offs->tx; in qmp_pcie_init_port_b()
4659 rx3 = qmp->port_b + offs->rx; in qmp_pcie_init_port_b()
4660 tx4 = qmp->port_b + offs->tx2; in qmp_pcie_init_port_b()
4661 rx4 = qmp->port_b + offs->rx2; in qmp_pcie_init_port_b()
4662 pcs = qmp->port_b + offs->pcs; in qmp_pcie_init_port_b()
4663 pcs_misc = qmp->port_b + offs->pcs_misc; in qmp_pcie_init_port_b()
4664 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.c28 if (!q6v5->qmp) in q6v5_load_state_toggle()
31 ret = qmp_send(q6v5->qmp, "{class: image, res: load_state, name: %s, val: %s}", in q6v5_load_state_toggle()
335 q6v5->qmp = qmp_get(&pdev->dev); in qcom_q6v5_init()
336 if (IS_ERR(q6v5->qmp)) { in qcom_q6v5_init()
337 if (PTR_ERR(q6v5->qmp) != -ENODEV) in qcom_q6v5_init()
338 return dev_err_probe(&pdev->dev, PTR_ERR(q6v5->qmp), in qcom_q6v5_init()
340 q6v5->qmp = NULL; in qcom_q6v5_init()
345 qmp_put(q6v5->qmp); in qcom_q6v5_init()
364 qmp_put(q6v5->qmp); in qcom_q6v5_deinit()
H A Dqcom_q6v5.h20 struct qmp *qmp; member
/linux/drivers/gpu/drm/msm/adreno/
H A Da6xx_gmu.h123 struct qmp *qmp; member
/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 Dkaanapali.dtsi15 #include <dt-bindings/phy/phy-qcom-qmp.h>
717 compatible = "qcom,kaanapali-qmp-gen3x2-pcie-phy";
750 compatible = "qcom,kaanapali-qmp-ufs-phy", "qcom,sm8750-qmp-ufs-phy";
996 compatible = "qcom,kaanapali-aoss-qmp", "qcom,aoss-qmp";
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 Dipq8074.dtsi127 compatible = "qcom,ipq8074-qmp-usb3-phy";
164 compatible = "qcom,ipq8074-qmp-usb3-phy";
201 compatible = "qcom,ipq8074-qmp-gen3-pcie-phy";
224 compatible = "qcom,ipq8074-qmp-pcie-phy";
H A Dpurwa.dtsi152 compatible = "qcom,x1p42100-qmp-gen4x4-pcie-phy";
165 compatible = "qcom,x1p42100-qmp-gen4x4-pcie-phy";
H A Dipq9574.dtsi243 compatible = "qcom,ipq9574-qmp-gen3x1-pcie-phy";
266 compatible = "qcom,ipq9574-qmp-gen3x2-pcie-phy";
306 compatible = "qcom,ipq9574-qmp-gen3x2-pcie-phy";
329 compatible = "qcom,ipq9574-qmp-gen3x1-pcie-phy";
720 compatible = "qcom,ipq9574-qmp-usb3-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 Dmilos.dtsi1201 qcom,qmp = <&aoss_qmp>;
1314 qcom,qmp = <&aoss_qmp>;
1426 qcom,qmp = <&aoss_qmp>;
1610 compatible = "qcom,milos-aoss-qmp", "qcom,aoss-qmp";
2151 qcom,qmp = <&aoss_qmp>;
H A Dsm6350.dtsi20 #include <dt-bindings/phy/phy-qcom-qmp.h>
1225 compatible = "qcom,sm6350-qmp-ufs-phy";
1340 qcom,qmp = <&aoss_qmp>;
1625 qcom,qmp = <&aoss_qmp>;
1664 qcom,qmp = <&aoss_qmp>;
1810 compatible = "qcom,sm6350-qmp-usb3-dp-phy";
2523 compatible = "qcom,sm6350-aoss-qmp", "qcom,aoss-qmp";

12