/external/e2fsprogs/lib/blkid/ |
D | devno.c | 94 char **devname) in blkid__scan_dir() argument 119 *devname = blkid_strdup(path); in blkid__scan_dir() 122 path, *devname)); in blkid__scan_dir() 144 char *devname = NULL; in blkid_devno_to_devname() local 159 blkid__scan_dir(current->name, devno, &new_list, &devname); in blkid_devno_to_devname() 162 if (devname) in blkid_devno_to_devname() 176 if (!devname) { in blkid_devno_to_devname() 182 printf("found devno 0x%04llx as %s\n", (long long)devno, devname)); in blkid_devno_to_devname() 186 return devname; in blkid_devno_to_devname() 192 char *devname, *tmp; in main() local [all …]
|
D | devname.c | 48 blkid_dev blkid_get_dev(blkid_cache cache, const char *devname, int flags) in blkid_get_dev() argument 53 if (!cache || !devname) in blkid_get_dev() 58 if (strcmp(tmp->bid_name, devname)) in blkid_get_dev() 68 if (access(devname, F_OK) < 0) in blkid_get_dev() 74 dev->bid_name = blkid_strdup(devname); in blkid_get_dev() 123 static int is_dm_leaf(const char *devname) in is_dm_leaf() argument 134 !strcmp(de->d_name, devname) || in is_dm_leaf() 142 if (!strcmp(d_de->d_name, devname)) { in is_dm_leaf() 188 char *devname = NULL; in probe_one() local 210 devname = get_dm_name(ptname); in probe_one() [all …]
|
D | resolve.c | 28 const char *devname) in blkid_get_tag_value() argument 35 DBG(DEBUG_RESOLVE, printf("looking for %s on %s\n", tagname, devname)); in blkid_get_tag_value() 37 if (!devname) in blkid_get_tag_value() 45 if ((dev = blkid_get_dev(c, devname, BLKID_DEV_NORMAL)) && in blkid_get_tag_value()
|
D | Makefile.in | 21 OBJS= cache.o dev.o devname.o devno.o getsize.o llseek.o probe.o \ 24 SRCS= $(srcdir)/cache.c $(srcdir)/dev.c $(srcdir)/devname.c $(srcdir)/devno.c \ 86 tst_devname: $(srcdir)/devname.c $(DEPLIBS_BLKID) 88 $(Q) $(CC) -o tst_devname -DTEST_PROGRAM $(srcdir)/devname.c $(LIBS_BLKID) $(ALL_CFLAGS) 200 devname.o: $(srcdir)/devname.c $(srcdir)/list.h
|
D | tag.c | 410 char *devname = NULL; in main() local 432 devname = argv[optind++]; in main() 437 if (!devname || (argc != optind)) in main() 446 dev = blkid_get_dev(cache, devname, flags); in main() 449 devname); in main()
|
D | blkid.h | 70 extern blkid_dev blkid_get_dev(blkid_cache cache, const char *devname, 84 const char *devname);
|
D | blkid.h.in | 67 /* devname.c */ 70 extern blkid_dev blkid_get_dev(blkid_cache cache, const char *devname, 84 const char *devname);
|
/external/bluetooth/bluez/network/ |
D | common.c | 190 int bnep_if_up(const char *devname) in bnep_if_up() argument 198 strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1); in bnep_if_up() 208 error("Could not bring up %s", devname); in bnep_if_up() 215 int bnep_if_down(const char *devname) in bnep_if_down() argument 223 strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1); in bnep_if_down() 233 error("Could not bring down %s", devname); in bnep_if_down() 240 int bnep_add_to_bridge(const char *devname, const char *bridge) in bnep_add_to_bridge() argument 242 int ifindex = if_nametoindex(devname); in bnep_add_to_bridge() 246 if (!devname || !bridge) in bnep_add_to_bridge() 264 info("bridge %s: interface %s added", bridge, devname); in bnep_add_to_bridge()
|
D | common.h | 40 int bnep_if_up(const char *devname); 41 int bnep_if_down(const char *devname); 42 int bnep_add_to_bridge(const char *devname, const char *bridge);
|
D | server.c | 339 char devname[16]; in server_connadd() local 342 const char *pdevname = devname; in server_connadd() 345 memset(devname, 0, sizeof(devname)); in server_connadd() 346 strcpy(devname, "bnep%d"); in server_connadd() 349 err = bnep_connadd(nsk, dst_role, devname); in server_connadd() 353 info("Added new connection: %s", devname); in server_connadd() 356 if (bnep_add_to_bridge(devname, ns->bridge) < 0) { in server_connadd() 358 devname, ns->bridge, strerror(errno), errno); in server_connadd() 363 bnep_if_up(devname); in server_connadd() 735 const char *addr, *devname; in disconnect_device() local [all …]
|
/external/qemu/ |
D | vl.c | 613 char devname[10]; in bt_device_add() local 615 pstrcpy(devname, MIN(sizeof(devname), len), opt); in bt_device_add() 631 if (!strcmp(devname, "keyboard")) in bt_device_add() 634 fprintf(stderr, "qemu: unsupported bluetooth device `%s'\n", devname); in bt_device_add() 834 char devname[128]; in drive_init() local 873 pstrcpy(devname, sizeof(devname), "scsi"); in drive_init() 877 pstrcpy(devname, sizeof(devname), "ide"); in drive_init() 900 pstrcpy(devname, sizeof(devname), buf); in drive_init() 1121 devname, bus_id, mediastr, unit_id); in drive_init() 1124 devname, mediastr, unit_id); in drive_init() [all …]
|
D | vl-android.c | 809 char devname[10]; in bt_device_add() local 811 pstrcpy(devname, MIN(sizeof(devname), len), opt); in bt_device_add() 827 if (!strcmp(devname, "keyboard")) in bt_device_add() 830 fprintf(stderr, "qemu: unsupported bluetooth device `%s'\n", devname); in bt_device_add() 1031 char devname[128]; in drive_init() local 1070 pstrcpy(devname, sizeof(devname), "scsi"); in drive_init() 1074 pstrcpy(devname, sizeof(devname), "ide"); in drive_init() 1097 pstrcpy(devname, sizeof(devname), buf); in drive_init() 1318 devname, bus_id, mediastr, unit_id); in drive_init() 1321 devname, mediastr, unit_id); in drive_init() [all …]
|
D | blockdev.c | 138 char devname[128]; in drive_init() local 163 pstrcpy(devname, sizeof(devname), "scsi"); in drive_init() 167 pstrcpy(devname, sizeof(devname), "ide"); in drive_init() 187 pstrcpy(devname, sizeof(devname), buf); in drive_init() 409 devname, bus_id, mediastr, unit_id); in drive_init() 412 devname, mediastr, unit_id); in drive_init()
|
D | usb-dummy-android.c | 30 USBDevice *usb_host_device_open(const char *devname) in usb_host_device_open() argument 35 int usb_host_device_close(const char *devname) in usb_host_device_close() argument
|
D | usb-linux.c | 69 const char *devname); 961 snprintf(dev->dev.devname, sizeof(dev->dev.devname), in usb_host_device_open_addr() 964 pstrcpy(dev->dev.devname, sizeof(dev->dev.devname), in usb_host_device_open_addr() 985 USBDevice *usb_host_device_open(const char *devname) in usb_host_device_open() argument 991 if (strstr(devname, "auto:")) { in usb_host_device_open() 992 usb_host_auto_add(devname); in usb_host_device_open() 997 devname) < 0) in usb_host_device_open() 1009 int usb_host_device_close(const char *devname) in usb_host_device_close() argument 1015 if (strstr(devname, "auto:")) in usb_host_device_close() 1016 return usb_host_auto_del(devname); in usb_host_device_close() [all …]
|
/external/blktrace/ |
D | blkrawverify.c | 121 static int process(FILE **fp, char *devname, char *file, unsigned int cpu) in process() argument 159 sprintf(ofname, "%s.verify.out", devname); in process() 170 fprintf(*fp, "Verifying %s\n", devname); in process() 278 char *devname; in main() local 292 devname = argv[i]; in main() 293 sprintf(ofname, "%s.verify.out", devname); in main() 296 printf("Verifying %s\n", devname); fflush(stdout); in main() 298 sprintf(fname, "%s.blktrace.%d", devname, cpu); in main() 302 devname); in main() 308 nbad = process(&ofp, devname, fname, cpu); in main()
|
/external/bluetooth/bluez/tools/ |
D | rfcomm.c | 265 static void run_cmdline(struct pollfd *p, sigset_t* sigs, char *devname, in run_cmdline() argument 277 cmdargv[i] = (strcmp(argv[i], "{}") == 0) ? devname : argv[i]; in run_cmdline() 326 char dst[18], devname[MAXPATHLEN]; in cmd_connect() local 406 snprintf(devname, MAXPATHLEN - 1, "/dev/rfcomm%d", dev); in cmd_connect() 407 while ((fd = open(devname, O_RDONLY | O_NOCTTY)) < 0) { in cmd_connect() 413 snprintf(devname, MAXPATHLEN - 1, "/dev/bluetooth/rfcomm/%d", dev); in cmd_connect() 414 if ((fd = open(devname, O_RDONLY | O_NOCTTY)) < 0) { in cmd_connect() 416 snprintf(devname, MAXPATHLEN - 1, "/dev/rfcomm%d", dev); in cmd_connect() 435 printf("Connected %s to %s on channel %d\n", devname, dst, req.channel); in cmd_connect() 490 char dst[18], devname[MAXPATHLEN]; in cmd_listen() local [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | finddev.c | 167 char *devname, *tmp; in main() local 198 devname = ext2fs_find_block_device(device); in main() 199 if (devname) { in main() 200 printf("Found device! %s\n", devname); in main() 201 free(devname); in main()
|
/external/qemu/hw/ |
D | goldfish_nand.c | 59 char* devname; /* name for this device (not null-terminated, use len below) */ member 490 cpu_memory_rw_debug(cpu_single_env, s->data, (uint8_t*)dev->devname, size, 1); in nand_dev_do_cmd() 684 char *devname = NULL; in nand_add_dev() local 719 if(devname == NULL) { in nand_add_dev() 723 devname = malloc(arg_len+1); in nand_add_dev() 724 if(devname == NULL) in nand_add_dev() 726 memcpy(devname, arg, arg_len); in nand_add_dev() 727 devname[arg_len] = 0; in nand_add_dev() 791 devname_len, devname, strerror(errno)); in nand_add_dev() 796 dprint( "mapping '%.*s' NAND image to %s", devname_len, devname, rwfilename); in nand_add_dev() [all …]
|
D | usb-hid.c | 704 ret = set_usb_string(data, s->dev.devname); in usb_hid_handle_control() 865 pstrcpy(s->dev.devname, sizeof(s->dev.devname), "QEMU USB Tablet"); in usb_tablet_init() 886 pstrcpy(s->dev.devname, sizeof(s->dev.devname), "QEMU USB Mouse"); in usb_mouse_init() 905 pstrcpy(s->dev.devname, sizeof(s->dev.devname), "QEMU USB Keyboard"); in usb_keyboard_init()
|
D | usb.h | 173 char devname[32]; member 248 USBDevice *usb_host_device_open(const char *devname); 249 int usb_host_device_close(const char *devname);
|
/external/bluetooth/bluez/compat/ |
D | pand.c | 271 char devname[16]; in do_listen() local 292 strncpy(devname, netdev, 16); in do_listen() 293 devname[15] = '\0'; in do_listen() 295 if (!bnep_accept_connection(nsk, role, devname)) { in do_listen() 302 str, devname); in do_listen() 304 run_script(devupcmd, devname, str, sk, nsk); in do_listen() 307 strncpy(down_cmd.dev, devname, strlen(devname) + 1); in do_listen()
|
/external/e2fsprogs/misc/ |
D | blkid.c | 171 const char *type, *value, *devname; in pretty_print_dev() local 186 devname = blkid_dev_devname(dev); in pretty_print_dev() 187 if (access(devname, F_OK)) in pretty_print_dev() 204 retval = ext2fs_check_mount_point(devname, &mount_flags, in pretty_print_dev() 216 pretty_print_line(devname, fs_type, label, mtpt, uuid); in pretty_print_dev()
|
/external/e2fsprogs/doc/ |
D | libblkid.txt | 32 if ((devname = blkid_get_devname(cache, attribute_name, value))) { 33 /* do something with devname */ 34 string_free(devname); 55 if ((value = blkid_get_tag_value(cache, attribute_name, devname))) {
|
/external/qemu/distrib/sdl-1.2.12/src/video/wscons/ |
D | SDL_wsconsvideo.c | 149 char *devname; in WSCONS_VideoInit() local 157 devname = SDL_getenv("SDL_WSCONSDEV"); in WSCONS_VideoInit() 158 if (devname == NULL) { in WSCONS_VideoInit() 166 devname = devnamebuf; in WSCONS_VideoInit() 169 private->fd = open(devname, O_RDWR | O_NONBLOCK, 0); in WSCONS_VideoInit() 171 WSCONS_ReportError("open %s: %s", devname, strerror(errno)); in WSCONS_VideoInit()
|