Searched refs:devname (Results 1 - 10 of 10) sorted by relevance

/system/core/toolbox/
H A Dsmd.c10 char devname[32]; local
20 sprintf(devname,"/dev/smd%d",port);
21 fd = open(devname, O_WRONLY);
H A Dnandread.c23 char *devname = NULL; local
55 devname = optarg;
97 if (!devname) {
102 fd = open(devname, O_RDONLY);
104 fprintf(stderr, "cannot open %s, %s\n", devname, strerror(errno));
127 devname, strerror(errno));
153 devname, strerror(errno));
166 devname, strerror(errno));
183 devname, strerror(errno));
210 devname, strerro
[all...]
H A Dgetevent.c410 char devname[PATH_MAX]; local
426 strcpy(devname, dirname);
427 filename = devname + strlen(devname);
436 open_device(devname, print_flags);
439 close_device(devname, print_flags);
451 char devname[PATH_MAX]; local
458 strcpy(devname, dirname);
459 filename = devname + strlen(devname);
[all...]
/system/core/debuggerd/
H A Dgetevent.c96 char devname[PATH_MAX]; local
112 strcpy(devname, dirname);
113 filename = devname + strlen(devname);
122 open_device(devname);
125 close_device(devname);
137 char devname[PATH_MAX]; local
144 strcpy(devname, dirname);
145 filename = devname + strlen(devname);
[all...]
/system/core/fastboot/
H A Dusb_linux.c247 char busname[64], devname[64]; local
270 sprintf(devname, "%s/%s", busname, de->d_name);
272 // DBG("[ scanning %s ]\n", devname);
274 if((fd = open(devname, O_RDWR)) < 0) {
278 if((fd = open(devname, O_RDONLY)) < 0) {
288 strcpy(usb->fname, devname);
/system/core/adb/
H A Dusb_linux.c135 char busname[32], devname[32]; local
165 snprintf(devname, sizeof devname, "%s/%s", busname, de->d_name);
167 if(known_device(devname)) {
168 DBGX("skipping %s\n", devname);
172 // DBGX("[ scanning %s ]\n", devname);
173 if((fd = unix_open(devname, O_RDONLY)) < 0) {
197 DBGX("[ %s is V:%04x P:%04x ]\n", devname, vid, pid);
290 register_device_callback(devname, devpath,
H A Dservices.c267 char *devname;
278 ((devname = (char*) ptsname(ptm)) == 0)){
296 pts = unix_open(devname, O_RDWR);
298 fprintf(stderr, "child failed to open pseudo-term slave: %s\n", devname);
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp116 char *devname; local
124 devname = pm->indev_name[0] ? pm->indev_name : pm->outdev_name;
126 asprintf(&mParams[1], "INTERFACE=%s", devname);
/system/core/logcat/
H A Dlogcat.cpp631 char devname[64]; local
639 len = snprintf( devname, sizeof(devname), "/dev/%.*s", len, p );
640 fprintf(stderr, "logcat using %s (%d)\n", devname, len);
641 if (len < (int)sizeof(devname)) {
642 fd = open( devname, O_WRONLY );
/system/core/libusbhost/
H A Dusbhost.c85 char devname[32]; local
96 snprintf(devname, sizeof(devname), "%s/%s", busname, de->d_name);
97 done = added_cb(devname, client_data);

Completed in 57 milliseconds