/system/extras/tests/storage/ |
D | wipe_blkdev.c | 82 char *devname; in main() local 95 devname = argv[2]; in main() 100 devname = argv[1]; in main() 103 fd = open(devname, O_RDWR); in main() 105 fprintf(stderr, "Cannot open device %s\n", devname); in main() 110 fprintf(stderr, "Cannot stat %s\n", devname); in main() 115 fprintf(stderr, "%s is not a block device\n", devname); in main() 122 fprintf(stderr, "Cannot get size of block device %s\n", devname); in main()
|
/system/core/debuggerd/ |
D | getevent.cpp | 107 char devname[PATH_MAX]; in read_notify() local 122 strcpy(devname, dirname); in read_notify() 123 filename = devname + strlen(devname); in read_notify() 131 open_device(devname); in read_notify() 133 close_device(devname); in read_notify() 144 char devname[PATH_MAX]; in scan_dir() local 151 strcpy(devname, dirname); in scan_dir() 152 filename = devname + strlen(devname); in scan_dir() 159 open_device(devname); in scan_dir()
|
/system/core/toolbox/ |
D | smd.c | 10 char devname[32]; in smd_main() local 20 sprintf(devname,"/dev/smd%d",port); in smd_main() 21 fd = open(devname, O_WRONLY); in smd_main()
|
D | nandread.c | 24 char *devname = NULL; in nandread_main() local 56 devname = optarg; in nandread_main() 98 if (!devname) { in nandread_main() 103 fd = open(devname, O_RDONLY); in nandread_main() 105 fprintf(stderr, "cannot open %s, %s\n", devname, strerror(errno)); in nandread_main() 128 devname, strerror(errno)); in nandread_main() 154 devname, strerror(errno)); in nandread_main() 167 devname, strerror(errno)); in nandread_main() 184 devname, strerror(errno)); in nandread_main() 211 devname, strerror(errno)); in nandread_main()
|
D | getevent.c | 416 char devname[PATH_MAX]; in read_notify() local 432 strcpy(devname, dirname); in read_notify() 433 filename = devname + strlen(devname); in read_notify() 442 open_device(devname, print_flags); in read_notify() 445 close_device(devname, print_flags); in read_notify() 457 char devname[PATH_MAX]; in scan_dir() local 464 strcpy(devname, dirname); in scan_dir() 465 filename = devname + strlen(devname); in scan_dir() 473 open_device(devname, print_flags); in scan_dir()
|
/system/core/fastboot/ |
D | usb_linux.c | 285 char* devname, int devname_size) in convert_to_devfs_name() argument 297 snprintf(devname, devname_size, "/dev/bus/usb/%03d/%03d", busnum, devnum); in convert_to_devfs_name() 304 char devname[64]; in find_usb_device() local 319 if(!convert_to_devfs_name(de->d_name, devname, sizeof(devname))) { in find_usb_device() 323 if((fd = open(devname, O_RDWR)) < 0) { in find_usb_device() 327 if((fd = open(devname, O_RDONLY)) < 0) { in find_usb_device() 337 strcpy(usb->fname, devname); in find_usb_device()
|
/system/core/init/ |
D | ueventd_keywords.h | 8 KEYWORD(devname, OPTION, 1)
|
D | devices.c | 644 const char *devname) in assemble_devpath() argument 646 int s = snprintf(devpath, DEVPATH_LEN, "%s/%s", dirname, devname); in assemble_devpath() 653 dirname, devname, DEVPATH_LEN); in assemble_devpath() 690 const char *devname; in handle_generic_device_event() local 694 devname = uevent->device_name; in handle_generic_device_event() 698 devname = name; in handle_generic_device_event() 707 if (!assemble_devpath(devpath, subsystem->dirname, devname)) in handle_generic_device_event()
|
/system/core/adb/ |
D | usb_linux.c | 135 char busname[32], devname[32]; in find_usb_device() local 165 snprintf(devname, sizeof devname, "%s/%s", busname, de->d_name); in find_usb_device() 167 if(known_device(devname)) { in find_usb_device() 168 DBGX("skipping %s\n", devname); in find_usb_device() 173 if((fd = unix_open(devname, O_RDONLY | O_CLOEXEC)) < 0) { in find_usb_device() 197 DBGX("[ %s is V:%04x P:%04x ]\n", devname, vid, pid); in find_usb_device() 290 register_device_callback(devname, devpath, in find_usb_device()
|
D | services.c | 217 char devname[64]; in create_subproc_pty() local 218 if(grantpt(ptm) || unlockpt(ptm) || ptsname_r(ptm, devname, sizeof(devname)) != 0) { in create_subproc_pty() 234 int pts = unix_open(devname, O_RDWR | O_CLOEXEC); in create_subproc_pty() 236 fprintf(stderr, "child failed to open pseudo-term slave: %s\n", devname); in create_subproc_pty()
|
/system/core/logcat/ |
D | logcat.cpp | 594 char devname[64]; in main() local 602 len = snprintf( devname, sizeof(devname), "/dev/%.*s", len, p ); in main() 603 fprintf(stderr, "logcat using %s (%d)\n", devname, len); in main() 604 if (len < (int)sizeof(devname)) { in main() 605 fd = open( devname, O_WRONLY ); in main()
|
/system/core/libusbhost/ |
D | usbhost.c | 95 char devname[32]; in find_existing_devices_bus() local 106 snprintf(devname, sizeof(devname), "%s/%s", busname, de->d_name); in find_existing_devices_bus() 107 done = added_cb(devname, client_data); in find_existing_devices_bus()
|
/system/core/libsysutils/src/ |
D | NetlinkEvent.cpp | 261 const char *devname; in parseUlogPacketMessage() local 266 devname = pm->indev_name[0] ? pm->indev_name : pm->outdev_name; in parseUlogPacketMessage() 268 asprintf(&mParams[1], "INTERFACE=%s", devname); in parseUlogPacketMessage()
|
/system/core/rootdir/ |
D | ueventd.rc | 2 devname uevent_devname
|