Lines Matching +full:usb +full:- +full:port +full:- +full:id
2 * common code shared by usb tests
12 * See the COPYING file in the top-level directory.
16 #include "hw/usb/uhci-regs.h"
17 #include "usb.h"
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()
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()
40 void usb_test_hotplug(QTestState *qts, const char *hcd_id, const char *port, in usb_test_hotplug() argument
43 char *id = g_strdup_printf("usbdev%s", port); in usb_test_hotplug() local
46 qtest_qmp_device_add(qts, "usb-tablet", id, "{'port': %s, 'bus': %s}", in usb_test_hotplug()
47 port, bus); in usb_test_hotplug()
53 qtest_qmp_device_del(qts, id); in usb_test_hotplug()
56 g_free(id); in usb_test_hotplug()