Lines Matching refs:devaddr
666 uint8_t devaddr, const char *sysfs_dir) in initialize_device() argument
677 dev->device_address = devaddr; in initialize_device()
787 struct discovered_devs **_discdevs, uint8_t busnum, uint8_t devaddr, in enumerate_device() argument
799 session_id = busnum << 8 | devaddr; in enumerate_device()
800 usbi_dbg("busnum %d devaddr %d session_id %ld", busnum, devaddr, in enumerate_device()
806 busnum, devaddr, session_id); in enumerate_device()
809 busnum, devaddr, session_id); in enumerate_device()
814 r = initialize_device(dev, busnum, devaddr, sysfs_dir); in enumerate_device()
858 int devaddr; in usbfs_scan_busdir() local
863 devaddr = atoi(entry->d_name); in usbfs_scan_busdir()
864 if (devaddr == 0) { in usbfs_scan_busdir()
869 r = enumerate_device(ctx, &discdevs, busnum, (uint8_t) devaddr, NULL); in usbfs_scan_busdir()
927 int devaddr; in sysfs_scan_device() local
978 r = fscanf(fd, "%d", &devaddr); in sysfs_scan_device()
985 usbi_dbg("bus=%d dev=%d", busnum, devaddr); in sysfs_scan_device()
986 if (busnum > 255 || devaddr > 255) in sysfs_scan_device()
989 return enumerate_device(ctx, _discdevs, busnum & 0xff, devaddr & 0xff, in sysfs_scan_device()