/system/security/keystore/ |
H A D | keystore.cpp | 103 static int keymaster_device_initialize(keymaster_device_t** dev) { argument 113 rc = keymaster_open(mod, dev); 123 *dev = NULL; 127 static void keymaster_device_release(keymaster_device_t* dev) { argument 128 keymaster_close(dev); 349 const char* randomDevice = "/dev/urandom"; 2337 keymaster_device_t* dev; local 2338 if (keymaster_device_initialize(&dev)) { 2343 KeyStore keyStore(&entropy, dev); 2359 keymaster_device_release(dev); [all...] |
/system/security/softkeymaster/ |
H A D | module.cpp | 40 static int openssl_close(hw_device_t *dev) { argument 41 delete dev; 53 Unique_keymaster_device_t dev(new keymaster_device_t); 54 if (dev.get() == NULL) 57 dev->common.tag = HARDWARE_DEVICE_TAG; 58 dev->common.version = 1; 59 dev->common.module = (struct hw_module_t*) module; 60 dev->common.close = openssl_close; 62 dev->flags = KEYMASTER_SOFTWARE_ONLY; 64 dev [all...] |
/system/vold/ |
H A D | Loop.cpp | 48 sprintf(filename, "/dev/block/loop%d", i); 92 sprintf(filename, "/dev/block/loop%d", i); 136 sprintf(filename, "/dev/block/loop%d", i); 143 unsigned int dev = (0xff & i) | ((i << 12) & 0xfff00000) | (7 << 8); local 144 if (mknod(filename, mode, dev) < 0) {
|
H A D | Volume.cpp | 223 dev_t dev = (major << 8) | minor; local 224 if (mknod(path, mode, dev) < 0) { 262 sprintf(devicePath, "/dev/block/vold/%d:%d", 271 sprintf(devicePath, "/dev/block/vold/%d:%d", 396 sizeof(nodepath), "/dev/block/vold/%d:%d", 418 sprintf(devicePath, "/dev/block/vold/%d:%d", MAJOR(deviceNodes[i]), 656 cmd += " -c /dev/null ";
|
H A D | cryptfs.c | 153 static unsigned int get_fs_size(char *dev) argument 159 if ((fd = open(dev, O_RDONLY)) < 0) { 783 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0 ) { 802 minor = (io->dev & 0xff) | ((io->dev >> 12) & 0xfff00); 803 snprintf(crypto_blk_name, MAXPATHLEN, "/dev/block/dm-%u", minor); 848 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0 ) { 997 fd = open("/dev/urandom", O_RDONLY); 1320 sprintf(real_blkdev, "/dev/block/vold/%d:%d", major, minor);
|
/system/netd/ |
H A D | PppController.cpp | 84 char dev[32]; local 89 snprintf(dev, sizeof(dev), "/dev/%s", tty); 93 if (execl("/system/bin/pppd", "/system/bin/pppd", "-detach", dev, "115200",
|
/system/extras/fatblock/ |
H A D | fatblock.h | 49 dev_t dev; member in struct:file
|
/system/core/adb/ |
H A D | remount_service.c | 74 char *dev; local 82 dev = find_mount("/system"); 84 if (!dev) 87 fd = unix_open(dev, O_RDONLY); 94 system_ro = mount(dev, "/system", "none", MS_REMOUNT, NULL); 96 free(dev);
|
H A D | usb_libusb.c | 48 libusb_device *dev; member in struct:usb_handle 220 libusb_unref_device(h->dev); 244 libusb_unref_device(h->dev); 378 check_device(libusb_device *dev) argument 388 int r = libusb_get_device_descriptor(dev, &desc); 408 uh.dev_bus = libusb_get_bus_number(dev); 409 uh.dev_addr = libusb_get_device_address(dev); 420 r = libusb_get_active_config_descriptor(dev, &config); 447 r = libusb_open(dev, &uh.devh); 448 uh.dev 585 libusb_device *dev= NULL; local [all...] |
H A D | usb_osx.c | 125 IOUSBDeviceInterface197 **dev = NULL; local 184 CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID), (LPVOID) &dev); 187 if (result || !dev) { 196 kr = (*dev)->GetDeviceVendor(dev, &vendor); 197 kr = (*dev)->GetDeviceProduct(dev, &product); 198 kr = (*dev)->GetLocationID(dev, &locationId); 203 kr = (*dev) [all...] |
/system/core/fastboot/ |
H A D | usb_linux.c | 102 struct usb_device_descriptor *dev; local 117 dev = (void*) ptr; 118 len -= dev->bLength; 119 ptr += dev->bLength; 127 info.dev_vendor = dev->idVendor; 128 info.dev_product = dev->idProduct; 129 info.dev_class = dev->bDeviceClass; 130 info.dev_subclass = dev->bDeviceSubClass; 131 info.dev_protocol = dev->bDeviceProtocol; 136 if (dev [all...] |
H A D | usb_osx.c | 67 static int try_interfaces(IOUSBDeviceInterface182 **dev, usb_handle *handle) { argument 91 (*dev)->GetConfiguration(dev, &configuration); 93 (*dev)->SetConfiguration(dev, 1); 96 kr = (*dev)->CreateInterfaceIterator(dev, &request, &iterator); 263 IOUSBDeviceInterface182 **dev = NULL; local 282 CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID), (LPVOID) &dev); 283 if ((result != 0) || (dev [all...] |
/system/core/include/usbhost/ |
H A D | usbhost.h | 44 struct usb_device *dev; member in struct:usb_request 212 struct usb_request *usb_request_new(struct usb_device *dev, 224 struct usb_request *usb_request_wait(struct usb_device *dev);
|
/system/core/init/ |
H A D | devices.c | 201 dev_t dev; local 211 dev = makedev(major, minor); 218 mknod(path, mode, dev); 406 if (asprintf(&links[link_num], "/dev/usb/%s%.*s", uevent->subsystem, width, parent) > 0) 410 mkdir("/dev/usb", 0755); 449 snprintf(link_path, sizeof(link_path), "/dev/block/platform/%s", device); 521 /* if it's not a /dev device, nothing else to do */ 540 const char *base = "/dev/block/"; 578 snprintf(devpath, sizeof(devpath), "/dev/%s", uevent->device_name); 579 /* skip leading /dev/ */ [all...] |
/system/core/libusbhost/ |
H A D | usbhost.c | 53 #define DEV_DIR "/dev" 410 int bus = 0, dev = 0; local 411 sscanf(device->dev_name, USB_FS_ID_SCANNER, &bus, &dev); 412 return bus * 1000 + dev; 417 int bus = 0, dev = 0; local 418 sscanf(name, USB_FS_ID_SCANNER, &bus, &dev); 419 return bus * 1000 + dev; 425 int dev = id % 1000; local 427 snprintf(result, strlen(USB_FS_ID_FORMAT) - 1, USB_FS_ID_FORMAT, bus, dev); 605 struct usb_request *usb_request_new(struct usb_device *dev, argument 664 usb_request_wait(struct usb_device *dev) argument [all...] |
/system/core/logcat/ |
H A D | logcat.cpp | 33 #define LOG_FILE_DIR "/dev/log/" 160 static void processBuffer(log_device_t* dev, struct logger_entry *buf) argument 167 if (dev->binary) { 181 binaryMsgBuf[0] = dev->label; 211 static void chooseFirst(log_device_t* dev, log_device_t** firstdev) { argument 212 for (*firstdev = NULL; dev != NULL; dev = dev->next) { 213 if (dev->queue != NULL && (*firstdev == NULL || cmp(dev 219 maybePrintStart(log_device_t* dev) argument 233 skipNextEntry(log_device_t* dev) argument 240 printNextEntry(log_device_t* dev) argument 252 log_device_t* dev; local 466 log_device_t* dev; local [all...] |
/system/core/toolbox/ |
H A D | du.c | 241 linkchk(dev_t dev, ino_t ino) argument 244 dev_t dev; member in struct:entry 260 if (dev == 0 && ino == 0) { 287 if (ohtable[i].ino || ohtable[i].dev) 288 linkchk(ohtable[i].dev, ohtable[i].ino); 294 tmp = dev; 302 while (htable[h].ino || htable[h].dev) { 303 if ((htable[h].ino == ino) && (htable[h].dev == dev)) 309 htable[h].dev [all...] |
H A D | lsusb.c | 28 static const char *get_str(struct usb_device *dev, int id) argument 30 char *str = usb_device_get_string(dev, id); 43 static void lsusb_parse_device_descriptor(struct usb_device *dev, argument 55 printf("\tiManufacturer: %s\n", get_str(dev, desc->iManufacturer)); 56 printf("\tiProduct: %s\n", get_str(dev, desc->iProduct)); 57 printf("\tiSerialNumber: %s\n", get_str(dev,desc->iSerialNumber)); 62 static void lsusb_parse_config_descriptor(struct usb_device *dev, argument 69 printf("\tiConfiguration: %s\n", get_str(dev, desc->iConfiguration)); 75 static void lsusb_parse_interface_descriptor(struct usb_device *dev, argument 85 printf("\tiInterface: %s\n", get_str(dev, des 89 lsusb_parse_endpoint_descriptor(struct usb_device *dev, struct usb_endpoint_descriptor *desc) argument 102 lsusb_dump_descriptor(struct usb_device *dev, struct usb_descriptor_header *desc) argument 121 lsusb_parse_descriptor(struct usb_device *dev, struct usb_descriptor_header *desc) argument 150 struct usb_device *dev = usb_device_open(dev_name); local [all...] |
H A D | mount.c | 18 #define DEFAULT_LOOP_DEVICE "/dev/block/loop0" 46 { "dev", MS_NODEV, 0, MS_NODEV }, 165 do_mount(char *dev, char *dir, char *type, unsigned long rwflag, void *data, int loop, argument 177 file_fd = open(dev, flags); 197 dev = loopdev; 201 fs_set_blk_rw(dev); 206 if (mount(dev, dir, s, rwflag, data) == -1) { 260 static int get_mounts_dev_dir(const char *arg, char **dev, char **dir) argument 288 *dev = strdup(mount_dev); 302 char *dev local [all...] |
H A D | umount.c | 14 static int is_loop(char *dev) argument 19 if (stat(dev, &st) == 0) {
|