Home
last modified time | relevance | path

Searched refs:hc (Results 1 – 25 of 46) sorted by relevance

12

/qemu/tests/qtest/libqos/
H A Dusb.c19 void qusb_pci_init_one(QPCIBus *pcibus, struct qhc *hc, uint32_t devfn, int bar) in qusb_pci_init_one() argument
21 hc->dev = qpci_device_find(pcibus, devfn); in qusb_pci_init_one()
22 g_assert(hc->dev != NULL); in qusb_pci_init_one()
23 qpci_device_enable(hc->dev); in qusb_pci_init_one()
24 hc->bar = qpci_iomap(hc->dev, bar, NULL); in qusb_pci_init_one()
27 void uhci_deinit(struct qhc *hc) in uhci_deinit() argument
29 g_free(hc->dev); in uhci_deinit()
32 void uhci_port_test(struct qhc *hc, int port, uint16_t expect) in uhci_port_test() argument
34 uint16_t value = qpci_io_readw(hc->dev, hc->bar, 0x10 + 2 * port); in uhci_port_test()
H A Dusb.h11 void qusb_pci_init_one(QPCIBus *pcibus, struct qhc *hc,
13 void uhci_port_test(struct qhc *hc, int port, uint16_t expect);
14 void uhci_deinit(struct qhc *hc);
/qemu/tests/qtest/
H A Dusb-hcd-ehci-test.c26 static void uhci_port_update(struct qhc *hc, int port,
29 void *addr = hc->base + 0x10 + 2 * port;
32 value = qpci_io_readw(hc->dev, addr);
35 qpci_io_writew(hc->dev, addr, value);
39 static void ehci_port_test(struct qhc *hc, int port, uint32_t expect) in ehci_port_test() argument
41 uint32_t value = qpci_io_readl(hc->dev, hc->bar, 0x64 + 4 * port); in ehci_port_test()
/qemu/hw/pci/
H A Dpcie_port.c217 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc); in pcie_slot_class_init() local
220 hc->pre_plug = pcie_cap_slot_pre_plug_cb; in pcie_slot_class_init()
221 hc->plug = pcie_cap_slot_plug_cb; in pcie_slot_class_init()
222 hc->unplug = pcie_cap_slot_unplug_cb; in pcie_slot_class_init()
223 hc->unplug_request = pcie_cap_slot_unplug_request_cb; in pcie_slot_class_init()
224 hc->is_hotpluggable_bus = pcie_slot_is_hotpluggable_bus; in pcie_slot_class_init()
/qemu/hw/pci-bridge/
H A Dpcie_pci_bridge.c144 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(klass); in pcie_pci_bridge_class_init() local
155 hc->plug = pci_bridge_dev_plug_cb; in pcie_pci_bridge_class_init()
156 hc->unplug = pci_bridge_dev_unplug_cb; in pcie_pci_bridge_class_init()
157 hc->unplug_request = pci_bridge_dev_unplug_request_cb; in pcie_pci_bridge_class_init()
H A Dpci_bridge_dev.c247 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(klass); in pci_bridge_dev_class_init() local
260 hc->plug = pci_bridge_dev_plug_cb; in pci_bridge_dev_class_init()
261 hc->unplug = pci_bridge_dev_unplug_cb; in pci_bridge_dev_class_init()
262 hc->unplug_request = pci_bridge_dev_unplug_request_cb; in pci_bridge_dev_class_init()
H A Dpci_expander_bridge.c176 PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(class); in pxb_host_class_init() local
182 hc->root_bus_path = pxb_host_root_bus_path; in pxb_host_class_init()
230 PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(class); in pxb_cxl_host_class_init() local
232 hc->root_bus_path = pxb_host_root_bus_path; in pxb_cxl_host_class_init()
/qemu/hw/pci-host/
H A Dremote.c52 PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(klass); in remote_pcihost_class_init() local
54 hc->root_bus_path = remote_pcihost_root_bus_path; in remote_pcihost_class_init()
H A Dgpex.c198 PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(klass); in gpex_host_class_init() local
200 hc->root_bus_path = gpex_host_root_bus_path; in gpex_host_class_init()
H A Dpnv_phb.c199 PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(klass); in pnv_phb_class_init() local
202 hc->root_bus_path = pnv_phb_root_bus_path; in pnv_phb_class_init()
H A Dxilinx-pcie.c171 PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(klass); in xilinx_pcie_host_class_init() local
173 hc->root_bus_path = xilinx_pcie_host_root_bus_path; in xilinx_pcie_host_class_init()
H A Di440fx.c370 PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(klass); in i440fx_pcihost_class_init() local
372 hc->root_bus_path = i440fx_pcihost_root_bus_path; in i440fx_pcihost_class_init()
/qemu/hw/s390x/
H A Dap-bridge.c67 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc); in ap_bridge_class_init() local
69 hc->unplug = qdev_simple_device_unplug_cb; in ap_bridge_class_init()
H A Dcss-bridge.c122 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(klass); in virtual_css_bridge_class_init() local
125 hc->unplug = ccw_device_unplug; in virtual_css_bridge_class_init()
H A Ds390-virtio-ccw.c781 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc); in ccw_machine_class_init() local
801 hc->pre_plug = s390_machine_device_pre_plug; in ccw_machine_class_init()
802 hc->plug = s390_machine_device_plug; in ccw_machine_class_init()
803 hc->unplug_request = s390_machine_device_unplug_request; in ccw_machine_class_init()
804 hc->unplug = s390_machine_device_unplug; in ccw_machine_class_init()
/qemu/hw/intc/
H A Dloongarch_ipi.c172 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(klass); in loongarch_ipi_class_init() local
183 hc->plug = loongarch_ipi_cpu_plug; in loongarch_ipi_class_init()
184 hc->unplug = loongarch_ipi_cpu_unplug; in loongarch_ipi_class_init()
H A Dloongarch_extioi_common.c219 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(klass); in loongarch_extioi_common_class_init() local
229 hc->plug = loongarch_extioi_cpu_plug; in loongarch_extioi_common_class_init()
230 hc->unplug = loongarch_extioi_cpu_unplug; in loongarch_extioi_common_class_init()
/qemu/hw/ppc/
H A De500plat.c74 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc); in e500plat_machine_class_init() local
79 hc->plug = e500plat_machine_device_plug_cb; in e500plat_machine_class_init()
/qemu/hw/remote/
H A Dmachine.c127 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc); in remote_machine_class_init() local
132 hc->unplug = remote_machine_dev_unplug_cb; in remote_machine_class_init()
/qemu/hw/acpi/
H A Dgeneric_event_device.c475 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(class); in acpi_ged_class_init() local
483 hc->plug = acpi_ged_device_plug_cb; in acpi_ged_class_init()
484 hc->unplug_request = acpi_ged_unplug_request_cb; in acpi_ged_class_init()
485 hc->unplug = acpi_ged_unplug_cb; in acpi_ged_class_init()
H A Dpiix4.c626 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(klass); in piix4_pm_class_init() local
645 hc->pre_plug = piix4_device_pre_plug_cb; in piix4_pm_class_init()
646 hc->plug = piix4_device_plug_cb; in piix4_pm_class_init()
647 hc->unplug_request = piix4_device_unplug_request_cb; in piix4_pm_class_init()
648 hc->unplug = piix4_device_unplug_cb; in piix4_pm_class_init()
649 hc->is_hotpluggable_bus = piix4_is_hotpluggable_bus; in piix4_pm_class_init()
/qemu/hw/ufs/
H A Dufs.c148 UfsHc *u = req->hc; in ufs_dma_read_utrd()
161 UfsHc *u = req->hc; in ufs_dma_read_req_upiu()
196 UfsHc *u = req->hc; in ufs_dma_read_prdt()
263 UfsHc *u = req->hc; in ufs_dma_write_utrd()
276 UfsHc *u = req->hc; in ufs_dma_write_rsp_upiu()
401 req->hc = u; in ufs_mcq_init_req()
894 ufs_check_exception_event_alert(req->hc, trans_type); in ufs_build_upiu_header()
908 UfsHc *u = req->hc; in ufs_exec_scsi_cmd()
1058 UfsHc *u = req->hc; in ufs_exec_query_flag()
1218 UfsHc *u = req->hc; in ufs_exec_query_attr()
[all …]
/qemu/hw/isa/
H A Dlpc_ich9.c881 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(klass); in ich9_lpc_class_init() local
901 hc->pre_plug = ich9_pm_device_pre_plug_cb; in ich9_lpc_class_init()
902 hc->plug = ich9_pm_device_plug_cb; in ich9_lpc_class_init()
903 hc->unplug_request = ich9_pm_device_unplug_request_cb; in ich9_lpc_class_init()
904 hc->unplug = ich9_pm_device_unplug_cb; in ich9_lpc_class_init()
905 hc->is_hotpluggable_bus = ich9_pm_is_hotpluggable_bus; in ich9_lpc_class_init()
/qemu/hw/i386/
H A Dmicrovm.c643 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc); in microvm_class_init() local
669 hc->pre_plug = microvm_device_pre_plug_cb; in microvm_class_init()
670 hc->plug = microvm_device_plug_cb; in microvm_class_init()
671 hc->unplug_request = microvm_device_unplug_request_cb; in microvm_class_init()
672 hc->unplug = microvm_device_unplug_cb; in microvm_class_init()
/qemu/tests/unit/
H A Dtest-smp-parse.c32 #define SMP_CONFIG_GENERIC(ha, a, hb, b, hc, c, hd, d, he, e) \ argument
36 .has_cores = hc, .cores = c, \
54 #define SMP_CONFIG_WITH_MODS_DIES(ha, a, hb, b, hc, c, hd, d, \ argument
59 .has_dies = hc, .dies = c, \
70 #define SMP_CONFIG_WITH_CLUSTERS(ha, a, hb, b, hc, c, hd, d, he, e, hf, f) \ argument
74 .has_clusters = hc, .clusters = c, \
84 #define SMP_CONFIG_WITH_BOOKS_DRAWERS(ha, a, hb, b, hc, c, hd, \ argument
89 .has_books = hc, .books = c, \

12