Home
last modified time | relevance | path

Searched refs:devaddr (Results 1 – 5 of 5) sorted by relevance

/external/libusb/libusb/os/
Dlinux_udev.c211 uint8_t *devaddr, const char **sys_name) { in udev_device_info() argument
224 return linux_get_device_address(ctx, detached, busnum, devaddr, in udev_device_info()
232 uint8_t busnum = 0, devaddr = 0; in udev_hotplug_event() local
244 r = udev_device_info(NULL, detached, udev_dev, &busnum, &devaddr, &sys_name); in udev_hotplug_event()
252 linux_hotplug_enumerate(busnum, devaddr, sys_name); in udev_hotplug_event()
254 linux_device_disconnected(busnum, devaddr); in udev_hotplug_event()
289 uint8_t busnum = 0, devaddr = 0; in linux_udev_scan_devices() local
293 r = udev_device_info(ctx, 0, udev_dev, &busnum, &devaddr, &sys_name); in linux_udev_scan_devices()
299 linux_enumerate_device(ctx, busnum, devaddr, sys_name); in linux_udev_scan_devices()
Dlinux_netlink.c190 const char **sys_name, uint8_t *busnum, uint8_t *devaddr) in linux_netlink_parse() argument
199 *devaddr = 0; in linux_netlink_parse()
237 *devaddr = (uint8_t)(strtoul(tmp, NULL, 10) & 0xff); in linux_netlink_parse()
261 *devaddr = (uint8_t)(strtoul(slash + 1, NULL, 10) & 0xff); in linux_netlink_parse()
287 uint8_t busnum, devaddr; in linux_netlink_read_message() local
331 r = linux_netlink_parse(msg_buffer, (size_t)len, &detached, &sys_name, &busnum, &devaddr); in linux_netlink_read_message()
336 busnum, devaddr, sys_name, detached ? "yes" : "no"); in linux_netlink_read_message()
340 linux_device_disconnected(busnum, devaddr); in linux_netlink_read_message()
342 linux_hotplug_enumerate(busnum, devaddr, sys_name); in linux_netlink_read_message()
Dlinux_usbfs.h202 void linux_hotplug_enumerate(uint8_t busnum, uint8_t devaddr, const char *sys_name);
203 void linux_device_disconnected(uint8_t busnum, uint8_t devaddr);
206 uint8_t *busnum, uint8_t *devaddr, const char *dev_node,
209 uint8_t busnum, uint8_t devaddr, const char *sysfs_dir);
Dlinux_usbfs.c557 uint8_t busnum, devaddr; in sysfs_scan_device() local
560 ret = linux_get_device_address(ctx, 0, &busnum, &devaddr, NULL, devname, -1); in sysfs_scan_device()
564 return linux_enumerate_device(ctx, busnum, devaddr, devname); in sysfs_scan_device()
587 uint8_t *busnum, uint8_t *devaddr, const char *dev_node, in linux_get_device_address() argument
615 sscanf(dev_node, "/dev/bus/usb/%hhu/%hhu", busnum, devaddr); in linux_get_device_address()
632 *devaddr = (uint8_t)sysfs_val; in linux_get_device_address()
634 usbi_dbg("bus=%u dev=%u", *busnum, *devaddr); in linux_get_device_address()
888 uint8_t devaddr, const char *sysfs_dir, int wrapped_fd) in initialize_device() argument
897 dev->device_address = devaddr; in initialize_device()
1077 uint8_t busnum, uint8_t devaddr, const char *sysfs_dir) in linux_enumerate_device() argument
[all …]
/external/libusb/examples/
Dfxload.c94 unsigned busnum = 0, devaddr = 0, _busnum, _devaddr; in main() local
112 if (sscanf(device_path, "%u,%u", &busnum, &devaddr) != 2 ) { in main()
193 if ((libusb_get_bus_number(dev) == busnum) && (libusb_get_device_address(dev) == devaddr)) in main()
210 ((type == NULL) && (device_path != NULL) && (busnum == _busnum) && (devaddr == _devaddr)) || in main()
217 devaddr = _devaddr; in main()
225 known_device[j].designation, vid, pid, busnum, devaddr); in main()