/system/security/keystore/ |
H A D | keystore.cpp | 129 static int keymaster_device_initialize(keymaster_device_t** dev) { argument 139 rc = keymaster_open(mod, dev); 149 *dev = NULL; 153 static void keymaster_device_release(keymaster_device_t* dev) { argument 154 keymaster_close(dev); 237 const char* randomDevice = "/dev/urandom"; 1427 keymaster_device_t* dev; local 1428 if (keymaster_device_initialize(&dev)) { 1440 KeyStore keyStore(&entropy, dev); 1474 keymaster_device_release(dev); [all...] |
/system/security/softkeymaster/ |
H A D | keymaster_openssl.cpp | 209 static int openssl_generate_keypair(const keymaster_device_t* dev, argument 268 static int openssl_import_keypair(const keymaster_device_t* dev, argument 302 static int openssl_get_keypair_public(const struct keymaster_device* dev, argument 341 static int openssl_sign_data(const keymaster_device_t* dev, argument 401 static int openssl_verify_data(const keymaster_device_t* dev, argument 461 static int openssl_close(hw_device_t *dev) { argument 462 free(dev); 474 Unique_keymaster_device_t dev(new keymaster_device_t); 475 if (dev.get() == NULL) 478 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 | 201 dev_t dev = (major << 8) | minor; local 202 if (mknod(path, mode, dev) < 0) { 238 sprintf(devicePath, "/dev/block/vold/%d:%d", 247 sprintf(devicePath, "/dev/block/vold/%d:%d", 371 sizeof(nodepath), "/dev/block/vold/%d:%d", 393 sprintf(devicePath, "/dev/block/vold/%d:%d", MAJOR(deviceNodes[i]),
|
H A D | cryptfs.c | 87 static unsigned int get_fs_size(char *dev) argument 93 if ((fd = open(dev, O_RDONLY)) < 0) { 393 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0 ) { 412 minor = (io->dev & 0xff) | ((io->dev >> 12) & 0xfff00); 413 snprintf(crypto_blk_name, MAXPATHLEN, "/dev/block/dm-%u", minor); 471 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0 ) { 578 fd = open("/dev/urandom", O_RDONLY); 890 sprintf(real_blkdev, "/dev/block/vold/%d:%d", major, minor);
|
/system/core/adb/ |
H A D | remount_service.c | 74 char *dev; local 80 dev = find_mount("/system"); 82 if (!dev) 85 system_ro = mount(dev, "/system", "none", MS_REMOUNT, NULL); 87 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 199 struct usb_request *usb_request_new(struct usb_device *dev, 211 struct usb_request *usb_request_wait(struct usb_device *dev);
|
/system/core/init/ |
H A D | devices.c | 195 dev_t dev; local 207 dev = makedev(major, minor); 214 mknod(path, mode, dev); 393 if (asprintf(&links[link_num], "/dev/usb/%s%.*s", uevent->subsystem, width, parent) > 0) 397 mkdir("/dev/usb", 0755); 438 snprintf(link_path, sizeof(link_path), "/dev/block/platform/%s", device); 512 /* if it's not a /dev device, nothing else to do */ 531 const char *base = "/dev/block/"; 569 snprintf(devpath, sizeof(devpath), "/dev/%s", uevent->device_name); 570 /* skip leading /dev/ */ [all...] |
/system/core/libusbhost/ |
H A D | usbhost.c | 52 #define DEV_DIR "/dev" 53 #define USB_FS_DIR "/dev/bus/usb" 54 #define USB_FS_ID_SCANNER "/dev/bus/usb/%d/%d" 55 #define USB_FS_ID_FORMAT "/dev/bus/usb/%03d/%03d" 351 int bus = 0, dev = 0; local 352 sscanf(device->dev_name, USB_FS_ID_SCANNER, &bus, &dev); 353 return bus * 1000 + dev; 358 int bus = 0, dev = 0; local 359 sscanf(name, USB_FS_ID_SCANNER, &bus, &dev); 360 return bus * 1000 + dev; 366 int dev = id % 1000; local 546 usb_request_new(struct usb_device *dev, const struct usb_endpoint_descriptor *ep_desc) argument 605 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 }, 146 do_mount(char *dev, char *dir, char *type, unsigned long rwflag, void *data, int loop, argument 158 file_fd = open(dev, flags); 178 dev = loopdev; 183 if (mount(dev, dir, s, rwflag, data) == -1) { 237 static int get_mounts_dev_dir(const char *arg, char **dev, char **dir) argument 265 *dev = strdup(mount_dev); 279 char *dev = NULL; local 323 dev [all...] |
H A D | umount.c | 14 static int is_loop(char *dev) argument 19 if (stat(dev, &st) == 0) {
|
/system/extras/fatblock/ |
H A D | fatblock.h | 49 dev_t dev; member in struct:file
|
/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",
|