Home
last modified time | relevance | path

Searched refs:devname (Results 1 – 11 of 11) 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/fastboot/
Dusb_linux.cpp317 char* devname, int devname_size) in convert_to_devfs_name() argument
329 snprintf(devname, devname_size, "/dev/bus/usb/%03d/%03d", busnum, devnum); in convert_to_devfs_name()
336 char devname[64]; in find_usb_device() local
350 if (!convert_to_devfs_name(de->d_name, devname, sizeof(devname))) { in find_usb_device()
354 if ((fd = open(devname, O_RDWR)) < 0) { in find_usb_device()
358 if ((fd = open(devname, O_RDONLY)) < 0) { in find_usb_device()
367 strcpy(usb->fname, devname); in find_usb_device()
/system/core/toolbox/
Dgetevent.c434 char devname[PATH_MAX]; in read_notify() local
450 strcpy(devname, dirname); in read_notify()
451 filename = devname + strlen(devname); in read_notify()
460 open_device(devname, print_flags); in read_notify()
463 close_device(devname, print_flags); in read_notify()
475 char devname[PATH_MAX]; in scan_dir() local
482 strcpy(devname, dirname); in scan_dir()
483 filename = devname + strlen(devname); in scan_dir()
491 open_device(devname, print_flags); in scan_dir()
/system/bt/btif/src/
Dbtif_pan.cc282 static int tap_if_up(const char* devname, const bt_bdaddr_t* addr) { in tap_if_up() argument
291 strncpy(ifr.ifr_name, devname, IFNAMSIZ - 1); in tap_if_up()
295 "Could not get network hardware for interface:%s, errno:%s", devname, in tap_if_up()
301 strncpy(ifr.ifr_name, devname, IFNAMSIZ - 1); in tap_if_up()
322 devname, strerror(errno)); in tap_if_up()
329 strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1); in tap_if_up()
338 devname, errno); in tap_if_up()
343 BTIF_TRACE_DEBUG("network interface: %s is up", devname); in tap_if_up()
347 static int tap_if_down(const char* devname) { in tap_if_down() argument
355 strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1); in tap_if_down()
/system/core/init/
Dueventd_keywords.h8 KEYWORD(devname, OPTION, 1)
Ddevices.cpp696 const char *devname) in assemble_devpath() argument
698 int s = snprintf(devpath, DEVPATH_LEN, "%s/%s", dirname, devname); in assemble_devpath()
703 LOG(ERROR) << dirname << "/" << devname in assemble_devpath()
736 const char *devname; in handle_generic_device_event() local
740 devname = uevent->device_name; in handle_generic_device_event()
744 devname = name; in handle_generic_device_event()
752 if (!assemble_devpath(devpath, subsystem->dirname, devname)) in handle_generic_device_event()
/system/core/rootdir/
Dueventd.rc2 devname uevent_devname
7 # format for /dev rules: devname mode uid gid
/system/core/libusbhost/
Dusbhost.c103 char devname[32]; in find_existing_devices_bus() local
114 snprintf(devname, sizeof(devname), "%s/%s", busname, de->d_name); in find_existing_devices_bus()
115 done = added_cb(devname, client_data); in find_existing_devices_bus()
/system/core/libsysutils/src/
DNetlinkEvent.cpp253 const char *devname; in parseUlogPacketMessage() local
258 devname = pm->indev_name[0] ? pm->indev_name : pm->outdev_name; in parseUlogPacketMessage()
260 asprintf(&mParams[1], "INTERFACE=%s", devname); in parseUlogPacketMessage()
/system/core/logcat/
Dlogcat.cpp1252 std::string devname = "/dev/" + std::string(p, len); in __logcat() local
1258 size_t pos = devname.find(","); in __logcat()
1260 pipePurpose = devname.substr(pos + 1); in __logcat()
1261 devname = devname.substr(0, pos); in __logcat()
1268 devname.c_str()); in __logcat()
1271 FILE* fp = fopen(devname.c_str(), "web"); in __logcat()
1272 devname.erase(); in __logcat()
/system/bt/stack/include/
Dgap_api.h126 tBTM_BD_NAME devname; member