Searched refs:bus (Results 1 – 4 of 4) sorted by relevance
/system/core/init/ |
D | devices.c | 232 struct platform_node *bus; in add_platform_device() local 242 bus = node_to_item(node, struct platform_node, list); in add_platform_device() 243 if ((bus->path_len < path_len) && in add_platform_device() 244 (path[bus->path_len] == '/') && in add_platform_device() 245 !strncmp(path, bus->path, bus->path_len)) in add_platform_device() 252 bus = calloc(1, sizeof(struct platform_node)); in add_platform_device() 253 bus->path = strdup(path); in add_platform_device() 254 bus->path_len = path_len; in add_platform_device() 255 bus->name = bus->path + (name - path); in add_platform_device() 256 list_add_tail(&platform_names, &bus->list); in add_platform_device() [all …]
|
/system/core/libusbhost/ |
D | usbhost.c | 410 int bus = 0, dev = 0; in usb_device_get_unique_id() local 411 sscanf(device->dev_name, USB_FS_ID_SCANNER, &bus, &dev); in usb_device_get_unique_id() 412 return bus * 1000 + dev; in usb_device_get_unique_id() 417 int bus = 0, dev = 0; in usb_device_get_unique_id_from_name() local 418 sscanf(name, USB_FS_ID_SCANNER, &bus, &dev); in usb_device_get_unique_id_from_name() 419 return bus * 1000 + dev; in usb_device_get_unique_id_from_name() 424 int bus = id / 1000; in usb_device_get_name_from_unique_id() local 427 snprintf(result, strlen(USB_FS_ID_FORMAT) - 1, USB_FS_ID_FORMAT, bus, dev); in usb_device_get_name_from_unique_id()
|
/system/core/rootdir/ |
D | ueventd.rc | 75 /dev/bus/usb/* 0660 root usb
|
/system/core/toolbox/ |
D | getevent.c | 260 static void print_hid_descriptor(int bus, int vendor, int product) in print_hid_descriptor() argument 270 snprintf(prefix, sizeof(prefix), "%04X:%04X:%04X.", bus, vendor, product); in print_hid_descriptor()
|