/openbmc/linux/drivers/soc/qcom/ |
H A D | qcom_aoss.c | 51 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 …]
|
/openbmc/linux/drivers/phy/qualcomm/ |
H A D | phy-qcom-qmp-combo.c | 1361 int (*configure_dp_phy)(struct qmp_combo *qmp); 1362 void (*configure_dp_tx)(struct qmp_combo *qmp); 1363 int (*calibrate_dp_phy)(struct qmp_combo *qmp); 1364 void (*dp_aux_init)(struct qmp_combo *qmp); 1433 static void qmp_v3_dp_aux_init(struct qmp_combo *qmp); 1434 static void qmp_v3_configure_dp_tx(struct qmp_combo *qmp); 1435 static int qmp_v3_configure_dp_phy(struct qmp_combo *qmp); 1436 static int qmp_v3_calibrate_dp_phy(struct qmp_combo *qmp); 1438 static void qmp_v4_dp_aux_init(struct qmp_combo *qmp); 1439 static void qmp_v4_configure_dp_tx(struct qmp_combo *qmp); [all …]
|
H A D | phy-qcom-qmp-usb-legacy.c | 758 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 …]
|
H A D | phy-qcom-qmp-pcie-msm8996.c | 221 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 …]
|
H A D | phy-qcom-qmp-ufs.c | 1193 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 …]
|
H A D | phy-qcom-qmp-usb.c | 1642 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 …]
|
H A D | phy-qcom-qmp-pcie.c | 3116 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 …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 219 | 32 result = vm.qmp('query-jobs') 45 iotests.log(vm.qmp(pause_cmd, **{pause_arg: 'job0'})) 48 result = vm.qmp('query-jobs') 54 iotests.log(vm.qmp(resume_cmd, **{resume_arg: 'job0'})) 59 result = vm.qmp('query-jobs') 65 iotests.log(vm.qmp('query-jobs')) 76 iotests.log(vm.qmp(job, job_id='job0', **job_args)) 82 result = vm.qmp('query-jobs') 93 while vm.qmp('query-jobs')['return'][0]['total-progress'] < img_size: 102 iotests.log(vm.qmp('job-complete', id='job0')) [all …]
|
H A D | 234 | 64 iotests.log(vm_a.qmp('blockdev-snapshot', node='drive0-backing', 66 iotests.log(vm_b.qmp('blockdev-snapshot', node='drive0-backing', 70 iotests.log(vm_a.qmp('migrate', uri='exec:cat >%s' % (fifo_a))) 77 iotests.log(vm_a.qmp('query-migrate')['return']['status']) 78 iotests.log(vm_b.qmp('query-migrate')['return']['status']) 80 iotests.log(vm_a.qmp('query-status')) 81 iotests.log(vm_b.qmp('query-status')) 84 iotests.log(vm_b.qmp('blockdev-add', driver='raw', file='drive0-file', 95 iotests.log(vm_a.qmp('blockdev-snapshot', node='drive0-backing', 99 iotests.log(vm_b.qmp('migrate', uri='exec:cat >%s' % (fifo_b))) [all …]
|
H A D | 118 | 84 result = self.vm.qmp('query-block') 94 result = self.vm.qmp('query-block') 104 result = self.vm.qmp('query-block') 114 result = self.vm.qmp('query-block') 125 result = self.vm.qmp('query-block') 138 result = self.vm.qmp('query-block') 151 result = self.vm.qmp('query-block') 160 result = self.vm.qmp('query-block') 171 result = self.vm.qmp('query-block') 185 result = self.vm.qmp('query-block') [all …]
|
H A D | 194 | 49 …iotests.log(dest_vm.qmp('nbd-server-start', addr={'type': 'unix', 'data': {'path': nbd_sock_path}}… 50 iotests.log(dest_vm.qmp('nbd-server-add', device='drive0', writable=True)) 53 iotests.log(source_vm.qmp( 69 source_vm.qmp('migrate-set-capabilities', capabilities=capabilities) 70 dest_vm.qmp('migrate-set-capabilities', capabilities=capabilities) 71 iotests.log(source_vm.qmp('migrate', uri='unix:{0}'.format(migration_sock_path))) 85 iotests.log(source_vm.qmp('block-job-cancel', device='mirror-job0')) 93 iotests.log(dest_vm.qmp('nbd-server-stop')) 103 iotests.log(source_vm.qmp('query-block')['return'][0]['inserted']['dirty-bitmaps']) 106 iotests.log(dest_vm.qmp('query-block')['return'][0]['inserted']['dirty-bitmaps'])
|
H A D | 055 | 94 result = self.vm.qmp('query-block-jobs') 98 result = self.vm.qmp('query-block-jobs') 117 result = self.vm.qmp('block_resize', device=device, size=65536) 120 result = self.vm.qmp('block_resize', node_name=node, size=65536) 138 result = self.vm.qmp('blockdev-backup', job_id='job0', device='drive0', 152 result = self.vm.qmp('drive-backup', device='drive2', # CD-ROM 160 result = self.vm.qmp('blockdev-backup', device='drive2', # CD-ROM 165 result = self.vm.qmp('drive-backup', device='drive0', 170 result = self.vm.qmp('drive-backup', device='drive0', 176 result = self.vm.qmp(cmd, **args) [all …]
|
H A D | 238 | 32 log(vm.qmp('blockdev-add', node_name='hd0', driver='null-co', read_zeroes=True)) 33 log(vm.qmp('object-add', qom_type='iothread', id='iothread0')) 34 log(vm.qmp('device_add', id='scsi0', driver='virtio-scsi', iothread='iothread0')) 35 log(vm.qmp('device_add', id='scsi-hd0', driver='scsi-hd', drive='hd0')) 36 log(vm.qmp('block_set_io_throttle', id='scsi-hd0', bps=0, bps_rd=0, bps_wr=0, 38 log(vm.qmp('device_del', id='scsi-hd0'))
|
H A D | 056 | 159 res = self.vm.qmp(cmd, **kwargs) 216 res = self.vm.qmp('query-block-jobs') 221 res = self.vm.qmp('query-block-jobs') 225 res = self.vm.qmp('query-block-jobs') 230 res = self.vm.qmp('query-block-jobs') 233 res = self.vm.qmp('query-block-jobs') 237 res = self.vm.qmp('query-block-jobs') 239 res = self.vm.qmp('block-job-dismiss', id='foobar') 243 res = self.vm.qmp('query-block-jobs') 248 res = self.vm.qmp('query-block-jobs') [all …]
|
H A D | 041 | 72 result = self.vm.qmp('query-block') 85 result = self.vm.qmp('query-block') 95 result = self.vm.qmp('query-block') 109 result = self.vm.qmp('query-block-jobs') 113 result = self.vm.qmp('query-block-jobs') 131 result = self.vm.qmp('query-block') 146 result = self.vm.qmp('query-block') 162 result = self.vm.qmp('query-block') 176 result = self.vm.qmp('query-block') 184 result = self.vm.qmp('query-blockstats') [all …]
|
H A D | 045 | 68 result = self.vm.qmp('query-fdsets') 81 result = self.vm.qmp('query-fdsets') 90 result = self.vm.qmp('query-fdsets') 93 result = self.vm.qmp('query-fdsets') 104 result = self.vm.qmp('query-fdsets') 106 result = self.vm.qmp('remove-fd', fdset_id=3, fd=fd_image3) 113 result = self.vm.qmp('query-fdsets') 114 result = self.vm.qmp('remove-fd', fdset_id=2, fd=999) 121 result = self.vm.qmp('add-fd', fdset_id=2) 147 result = self.vm.qmp('add-fd', fdset_id=2, opaque='image0:r') [all …]
|
H A D | 202 | 45 iotests.log(vm.qmp('object-add', 50 iotests.log(vm.qmp('blockdev-add', 57 iotests.log(vm.qmp('blockdev-add', 66 iotests.log(vm.qmp('x-blockdev-set-iothread', 69 iotests.log(vm.qmp('x-blockdev-set-iothread', 74 iotests.log(vm.qmp(
|
/openbmc/linux/include/linux/soc/qcom/ |
H A D | qcom_aoss.h | 12 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
|
/openbmc/qemu/tests/qtest/ |
H A D | test-netfilter.c | 20 response = qmp("{'execute': 'object-add'," in add_one_netfilter() 33 response = qmp("{'execute': 'object-del'," in add_one_netfilter() 47 response = qmp("{'execute': 'object-add'," in remove_netdev_with_one_netfilter() 60 response = qmp("{'execute': 'netdev_del'," in remove_netdev_with_one_netfilter() 69 response = qmp("{'execute': 'netdev_add'," in remove_netdev_with_one_netfilter() 84 response = qmp("{'execute': 'object-add'," in add_multi_netfilter() 97 response = qmp("{'execute': 'object-add'," in add_multi_netfilter() 110 response = qmp("{'execute': 'object-del'," in add_multi_netfilter() 118 response = qmp("{'execute': 'object-del'," in add_multi_netfilter() 132 response = qmp("{'execute': 'object-add'," in remove_netdev_with_multi_netfilter() [all …]
|
H A D | libqmp.c | 47 QMPResponseParser *qmp = opaque; in qmp_response() local 57 g_assert(!qmp->response); in qmp_response() 58 qmp->response = qobject_to(QDict, obj); in qmp_response() 59 g_assert(qmp->response); in qmp_response() 64 QMPResponseParser qmp; in qmp_fd_receive() local 67 qmp.response = NULL; in qmp_fd_receive() 68 json_message_parser_init(&qmp.parser, qmp_response, &qmp, NULL); in qmp_fd_receive() 69 while (!qmp.response) { in qmp_fd_receive() 86 json_message_parser_feed(&qmp.parser, &c, 1); in qmp_fd_receive() 91 json_message_parser_destroy(&qmp.parser); in qmp_fd_receive() [all …]
|
/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | image-fleecing | 106 log(vm.qmp('blockdev-add', { 113 log(vm.qmp('blockdev-add', { 135 log(vm.qmp('blockdev-add', fl_cbw)) 137 log(vm.qmp('qom-set', path=qom_path, property='drive', value='fl-cbw')) 140 log(vm.qmp('blockdev-add', { 146 log(vm.qmp('blockdev-backup', 159 log(vm.qmp('blockdev-add', **{ 167 log(vm.qmp('blockdev-backup', device=export_node, 176 log(vm.qmp('nbd-server-start', 180 log(vm.qmp('nbd-server-add', device=export_node)) [all …]
|
/openbmc/qemu/tests/functional/ |
H A D | test_s390x_topology.py | 67 res = self.vm.qmp('query-cpus-fast') 161 res = self.vm.qmp('set-cpu-topology', 222 res = self.vm.qmp('query-s390x-cpu-polarization') 227 res = self.vm.qmp('query-s390x-cpu-polarization') 232 res = self.vm.qmp('query-s390x-cpu-polarization') 274 res = self.vm.qmp('set-cpu-topology', 280 res = self.vm.qmp('set-cpu-topology', 286 res = self.vm.qmp('set-cpu-topology', 313 res = self.vm.qmp('set-cpu-topology', 343 res = self.vm.qmp('set-cpu-topology', [all …]
|
/openbmc/qemu/scripts/ |
H A D | render_block_graph.py | 28 from qemu.qmp import QMPError 29 from qemu.qmp.legacy import QEMUMonitorProtocol 40 def render_block_graph(qmp, filename, format='png'): argument 46 bds_nodes = qmp.cmd('query-named-block-nodes') 49 job_nodes = qmp.cmd('query-block-jobs') 52 block_graph = qmp.cmd('x-debug-query-block-graph') 116 qmp = QEMUMonitorProtocol(obj) variable 117 qmp.connect() 120 qmp = LibvirtGuest(obj) 122 render_block_graph(qmp, out)
|
/openbmc/qemu/tests/avocado/ |
H A D | vnc.py | 61 self.assertFalse(self.vm.qmp('query-vnc')['return']['enabled']) 66 self.assertFalse(self.vm.qmp('query-vnc')['return']['enabled']) 67 set_password_response = self.vm.qmp('change-vnc-password', 78 self.assertTrue(self.vm.qmp('query-vnc')['return']['enabled']) 79 set_password_response = self.vm.qmp('change-vnc-password', 90 self.assertTrue(self.vm.qmp('query-vnc')['return']['enabled']) 102 self.assertEqual(self.vm.qmp('query-vnc')['return']['service'], str(a)) 112 self.assertEqual(self.vm.qmp('query-vnc')['return']['service'], str(b))
|
/openbmc/linux/drivers/net/ipa/ |
H A D | ipa_power.c | 66 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()
|