Home | History | Annotate | Download | only in qemu

Lines Matching defs:bus_num

64 typedef int USBScanFunc(void *opaque, int bus_num, int addr, int class_id,
135 int bus_num;
185 static USBHostDevice *hostdev_find(int bus_num, int addr)
189 if (s->bus_num == bus_num && s->addr == addr)
254 printf("husb: device %d.%d disconnected\n", s->bus_num, s->addr);
411 dprintf("husb: reset device %u.%u\n", s->bus_num, s->addr);
885 static USBDevice *usb_host_device_open_addr(int bus_num, int addr, const char *prod_name)
894 dev->bus_num = bus_num;
897 printf("husb: open device %d.%d\n", bus_num, addr);
904 bus_num, addr);
946 printf("husb: grabbed usb device %d.%d\n", bus_num, addr);
963 "host:%d.%d", bus_num, addr);
989 int bus_num, addr;
997 if (usb_host_find_device(&bus_num, &addr, product_name, sizeof(product_name),
1001 if (hostdev_find(bus_num, addr)) {
1003 bus_num, addr);
1007 return usb_host_device_open_addr(bus_num, addr, product_name);
1013 int bus_num, addr;
1019 if (usb_host_find_device(&bus_num, &addr, product_name, sizeof(product_name),
1023 s = hostdev_find(bus_num, addr);
1064 int bus_num, addr, speed, device_count, class_id, product_id, vendor_id;
1080 bus_num = addr = speed = class_id = product_id = vendor_id = 0;
1089 ret = func(opaque, bus_num, addr, class_id, vendor_id,
1096 bus_num = atoi(buf);
1133 ret = func(opaque, bus_num, addr, class_id, vendor_id,
1183 int bus_num, addr, speed, class_id, product_id, vendor_id;
1199 bus_num = atoi(tmpstr);
1241 ret = func(opaque, bus_num, addr, class_id, vendor_id,
1326 int bus_num;
1335 static int usb_host_auto_scan(void *opaque, int bus_num, int addr,
1347 if (f->bus_num >= 0 && f->bus_num != bus_num)
1362 if (hostdev_find(bus_num, addr))
1365 dprintf("husb: auto open: bus_num %d addr %d\n", bus_num, addr);
1367 dev = usb_host_device_open_addr(bus_num, addr, product_name);
1400 f->bus_num = -1;
1414 case BUS: f->bus_num = strtol(p, NULL, 10); break;
1432 return f1->bus_num == f2->bus_num &&
1467 dprintf("husb: added auto filter: bus_num %d addr %d vid %d pid %d\n",
1468 f->bus_num, f->addr, f->vendor_id, f->product_id);
1487 dprintf("husb: removed auto filter: bus_num %d addr %d vid %d pid %d\n",
1488 pf->bus_num, pf->addr, pf->vendor_id, pf->product_id);
1511 int bus_num;
1516 static int usb_host_find_device_scan(void *opaque, int bus_num, int addr,
1524 (bus_num == s->bus_num &&
1527 s->bus_num = bus_num;
1550 fs.bus_num = *pbus_num;
1564 fs.bus_num = -1;
1568 *pbus_num = fs.bus_num;
1612 static void usb_info_device(int bus_num, int addr, int class_id,
1636 bus_num, addr, speed_str);
1648 static int usb_host_info_device(void *opaque, int bus_num, int addr,
1654 usb_info_device(bus_num, addr, class_id, vendor_id, product_id,
1685 dec2str(f->bus_num, bus, sizeof(bus));