Searched refs:usb_device (Results 1 – 7 of 7) sorted by relevance
44 struct usb_device *dev;104 struct usb_device *usb_device_open(const char *dev_name);107 void usb_device_close(struct usb_device *device);110 struct usb_device *usb_device_new(const char *dev_name, int fd);113 int usb_device_get_fd(struct usb_device *device);118 const char* usb_device_get_name(struct usb_device *device);123 int usb_device_get_unique_id(struct usb_device *device);135 uint16_t usb_device_get_vendor_id(struct usb_device *device);138 uint16_t usb_device_get_product_id(struct usb_device *device);140 const struct usb_device_descriptor* usb_device_get_device_descriptor(struct usb_device *device);[all …]
83 struct usb_device { struct325 struct usb_device *usb_device_open(const char *dev_name) in usb_device_open()350 struct usb_device* result = usb_device_new(dev_name, fd); in usb_device_open()356 void usb_device_close(struct usb_device *device) in usb_device_close()362 struct usb_device *usb_device_new(const char *dev_name, int fd) in usb_device_new()364 struct usb_device *device = calloc(1, sizeof(struct usb_device)); in usb_device_new()389 static int usb_device_reopen_writeable(struct usb_device *device) in usb_device_reopen_writeable()405 int usb_device_get_fd(struct usb_device *device) in usb_device_get_fd()412 const char* usb_device_get_name(struct usb_device *device) in usb_device_get_name()417 int usb_device_get_unique_id(struct usb_device *device) in usb_device_get_unique_id()[all …]
58 type usb_device, dev_type, mlstrustedobject;
90 neverallow isolated_app { usb_device usbaccessory_device }:chr_file *;
491 allow system_server usb_device:chr_file rw_file_perms;492 allow system_server usb_device:dir r_dir_perms;
241 allow { appdomain -isolated_app -ephemeral_app } usb_device:chr_file { read write getattr ioctl };
77 /dev/bus/usb(.*)? u:object_r:usb_device:s0