/external/autotest/client/site_tests/camera_V4L2/src/ |
D | media_v4l2_unittest.cc | 25 void TestMultipleOpen(const char* dev_name, V4L2Device::IOMethod io) { in TestMultipleOpen() argument 26 V4L2Device v4l2_dev1(dev_name, io, 4); in TestMultipleOpen() 27 V4L2Device v4l2_dev2(dev_name, io, 4); in TestMultipleOpen() 29 printf("[Error] Can not open device '%s' for the first time\n", dev_name); in TestMultipleOpen() 32 printf("[Error] Can not open device '%s' for the second time\n", dev_name); in TestMultipleOpen() 40 void TestMultipleInit(const char* dev_name, V4L2Device::IOMethod io) { in TestMultipleInit() argument 41 V4L2Device v4l2_dev1(dev_name, io, 4); in TestMultipleInit() 42 V4L2Device v4l2_dev2(dev_name, io, 4); in TestMultipleInit() 44 printf("[Error] Can not open device '%s' for the first time\n", dev_name); in TestMultipleInit() 47 printf("[Error] Can not open device '%s' for the second time\n", dev_name); in TestMultipleInit() [all …]
|
D | media_v4l2_test.cc | 48 std::string dev_name = "/dev/video"; in main() local 68 dev_name = strdup(optarg); in main() 125 V4L2Device* device = new V4L2Device(dev_name.c_str(), io, buffers); in main()
|
D | media_v4l2_device.h | 33 V4L2Device(const char* dev_name,
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
D | aiocp.c | 76 char dev_name[1024]; in dev_block_size_by_path() local 98 strncpy(dev_name, mnt->mnt_fsname, sizeof(dev_name)); in dev_block_size_by_path() 99 dev_name[sizeof(dev_name)-1] = '\0'; in dev_block_size_by_path() 110 printf("Path '%s' is on device '%s'\n", path, dev_name); in dev_block_size_by_path() 112 fd = open(dev_name, O_RDONLY); in dev_block_size_by_path() 114 fprintf(stderr, "open('%s'): %s\n", dev_name, strerror(errno)); in dev_block_size_by_path() 125 printf("'%s' has block size %i\n", dev_name, size); in dev_block_size_by_path()
|
/external/ltp/testscripts/ |
D | ltp-scsi_debug.sh | 51 dev_name=$(ls /proc/scsi/scsi_debug) 53 rm_dev=$dev_name:0:0:0 63 echo "The device $dev_name was removed successfully" 67 echo "0 0 0" > /sys/class/scsi_host/host$dev_name/scan 73 echo "The device $dev_name was added back successfully"
|
/external/autotest/client/cros/faft/utils/ |
D | cgpt_handler.py | 50 def read_device_info(self, dev_name): argument 58 'cgpt show %s' % dev_name) 84 self.devices[dev_name] = device_data
|
/external/toybox/toys/pending/ |
D | route.c | 321 …ext_params_inet6(char **argv, struct sockaddr_in6 *sock_in6, struct in6_rtmsg *rt, char **dev_name) in get_next_params_inet6() argument 340 if (!*dev_name) *dev_name = *argv; in get_next_params_inet6() 351 char *targetip, *dev_name = 0; in setroute_inet6() local 370 get_next_params_inet6(argv, &sock_in6, &rt, (char **)&dev_name); in setroute_inet6() 373 if (dev_name) { in setroute_inet6() 376 xstrncpy(ifre->ifr_name, dev_name, IFNAMSIZ); in setroute_inet6()
|
D | fsck.c | 58 char *prog_name, *dev_name; member 235 child->dev_name = xstrdup(finfo->device); in do_fsck() 286 temp->prog_name, temp->dev_name, status); in wait_for() 292 free(temp->dev_name); in wait_for()
|
/external/autotest/client/site_tests/usbpd_GFU/ |
D | usbpd_GFU.py | 221 for dev_name in fw_dict.keys(): 222 if flash_info['dev_major'] == self.DEV_MAJOR[dev_name]: 223 for old_rw in sorted(fw_dict[dev_name], reverse=True)[1:]: 225 port.index, dev_name, old_rw)
|
/external/libpcap/ |
D | pcap-dos.c | 110 static int init_watt32 (struct pcap *pcap, const char *dev_name, char *err_buf); 621 open_driver (const char *dev_name, char *ebuf, int promisc) in open_driver() argument 629 if (strcmp (dev_name,dev->name)) in open_driver() 638 sprintf (ebuf, "failed to detect device `%s'", dev_name); in open_driver() 660 sprintf (ebuf, "failed to activate device `%s'", dev_name); in open_driver() 682 sprintf (ebuf, "device `%s' not supported", dev_name); in open_driver() 689 sprintf (ebuf, "device `%s' not probed", dev_name); in open_driver() 924 static int init_watt32 (struct pcap *pcap, const char *dev_name, char *err_buf) in init_watt32() argument 949 if (dev_name && strncmp(dev_name,"pkt",3)) in init_watt32()
|
D | pcap-canusb-linux.c | 123 char dev_name[30]; in canusb_findalldevs() local 128 snprintf(dev_name, 30, CANUSB_IFACE"%s", sernum); in canusb_findalldevs() 133 if (pcap_add_if(alldevsp, dev_name, 0, dev_descr, err_str) < 0) in canusb_findalldevs()
|
D | pcap-bt-linux.c | 117 char dev_name[20], dev_descr[30]; in bt_findalldevs() local 119 snprintf(dev_name, 20, BT_IFACE"%d", dev_req->dev_id); in bt_findalldevs() 122 if (pcap_add_if(alldevsp, dev_name, 0, in bt_findalldevs()
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_validate.c | 385 static int wps_validate_dev_name(const u8 *dev_name, size_t len, in wps_validate_dev_name() argument 388 if (dev_name == NULL) { in wps_validate_dev_name() 396 if (len > 0 && dev_name[len - 1] == 0) { in wps_validate_dev_name() 398 "attribute value", dev_name, len); in wps_validate_dev_name() 1159 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, probe) || in wps_validate_beacon_probe_resp() 1214 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, wps2) || in wps_validate_probe_req() 1320 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, 1) || in wps_validate_m1() 1375 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, 1) || in wps_validate_m2() 1429 wps_validate_dev_name(attr.dev_name, attr.dev_name_len, 1) || in wps_validate_m2d()
|
D | wps.c | 619 if (attr.dev_name) { in wps_attr_text() 625 if (attr.dev_name[i] == 0 || in wps_attr_text() 626 is_ctrl_char(attr.dev_name[i])) in wps_attr_text() 629 str[i] = attr.dev_name[i]; in wps_attr_text()
|
D | wps.h | 337 const char *dev_name); 498 const u8 *dev_name; member 549 const char *dev_name; member
|
D | wps_er.h | 27 char *dev_name; member
|
D | wps_attr_parse.h | 65 const u8 *dev_name; member
|
/external/e2fsprogs/resize/ |
D | main.c | 176 char *dev_name, *tmp_name; in resize2fs_setup_tdb() local 209 dev_name = basename(tmp_name); in resize2fs_setup_tdb() 210 tdb_file = malloc(strlen(tdb_dir) + 11 + strlen(dev_name) + 7 + 1); in resize2fs_setup_tdb() 215 sprintf(tdb_file, "%s/resize2fs-%s.e2undo", tdb_dir, dev_name); in resize2fs_setup_tdb()
|
/external/libdrm/ |
D | xf86drm.c | 311 const char *dev_name; in drmOpenDevice() local 324 dev_name = DRM_DEV_NAME; in drmOpenDevice() 327 dev_name = DRM_CONTROL_DEV_NAME; in drmOpenDevice() 330 dev_name = DRM_RENDER_DEV_NAME; in drmOpenDevice() 336 sprintf(buf, dev_name, DRM_DIR_NAME, minor); in drmOpenDevice() 441 const char *dev_name; in drmOpenMinor() local 448 dev_name = DRM_DEV_NAME; in drmOpenMinor() 451 dev_name = DRM_CONTROL_DEV_NAME; in drmOpenMinor() 454 dev_name = DRM_RENDER_DEV_NAME; in drmOpenMinor() 460 sprintf(buf, dev_name, DRM_DIR_NAME, minor); in drmOpenMinor() [all …]
|
/external/e2fsprogs/misc/ |
D | e2undo.c | 219 char *dev_name, *tmp_name; in e2undo_setup_tdb() local 252 dev_name = basename(tmp_name); in e2undo_setup_tdb() 253 tdb_file = malloc(strlen(tdb_dir) + 8 + strlen(dev_name) + 7 + 1); in e2undo_setup_tdb() 258 sprintf(tdb_file, "%s/e2undo-%s.e2undo", tdb_dir, dev_name); in e2undo_setup_tdb()
|
D | e4defrag.c | 1678 char dev_name[PATH_MAX + 1]; in main() local 1720 memset(dev_name, 0, PATH_MAX + 1); in main() 1751 strncpy(dev_name, argv[i], strnlen(argv[i], PATH_MAX)); in main() 1788 if (is_ext4(argv[i], dev_name) < 0) in main() 1799 ret = ext2fs_open(dev_name, EXT2_FLAG_64BITS, 0, in main() 1805 dev_name); in main()
|
/external/autotest/client/site_tests/graphics_Gbm/src/ |
D | gbmtest.c | 170 char* dev_name; in drm_open() local 174 ret = asprintf(&dev_name, DRM_DEV_NAME, DRM_DIR_NAME, i); in drm_open() 178 fd = open(dev_name, O_RDWR, 0); in drm_open() 179 free(dev_name); in drm_open()
|
/external/wpa_supplicant_8/src/p2p/ |
D | p2p_build.c | 234 nlen = p2p->cfg->dev_name ? os_strlen(p2p->cfg->dev_name) : 0; in p2p_buf_add_device_info() 237 wpabuf_put_data(buf, p2p->cfg->dev_name, nlen); in p2p_buf_add_device_info() 794 if (p2p_add_wps_string(buf, ATTR_DEV_NAME, p2p->cfg->dev_name) in p2p_build_wps_ie()
|
D | p2p_parse.c | 464 if (attr.dev_name && attr.dev_name_len < sizeof(msg->device_name) && in p2p_parse_wps_ie() 466 os_memcpy(msg->device_name, attr.dev_name, attr.dev_name_len); in p2p_parse_wps_ie() 692 cli->dev_name = (const char *) g; in p2p_group_info_parse() 754 os_memcpy(name, cli->dev_name, cli->dev_name_len); in p2p_group_info_text()
|
/external/squashfs-tools/kernel/fs/squashfs/ |
D | super.c | 343 const char *dev_name, void *data, in squashfs_get_sb() argument 346 return get_sb_bdev(fs_type, flags, dev_name, data, squashfs_fill_super, in squashfs_get_sb()
|