Lines Matching refs:devices
55 * devices to usbfs nodes.
104 /* do we have a busnum to relate devices? this also implies that we can read
358 DIR *devices = opendir(SYSFS_DEVICE_PATH);
361 usbi_dbg("found usb devices in sysfs");
363 if (!devices) {
364 usbi_err(ctx, "opendir devices failed errno=%d", errno);
382 while ((entry = readdir(devices))) {
406 closedir(devices);
843 /* we hit this error path frequently with buggy devices :( */
929 /* buggy devices sometimes fail to report their active config.
938 /* some buggy devices have a configuration 0, but we're
940 * not support buggy devices in these circumstances.
1035 /* open a bus directory and adds all discovered devices to discdevs. on
1037 * (and devices freed). on success, the new discdevs pointer should be used
1164 DIR *devices = opendir(SYSFS_DEVICE_PATH);
1168 if (!devices) {
1169 usbi_err(ctx, "opendir devices failed errno=%d", errno);
1173 while ((entry = readdir(devices))) {
1191 closedir(devices);
1200 * any autosuspended USB devices. however, sysfs is not available
1205 * relate sysfs devices to usbfs nodes. op_init() determines the