Searched refs:busdir (Results 1 – 2 of 2) sorted by relevance
336 DIR *busdir; in find_usb_device() local341 busdir = opendir(base); in find_usb_device()342 if (busdir == 0) return 0; in find_usb_device()344 while ((de = readdir(busdir)) && (usb == nullptr)) { in find_usb_device()380 closedir(busdir); in find_usb_device()
122 DIR *busdir; in find_existing_devices() local126 busdir = opendir(USB_FS_DIR); in find_existing_devices()127 if(busdir == 0) return 0; in find_existing_devices()129 while ((de = readdir(busdir)) != 0 && !done) { in find_existing_devices()136 closedir(busdir); in find_existing_devices()