Home
last modified time | relevance | path

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

12

/Linux-v6.6/drivers/soc/qcom/
Dqcom_aoss.c51 struct qmp *qmp; member
69 struct qmp { struct
87 static void qmp_kick(struct qmp *qmp) in qmp_kick() argument
89 mbox_send_message(qmp->mbox_chan, NULL); in qmp_kick()
90 mbox_client_txdone(qmp->mbox_chan, 0); in qmp_kick()
93 static bool qmp_magic_valid(struct qmp *qmp) in qmp_magic_valid() argument
95 return readl(qmp->msgram + QMP_DESC_MAGIC) == QMP_MAGIC; in qmp_magic_valid()
98 static bool qmp_link_acked(struct qmp *qmp) in qmp_link_acked() argument
100 return readl(qmp->msgram + QMP_DESC_MCORE_LINK_STATE_ACK) == QMP_STATE_UP; in qmp_link_acked()
103 static bool qmp_mcore_channel_acked(struct qmp *qmp) in qmp_mcore_channel_acked() argument
[all …]
/Linux-v6.6/drivers/phy/qualcomm/
Dphy-qcom-qmp-combo.c1356 int (*configure_dp_phy)(struct qmp_combo *qmp);
1357 void (*configure_dp_tx)(struct qmp_combo *qmp);
1358 int (*calibrate_dp_phy)(struct qmp_combo *qmp);
1359 void (*dp_aux_init)(struct qmp_combo *qmp);
1428 static void qmp_v3_dp_aux_init(struct qmp_combo *qmp);
1429 static void qmp_v3_configure_dp_tx(struct qmp_combo *qmp);
1430 static int qmp_v3_configure_dp_phy(struct qmp_combo *qmp);
1431 static int qmp_v3_calibrate_dp_phy(struct qmp_combo *qmp);
1433 static void qmp_v4_dp_aux_init(struct qmp_combo *qmp);
1434 static void qmp_v4_configure_dp_tx(struct qmp_combo *qmp);
[all …]
Dphy-qcom-qmp-usb-legacy.c758 static int qmp_usb_legacy_serdes_init(struct qmp_usb *qmp) in qmp_usb_legacy_serdes_init() argument
760 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_usb_legacy_serdes_init()
761 void __iomem *serdes = qmp->serdes; in qmp_usb_legacy_serdes_init()
772 struct qmp_usb *qmp = phy_get_drvdata(phy); in qmp_usb_legacy_init_dp_com() local
773 void __iomem *dp_com = qmp->dp_com; in qmp_usb_legacy_init_dp_com()
799 struct qmp_usb *qmp = phy_get_drvdata(phy); in qmp_usb_legacy_init() local
800 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_usb_legacy_init()
801 void __iomem *pcs = qmp->pcs; in qmp_usb_legacy_init()
804 ret = regulator_bulk_enable(cfg->num_vregs, qmp->vregs); in qmp_usb_legacy_init()
806 dev_err(qmp->dev, "failed to enable regulators, err=%d\n", ret); in qmp_usb_legacy_init()
[all …]
Dphy-qcom-qmp-pcie-msm8996.c221 struct qcom_qmp *qmp; member
338 struct qcom_qmp *qmp = qphy->qmp; in qmp_pcie_msm8996_serdes_init() local
357 dev_err(qmp->dev, in qmp_pcie_msm8996_serdes_init()
367 struct qcom_qmp *qmp = qphy->qmp; in qmp_pcie_msm8996_com_init() local
372 mutex_lock(&qmp->phy_mutex); in qmp_pcie_msm8996_com_init()
373 if (qmp->init_count++) { in qmp_pcie_msm8996_com_init()
374 mutex_unlock(&qmp->phy_mutex); in qmp_pcie_msm8996_com_init()
378 ret = regulator_bulk_enable(cfg->num_vregs, qmp->vregs); in qmp_pcie_msm8996_com_init()
380 dev_err(qmp->dev, "failed to enable regulators, err=%d\n", ret); in qmp_pcie_msm8996_com_init()
384 ret = reset_control_bulk_assert(cfg->num_resets, qmp->resets); in qmp_pcie_msm8996_com_init()
[all …]
Dphy-qcom-qmp-ufs.c1193 static void qmp_ufs_serdes_init(struct qmp_ufs *qmp, const struct qmp_phy_cfg_tbls *tbls) in qmp_ufs_serdes_init() argument
1195 void __iomem *serdes = qmp->serdes; in qmp_ufs_serdes_init()
1200 static void qmp_ufs_lanes_init(struct qmp_ufs *qmp, const struct qmp_phy_cfg_tbls *tbls) in qmp_ufs_lanes_init() argument
1202 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_ufs_lanes_init()
1203 void __iomem *tx = qmp->tx; in qmp_ufs_lanes_init()
1204 void __iomem *rx = qmp->rx; in qmp_ufs_lanes_init()
1210 qmp_ufs_configure_lane(qmp->tx2, tbls->tx, tbls->tx_num, 2); in qmp_ufs_lanes_init()
1211 qmp_ufs_configure_lane(qmp->rx2, tbls->rx, tbls->rx_num, 2); in qmp_ufs_lanes_init()
1215 static void qmp_ufs_pcs_init(struct qmp_ufs *qmp, const struct qmp_phy_cfg_tbls *tbls) in qmp_ufs_pcs_init() argument
1217 void __iomem *pcs = qmp->pcs; in qmp_ufs_pcs_init()
[all …]
Dphy-qcom-qmp-usb.c1642 static int qmp_usb_serdes_init(struct qmp_usb *qmp) in qmp_usb_serdes_init() argument
1644 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_usb_serdes_init()
1645 void __iomem *serdes = qmp->serdes; in qmp_usb_serdes_init()
1656 struct qmp_usb *qmp = phy_get_drvdata(phy); in qmp_usb_init() local
1657 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_usb_init()
1658 void __iomem *pcs = qmp->pcs; in qmp_usb_init()
1661 ret = regulator_bulk_enable(cfg->num_vregs, qmp->vregs); in qmp_usb_init()
1663 dev_err(qmp->dev, "failed to enable regulators, err=%d\n", ret); in qmp_usb_init()
1667 ret = reset_control_bulk_assert(cfg->num_resets, qmp->resets); in qmp_usb_init()
1669 dev_err(qmp->dev, "reset assert failed\n"); in qmp_usb_init()
[all …]
Dphy-qcom-qmp-pcie.c3116 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
3118 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_pcie_init_port_b()
3122 tx3 = qmp->port_b + offs->tx; in qmp_pcie_init_port_b()
3123 rx3 = qmp->port_b + offs->rx; in qmp_pcie_init_port_b()
3124 tx4 = qmp->port_b + offs->tx2; in qmp_pcie_init_port_b()
3125 rx4 = qmp->port_b + offs->rx2; in qmp_pcie_init_port_b()
3134 static void qmp_pcie_init_registers(struct qmp_pcie *qmp, const struct qmp_phy_cfg_tbls *tbls) in qmp_pcie_init_registers() argument
3136 const struct qmp_phy_cfg *cfg = qmp->cfg; in qmp_pcie_init_registers()
3137 void __iomem *serdes = qmp->serdes; in qmp_pcie_init_registers()
3138 void __iomem *tx = qmp->tx; in qmp_pcie_init_registers()
[all …]
DMakefile10 obj-$(CONFIG_PHY_QCOM_QMP_COMBO) += phy-qcom-qmp-combo.o
11 obj-$(CONFIG_PHY_QCOM_QMP_PCIE) += phy-qcom-qmp-pcie.o
12 obj-$(CONFIG_PHY_QCOM_QMP_PCIE_8996) += phy-qcom-qmp-pcie-msm8996.o
13 obj-$(CONFIG_PHY_QCOM_QMP_UFS) += phy-qcom-qmp-ufs.o
14 obj-$(CONFIG_PHY_QCOM_QMP_USB) += phy-qcom-qmp-usb.o
15 obj-$(CONFIG_PHY_QCOM_QMP_USB_LEGACY) += phy-qcom-qmp-usb-legacy.o
/Linux-v6.6/include/linux/soc/qcom/
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-v6.6/drivers/net/ipa/
Dipa_power.c66 struct qmp *qmp; member
302 struct qmp *qmp = qmp_get(power->dev); in ipa_power_retention_init() local
304 if (IS_ERR(qmp)) { in ipa_power_retention_init()
305 if (PTR_ERR(qmp) == -EPROBE_DEFER) in ipa_power_retention_init()
309 qmp = NULL; in ipa_power_retention_init()
311 power->qmp = qmp; in ipa_power_retention_init()
318 qmp_put(power->qmp); in ipa_power_retention_exit()
319 power->qmp = NULL; in ipa_power_retention_exit()
329 if (!power->qmp) in ipa_power_retention()
332 ret = qmp_send(power->qmp, fmt, enable ? '1' : '0'); in ipa_power_retention()
/Linux-v6.6/drivers/remoteproc/
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()
333 q6v5->qmp = qmp_get(&pdev->dev); in qcom_q6v5_init()
334 if (IS_ERR(q6v5->qmp)) { in qcom_q6v5_init()
335 if (PTR_ERR(q6v5->qmp) != -ENODEV) in qcom_q6v5_init()
336 return dev_err_probe(&pdev->dev, PTR_ERR(q6v5->qmp), in qcom_q6v5_init()
338 q6v5->qmp = NULL; in qcom_q6v5_init()
343 qmp_put(q6v5->qmp); in qcom_q6v5_init()
362 qmp_put(q6v5->qmp); in qcom_q6v5_deinit()
Dqcom_q6v5.h20 struct qmp *qmp; member
/Linux-v6.6/arch/arm64/boot/dts/qcom/
Dipq8074.dtsi127 compatible = "qcom,ipq8074-qmp-usb3-phy";
170 compatible = "qcom,ipq8074-qmp-usb3-phy";
213 compatible = "qcom,ipq8074-qmp-gen3-pcie-phy";
242 compatible = "qcom,ipq8074-qmp-pcie-phy";
Dsm8350.dtsi16 #include <dt-bindings/phy/phy-qcom-qmp.h>
1570 compatible = "qcom,sm8350-qmp-gen3x1-pcie-phy";
1653 compatible = "qcom,sm8350-qmp-gen3x2-pcie-phy";
1724 compatible = "qcom,sm8350-qmp-ufs-phy";
1804 qcom,qmp = <&aoss_qmp>;
2043 qcom,qmp = <&aoss_qmp>;
2082 qcom,qmp = <&aoss_qmp>;
2195 compatible = "qcom,sm8350-qmp-usb3-dp-phy";
2241 compatible = "qcom,sm8350-qmp-usb3-uni-phy";
2865 compatible = "qcom,sm8350-aoss-qmp", "qcom,aoss-qmp";
[all …]
Dsc8180x.dtsi1759 compatible = "qcom,sc8180x-qmp-pcie-phy";
1866 compatible = "qcom,sc8180x-qmp-pcie-phy";
1973 compatible = "qcom,sc8180x-qmp-pcie-phy";
2080 compatible = "qcom,sc8180x-qmp-pcie-phy";
2159 compatible = "qcom,sc8180x-qmp-ufs-phy";
2371 qcom,qmp = <&aoss_qmp>;
2402 qcom,qmp = <&aoss_qmp>;
2444 compatible = "qcom,sc8180x-qmp-usb3-dp-phy";
2510 compatible = "qcom,sc8180x-qmp-usb3-dp-phy";
3285 compatible = "qcom,sc8180x-aoss-qmp", "qcom,aoss-qmp";
[all …]
Dsm6350.dtsi19 #include <dt-bindings/phy/phy-qcom-qmp.h>
1189 compatible = "qcom,sm6350-qmp-ufs-phy";
1279 qcom,qmp = <&aoss_qmp>;
1500 qcom,qmp = <&aoss_qmp>;
1539 qcom,qmp = <&aoss_qmp>;
1678 compatible = "qcom,sm6350-qmp-usb3-dp-phy";
2220 compatible = "qcom,sm6350-aoss-qmp", "qcom,aoss-qmp";
Dsc8280xp.dtsi16 #include <dt-bindings/phy/phy-qcom-qmp.h>
1784 compatible = "qcom,sc8280xp-qmp-gen3x1-pcie-phy";
1882 compatible = "qcom,sc8280xp-qmp-gen3x2-pcie-phy";
1980 compatible = "qcom,sc8280xp-qmp-gen3x4-pcie-phy";
2081 compatible = "qcom,sc8280xp-qmp-gen3x2-pcie-phy";
2179 compatible = "qcom,sc8280xp-qmp-gen3x4-pcie-phy";
2256 compatible = "qcom,sc8280xp-qmp-ufs-phy";
2318 compatible = "qcom,sc8280xp-qmp-ufs-phy";
2586 compatible = "qcom,sc8280xp-qmp-usb3-uni-phy";
2610 compatible = "qcom,sc8280xp-qmp-usb3-uni-phy";
[all …]
Dsa8775p.dtsi1532 compatible = "qcom,sa8775p-qmp-ufs-phy";
1563 compatible = "qcom,sa8775p-qmp-usb3-uni-phy";
1650 compatible = "qcom,sa8775p-qmp-usb3-uni-phy";
1906 compatible = "qcom,sa8775p-aoss-qmp", "qcom,aoss-qmp";
2476 compatible = "qcom,sa8775p-qmp-gen4x2-pcie-phy";
2576 compatible = "qcom,sa8775p-qmp-gen4x4-pcie-phy";
Dsm8150.dtsi1889 compatible = "qcom,sm8150-qmp-gen3x1-pcie-phy";
1987 compatible = "qcom,sm8150-qmp-gen3x2-pcie-phy";
2071 compatible = "qcom,sm8150-qmp-ufs-phy";
2159 qcom,qmp = <&aoss_qmp>;
2712 qcom,qmp = <&aoss_qmp>;
3337 qcom,qmp = <&aoss_qmp>;
3438 compatible = "qcom,sm8150-qmp-usb3-phy";
3472 compatible = "qcom,sm8150-qmp-usb3-uni-phy";
3970 compatible = "qcom,sm8150-aoss-qmp", "qcom,aoss-qmp";
4130 qcom,qmp = <&aoss_qmp>;
Dipq6018.dtsi238 compatible = "qcom,ipq6018-qmp-usb3-phy";
280 compatible = "qcom,ipq6018-qmp-pcie-phy";
Dsm8450.dtsi15 #include <dt-bindings/phy/phy-qcom-qmp.h>
1827 compatible = "qcom,sm8450-qmp-gen3x1-pcie-phy";
1939 compatible = "qcom,sm8450-qmp-gen4x2-pcie-phy";
2047 compatible = "qcom,sm8450-qmp-usb3-dp-phy";
2113 qcom,qmp = <&aoss_qmp>;
2388 qcom,qmp = <&aoss_qmp>;
2493 qcom,qmp = <&aoss_qmp>;
2600 qcom,qmp = <&aoss_qmp>;
3140 compatible = "qcom,sm8450-aoss-qmp", "qcom,aoss-qmp";
4189 compatible = "qcom,sm8450-qmp-ufs-phy";
Dsm8550.dtsi22 #include <dt-bindings/phy/phy-qcom-qmp.h>
1728 compatible = "qcom,sm8550-qmp-gen3x2-pcie-phy";
1825 compatible = "qcom,sm8550-qmp-gen4x2-pcie-phy";
1876 compatible = "qcom,sm8550-qmp-ufs-phy";
2001 qcom,qmp = <&aoss_qmp>;
2823 compatible = "qcom,sm8550-qmp-usb3-dp-phy";
2992 compatible = "qcom,sm8550-aoss-qmp", "qcom,aoss-qmp";
3971 qcom,qmp = <&aoss_qmp>;
4104 qcom,qmp = <&aoss_qmp>;
Dsm8250.dtsi1915 compatible = "qcom,sm8250-qmp-gen3x1-pcie-phy";
2022 compatible = "qcom,sm8250-qmp-gen3x2-pcie-phy";
2131 compatible = "qcom,sm8250-qmp-modem-pcie-phy";
2219 compatible = "qcom,sm8250-qmp-ufs-phy";
2761 qcom,qmp = <&aoss_qmp>;
3479 qcom,qmp = <&aoss_qmp>;
3584 compatible = "qcom,sm8250-qmp-usb3-dp-phy";
3628 compatible = "qcom,sm8250-qmp-usb3-uni-phy";
4636 compatible = "qcom,sm8250-aoss-qmp", "qcom,aoss-qmp";
5554 qcom,qmp = <&aoss_qmp>;
/Linux-v6.6/arch/arm/boot/dts/qcom/
Dqcom-sdx65.dtsi235 compatible = "qcom,sdx65-qmp-usb3-uni-phy";
350 compatible = "qcom,sdx65-qmp-gen4x2-pcie-phy";
Dqcom-sdx55.dtsi230 compatible = "qcom,sdx55-qmp-usb3-uni-phy";
440 compatible = "qcom,sdx55-qmp-pcie-phy";

12