Home
last modified time | relevance | path

Searched refs:devname (Results 1 – 15 of 15) sorted by relevance

/system/extras/tests/storage/
Dwipe_blkdev.c83 char *devname; in main() local
96 devname = argv[2]; in main()
101 devname = argv[1]; in main()
104 fd = open(devname, O_RDWR); in main()
106 fprintf(stderr, "Cannot open device %s\n", devname); in main()
111 fprintf(stderr, "Cannot stat %s\n", devname); in main()
116 fprintf(stderr, "%s is not a block device\n", devname); in main()
123 fprintf(stderr, "Cannot get size of block device %s\n", devname); in main()
/system/core/debuggerd/
Dgetevent.cpp107 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/
Dnandread.c24 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()
Dgetevent.c435 char devname[PATH_MAX]; in read_notify() local
451 strcpy(devname, dirname); in read_notify()
452 filename = devname + strlen(devname); in read_notify()
461 open_device(devname, print_flags); in read_notify()
464 close_device(devname, print_flags); in read_notify()
476 char devname[PATH_MAX]; in scan_dir() local
483 strcpy(devname, dirname); in scan_dir()
484 filename = devname + strlen(devname); in scan_dir()
492 open_device(devname, print_flags); in scan_dir()
/system/core/fastboot/
Dusb_linux.c292 char* devname, int devname_size) in convert_to_devfs_name() argument
304 snprintf(devname, devname_size, "/dev/bus/usb/%03d/%03d", busnum, devnum); in convert_to_devfs_name()
311 char devname[64]; in find_usb_device() local
326 if(!convert_to_devfs_name(de->d_name, devname, sizeof(devname))) { in find_usb_device()
330 if((fd = open(devname, O_RDWR)) < 0) { in find_usb_device()
334 if((fd = open(devname, O_RDONLY)) < 0) { in find_usb_device()
344 strcpy(usb->fname, devname); in find_usb_device()
/system/core/adb/
Dusb_linux.cpp129 char busname[32], devname[32]; in find_usb_device() local
159 snprintf(devname, sizeof devname, "%s/%s", busname, de->d_name); in find_usb_device()
161 if(known_device(devname)) { in find_usb_device()
162 DBGX("skipping %s\n", devname); in find_usb_device()
167 if((fd = unix_open(devname, O_RDONLY | O_CLOEXEC)) < 0) { in find_usb_device()
191 DBGX("[ %s is V:%04x P:%04x ]\n", devname, vid, pid); in find_usb_device()
296 register_device_callback(devname, devpath, in find_usb_device()
Dservices.cpp257 char devname[64]; in create_subproc_pty() local
258 if(grantpt(ptm) || unlockpt(ptm) || ptsname_r(ptm, devname, sizeof(devname)) != 0) { in create_subproc_pty()
274 int pts = unix_open(devname, O_RDWR | O_CLOEXEC); in create_subproc_pty()
276 fprintf(stderr, "child failed to open pseudo-term slave: %s\n", devname); in create_subproc_pty()
/system/bt/btif/src/
Dbtif_pan.c303 static int tap_if_up(const char *devname, const bt_bdaddr_t *addr) in tap_if_up() argument
314 strncpy(ifr.ifr_name, devname, IFNAMSIZ - 1); in tap_if_up()
318 …BTIF_TRACE_ERROR("Could not get network hardware for interface:%s, errno:%s", devname, strerror(er… in tap_if_up()
323 strncpy(ifr.ifr_name, devname, IFNAMSIZ - 1); in tap_if_up()
339 … BTIF_TRACE_ERROR("Could not set bt address for interface:%s, errno:%s", devname, strerror(errno)); in tap_if_up()
346 strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1); in tap_if_up()
355 BTIF_TRACE_ERROR("Could not bring up network interface:%s, errno:%d", devname, errno); in tap_if_up()
360 BTIF_TRACE_DEBUG("network interface: %s is up", devname); in tap_if_up()
364 static int tap_if_down(const char *devname) in tap_if_down() argument
374 strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1); in tap_if_down()
/system/core/init/
Dueventd_keywords.h8 KEYWORD(devname, OPTION, 1)
Ddevices.cpp610 const char *devname) in assemble_devpath() argument
612 int s = snprintf(devpath, DEVPATH_LEN, "%s/%s", dirname, devname); in assemble_devpath()
619 dirname, devname, DEVPATH_LEN); in assemble_devpath()
651 const char *devname; in handle_generic_device_event() local
655 devname = uevent->device_name; in handle_generic_device_event()
659 devname = name; in handle_generic_device_event()
668 if (!assemble_devpath(devpath, subsystem->dirname, devname)) in handle_generic_device_event()
/system/core/logcat/
Dlogcat.cpp725 char devname[64]; in main() local
733 len = snprintf( devname, sizeof(devname), "/dev/%.*s", len, p ); in main()
734 fprintf(stderr, "logcat using %s (%d)\n", devname, len); in main()
735 if (len < (int)sizeof(devname)) { in main()
736 fd = open( devname, O_WRONLY ); in main()
/system/core/libusbhost/
Dusbhost.c98 char devname[32]; in find_existing_devices_bus() local
109 snprintf(devname, sizeof(devname), "%s/%s", busname, de->d_name); in find_existing_devices_bus()
110 done = added_cb(devname, client_data); in find_existing_devices_bus()
/system/core/libsysutils/src/
DNetlinkEvent.cpp258 const char *devname; in parseUlogPacketMessage() local
263 devname = pm->indev_name[0] ? pm->indev_name : pm->outdev_name; in parseUlogPacketMessage()
265 asprintf(&mParams[1], "INTERFACE=%s", devname); in parseUlogPacketMessage()
/system/bt/stack/include/
Dgap_api.h106 tBTM_BD_NAME devname; member
/system/core/rootdir/
Dueventd.rc2 devname uevent_devname