Lines Matching defs:cur_bus
163 struct dirent *cur_bus, *cur_device;
171 while ((cur_bus = readdir(procdir)) != NULL) {
172 if (cur_bus->d_type != DT_DIR)
175 if (cur_bus->d_name[0] == '.')
179 snprintf(pci_dir_name, 255, "/proc/bus/pci/%s", cur_bus->d_name);
190 snprintf(pci_dev_name, 511, "/proc/bus/pci/%s/%s", cur_bus->d_name, cur_device->d_name);
215 environ[2] = xmalloc(21 + strlen(cur_bus->d_name) + strlen(cur_device->d_name));
217 strcat(environ[2], cur_bus->d_name);
260 struct dirent *cur_bus, *cur_device;
268 while ((cur_bus = readdir(procdir)) != NULL) {
269 if (cur_bus->d_type != DT_DIR)
272 if (cur_bus->d_name[0] == '.')
276 snprintf(usb_dir_name, 255, "/proc/bus/usb/%s", cur_bus->d_name);
287 snprintf(usb_dev_name, 511, "/proc/bus/usb/%s/%s", cur_bus->d_name, cur_device->d_name);