/system/extras/tests/storage/ |
H A D | wipe_blkdev.c | 83 char *devname; local 96 devname = argv[2]; 101 devname = argv[1]; 104 fd = open(devname, O_RDWR); 106 fprintf(stderr, "Cannot open device %s\n", devname); 111 fprintf(stderr, "Cannot stat %s\n", devname); 116 fprintf(stderr, "%s is not a block device\n", devname); 123 fprintf(stderr, "Cannot get size of block device %s\n", devname);
|
/system/core/init/ |
H A D | ueventd_keywords.h | 8 KEYWORD(devname, OPTION, 1)
|
H A D | devices.cpp | 610 const char *devname) 612 int s = snprintf(devpath, DEVPATH_LEN, "%s/%s", dirname, devname); 619 dirname, devname, DEVPATH_LEN); 651 const char *devname; local 655 devname = uevent->device_name; 659 devname = name; 668 if (!assemble_devpath(devpath, subsystem->dirname, devname)) 609 assemble_devpath(char *devpath, const char *dirname, const char *devname) argument
|
/system/core/debuggerd/ |
H A D | getevent.cpp | 107 char devname[PATH_MAX]; local 122 strcpy(devname, dirname); 123 filename = devname + strlen(devname); 131 open_device(devname); 133 close_device(devname); 144 char devname[PATH_MAX]; local 151 strcpy(devname, dirname); 152 filename = devname + strlen(devname); [all...] |
/system/core/toolbox/ |
H A D | nandread.c | 24 char *devname = NULL; local 56 devname = optarg; 98 if (!devname) { 103 fd = open(devname, O_RDONLY); 105 fprintf(stderr, "cannot open %s, %s\n", devname, strerror(errno)); 128 devname, strerror(errno)); 154 devname, strerror(errno)); 167 devname, strerror(errno)); 184 devname, strerror(errno)); 211 devname, strerro [all...] |
H A D | getevent.c | 435 char devname[PATH_MAX]; local 451 strcpy(devname, dirname); 452 filename = devname + strlen(devname); 461 open_device(devname, print_flags); 464 close_device(devname, print_flags); 476 char devname[PATH_MAX]; local 483 strcpy(devname, dirname); 484 filename = devname + strlen(devname); [all...] |
/system/core/fastboot/ |
H A D | usb_linux.c | 292 char* devname, int devname_size) 304 snprintf(devname, devname_size, "/dev/bus/usb/%03d/%03d", busnum, devnum); 311 char devname[64]; local 326 if(!convert_to_devfs_name(de->d_name, devname, sizeof(devname))) { 328 // DBG("[ scanning %s ]\n", devname); 330 if((fd = open(devname, O_RDWR)) < 0) { 334 if((fd = open(devname, O_RDONLY)) < 0) { 344 strcpy(usb->fname, devname); 291 convert_to_devfs_name(const char* sysfs_name, char* devname, int devname_size) argument
|
/system/bt/btif/src/ |
H A D | btif_pan.c | 303 static int tap_if_up(const char *devname, const bt_bdaddr_t *addr) argument 314 strncpy(ifr.ifr_name, devname, IFNAMSIZ - 1); 318 BTIF_TRACE_ERROR("Could not get network hardware for interface:%s, errno:%s", devname, strerror(errno)); 323 strncpy(ifr.ifr_name, devname, IFNAMSIZ - 1); 339 BTIF_TRACE_ERROR("Could not set bt address for interface:%s, errno:%s", devname, strerror(errno)); 346 strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1); 355 BTIF_TRACE_ERROR("Could not bring up network interface:%s, errno:%d", devname, errno); 360 BTIF_TRACE_DEBUG("network interface: %s is up", devname); 364 static int tap_if_down(const char *devname) argument 374 strncpy(ifr.ifr_name, devname, IF_NAMESIZ [all...] |
/system/core/adb/ |
H A D | usb_linux.cpp | 129 char busname[32], devname[32]; local 159 snprintf(devname, sizeof devname, "%s/%s", busname, de->d_name); 161 if(known_device(devname)) { 162 DBGX("skipping %s\n", devname); 166 // DBGX("[ scanning %s ]\n", devname); 167 if((fd = unix_open(devname, O_RDONLY | O_CLOEXEC)) < 0) { 191 DBGX("[ %s is V:%04x P:%04x ]\n", devname, vid, pid); 296 register_device_callback(devname, devpath,
|
H A D | services.cpp | 257 char devname[64]; 258 if(grantpt(ptm) || unlockpt(ptm) || ptsname_r(ptm, devname, sizeof(devname)) != 0) { 274 int pts = unix_open(devname, O_RDWR | O_CLOEXEC); 276 fprintf(stderr, "child failed to open pseudo-term slave: %s\n", devname);
|
/system/core/logcat/ |
H A D | logcat.cpp | 725 char devname[64]; local 733 len = snprintf( devname, sizeof(devname), "/dev/%.*s", len, p ); 734 fprintf(stderr, "logcat using %s (%d)\n", devname, len); 735 if (len < (int)sizeof(devname)) { 736 fd = open( devname, O_WRONLY );
|
/system/bt/stack/include/ |
H A D | gap_api.h | 106 tBTM_BD_NAME devname; member in struct:__anon1094
|
/system/core/libusbhost/ |
H A D | usbhost.c | 98 char devname[32]; local 109 snprintf(devname, sizeof(devname), "%s/%s", busname, de->d_name); 110 done = added_cb(devname, client_data);
|
/system/core/libsysutils/src/ |
H A D | NetlinkEvent.cpp | 258 const char *devname; local 263 devname = pm->indev_name[0] ? pm->indev_name : pm->outdev_name; 265 asprintf(&mParams[1], "INTERFACE=%s", devname);
|