Lines Matching defs:bus
110 static void usb_free_bus(usb_bus_t *bus);
130 * Returns: 0 or ENOSUP if we cannot support any bus
214 usb_bus_t *bus;
219 if ((bus = calloc(sizeof (*bus), 1)) == NULL) {
224 (void) strncpy(bus->dirname, "/dev/usb",
225 sizeof (bus->dirname));
228 "found %s\n", bus->dirname);
230 usb_busses = bus;
1449 hdl->device->bus->dirname, hdl->device->filename,
1576 hdl->device->bus->dirname, hdl->device->filename);
1590 hdl->device->bus->dirname, hdl->device->filename);
2232 * frees the entire bus structure, not used, just for
2236 usb_free_bus(usb_bus_t *bus)
2238 free(bus);
2313 usb_bus_t *bus = usb_busses;
2330 if (!(dir = opendir(bus->dirname))) {
2335 "couldn't opendir %s: %d", bus->dirname, errno);
2356 (void) snprintf(device, PATH_MAX, "%s/%s", bus->dirname,
2412 dev->bus = bus;
2418 bus->dirname, dev->filename);