Searched refs:dev (Results 1 - 25 of 33) sorted by relevance

12

/system/core/toolbox/
H A Dlsusb.c28 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 Ddu.c241 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 Dmount.c18 #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 Dumount.c14 static int is_loop(char *dev) argument
19 if (stat(dev, &st) == 0) {
/system/extras/tests/fstest/
H A Dperm_checker.conf39 /dev/ 755 755 root root root root
40 /dev/alarm 600 664 root radio root radio
41 /dev/ashmem 666 666 root root root root
42 /dev/android_adb 600 660 root adb root adb
43 /dev/android_adb_enable 600 660 root adb root adb
44 /dev/android_ums 640 640 mount mount mount mount
45 /dev/binder 666 666 root root root root
46 /dev/console 600 600 root root root root
47 /dev/full 666 666 root root root root
48 /dev/hw3
[all...]
H A Dmounts-test.sh24 adb shell ls /dev/*mem | grep -q $i
/system/core/rootdir/etc/
H A Dmountd.conf6 block_device /dev/block/mmcblk0
H A Dinit.testmenu3 atdev=/dev/omap_csmi_tty0
4 pppdev=/dev/omap_csmi_tty1
6 n1=`cat /data/phoneentry1 2>/dev/null`
7 n2=`cat /data/phoneentry2 2>/dev/null`
8 n3=`cat /data/phoneentry3 2>/dev/null`
154 echo " 7: cat /dev/omap_csmi_battery_t"
155 echo " 8: cat /dev/omap_csmi_htc"
161 "1" ) cat /dev/omap_csmi_ffs >/data/ffsdata;;
162 "2" ) cat /data/ffsdata >/dev/omap_csmi_ffs;;
163 "3" ) cat /system/ffsdata >/dev/omap_csmi_ff
[all...]
H A Dinit.goldfish.sh5 route add default gw 10.0.2.2 dev eth0
/system/core/logcat/
H A Dlogcat.cpp33 #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/fastboot/
H A Dusb_osx.c67 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...]
H A Dusb_linux.c102 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...]
/system/extras/tests/ext4/
H A Dandroid_emmc_perf_tests.sh10 if ! adb shell true >/dev/null 2>&1
20 CACHE="/dev/block/platform/omap/omap_hsmmc.0/by-name/cache"
26 CACHE="/dev/block/platform/sdhci-tegra.3/by-name/cache"
41 CACHE="/dev/block/platform/s3c-sdhci.0/by-name/userdata"
47 CACHE="/dev/block/platform/sdhci-tegra.3/by-name/CAC"
53 CACHE="/dev/block/platform/dw_mmc.0/by-name/cache"
65 adb push "$PERF" /dev
78 adb shell umount /sdcard >/dev/null 2>&1
79 adb shell umount /mnt/shell/sdcard0 >/dev/null 2>&1
80 adb shell umount /data >/dev/nul
[all...]
/system/core/adb/
H A Dremount_service.c74 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 Dusb_osx.c125 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...]
H A Dusb_libusb.c48 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...]
/system/core/init/
H A Dgrab-bootchart.sh18 adb pull $LOGROOT/$f $TMPDIR/$f 2>&1 > /dev/null
/system/security/softkeymaster/
H A Dkeymaster_openssl.cpp209 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 DDevmapper.cpp58 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0) {
77 if (!n->dev) {
100 asprintf(&tmp, "%s %llu:%llu (no status available)", n->name, MAJOR(n->dev), MINOR(n->dev));
102 asprintf(&tmp, "%s %llu:%llu %d %d 0x%.8x %llu:%llu", n->name, MAJOR(n->dev),
103 MINOR(n->dev), io2->target_count, io2->open_count, io2->flags, MAJOR(io2->dev),
104 MINOR(io2->dev));
141 if ((fd = open("/dev/device-mapper", O_RDWR)) < 0) {
160 unsigned minor = (io->dev
[all...]
/system/core/include/usbhost/
H A Dusbhost.h44 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/netd/
H A DPppController.cpp84 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/core/sh/
H A Dmkbuiltins47 if grep '^#define JOBS[ ]*1' ${shell} > /dev/null
/system/extras/fatblock/
H A Dfatblock.h49 dev_t dev; member in struct:file
/system/extras/ext4_utils/
H A Dtest_ext4fixup54 ext4fixup -d "$PHASE,$LOC,$COUNT" "$NEW_FS_IMAGE" 2>/dev/null
/system/core/libusbhost/
H A Dusbhost.c52 #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...]

Completed in 481 milliseconds

12