/third_party/gstreamer/gstplugins_good/sys/osxaudio/ |
D | gstosxaudiodeviceprovider.c | 45 const gchar * device_name, GstOsxAudioDeviceType type, 75 provider, AudioDeviceID device_id, const gchar * device_name, in gst_osx_audio_device_provider_probe_device() argument 90 device = gst_osx_audio_device_new (device_id, device_name, type, core_audio); in gst_osx_audio_device_provider_probe_device() 105 gchar *device_name = NULL; in _audio_device_get_name() local 127 device_name = (gchar *) g_malloc (propertySize); in _audio_device_get_name() 129 &deviceNameAddress, 0, NULL, &propertySize, device_name); in _audio_device_get_name() 131 g_free (device_name); in _audio_device_get_name() 132 device_name = NULL; in _audio_device_get_name() 136 return device_name; in _audio_device_get_name() 219 gchar *device_name; in gst_osx_audio_device_provider_probe() local [all …]
|
/third_party/toybox/toys/pending/ |
D | mdev.c | 41 char *device_name = 0, *custom_name = 0, *s, *temp; in make_device() local 73 device_name = getenv("DEVNAME"); in make_device() 75 if (!device_name) in make_device() 76 device_name = strrchr(path, '/') + 1; in make_device() 79 while ((temp = strchr(device_name, '!'))) { in make_device() 124 result=regexec(&match, device_name, 1, &off, 0); in make_device() 130 || off.rm_eo!=strlen(device_name)) in make_device() 195 device_name = NULL; in make_device() 224 if(device_name) { in make_device() 235 sprintf(toybuf, "/dev/%s", device_name); in make_device() [all …]
|
/third_party/pulseaudio/src/modules/ |
D | reserve-wrap.c | 104 pa_reserve_wrapper* pa_reserve_wrapper_get(pa_core *c, const char *device_name) { in pa_reserve_wrapper_get() argument 115 pa_assert(device_name); in pa_reserve_wrapper_get() 117 t = pa_sprintf_malloc("reserve-wrapper@%s", device_name); in pa_reserve_wrapper_get() 148 device_name, in pa_reserve_wrapper_get() 155 pa_log_debug("Device '%s' already locked.", device_name); in pa_reserve_wrapper_get() 158 …pa_log_debug("Failed to acquire reservation lock on device '%s': %s", device_name, pa_cstrerror(-k… in pa_reserve_wrapper_get() 163 pa_log_debug("Successfully acquired reservation lock on device '%s'", device_name); in pa_reserve_wrapper_get() 247 pa_reserve_monitor_wrapper* pa_reserve_monitor_wrapper_get(pa_core *c, const char *device_name) { in pa_reserve_monitor_wrapper_get() argument 258 pa_assert(device_name); in pa_reserve_monitor_wrapper_get() 260 t = pa_sprintf_malloc("reserve-monitor-wrapper@%s", device_name); in pa_reserve_monitor_wrapper_get() [all …]
|
D | reserve-monitor.c | 40 char *device_name; member 127 const char *device_name, in rm_watch() argument 147 if (!device_name) in rm_watch() 155 if (!(m->device_name = strdup(device_name))) { in rm_watch() 163 if (!(m->service_name = malloc(sizeof(SERVICE_PREFIX) + strlen(device_name)))) { in rm_watch() 167 sprintf(m->service_name, SERVICE_PREFIX "%s", m->device_name); in rm_watch() 231 free(m->device_name); in rm_release()
|
D | reserve.c | 39 char *device_name; member 359 const char *device_name, in rd_acquire() argument 382 if (!device_name) in rd_acquire() 393 if (!(d->device_name = strdup(device_name))) { in rd_acquire() 407 if (!(d->service_name = malloc(sizeof(SERVICE_PREFIX) + strlen(device_name)))) { in rd_acquire() 411 sprintf(d->service_name, SERVICE_PREFIX "%s", d->device_name); in rd_acquire() 413 if (!(d->object_path = malloc(sizeof(OBJECT_PREFIX) + strlen(device_name)))) { in rd_acquire() 417 sprintf(d->object_path, OBJECT_PREFIX "%s", d->device_name); in rd_acquire() 586 free(d->device_name); in rd_release()
|
/third_party/e2fsprogs/misc/ |
D | e2freefrag.c | 180 retval = ext2fs_check_mount_point(fs->device_name, &mount_flags, in scan_online() 183 com_err(fs->device_name, retval, "while checking mount status"); in scan_online() 196 com_err(fs->device_name, errno, "while allocating memory"); in scan_online() 213 com_err(fs->device_name, errno, "while calling fsmap"); in scan_online() 327 static void close_device(char *device_name, ext2_filsys fs) in close_device() argument 332 com_err(device_name, retval, "while closing the filesystem.\n"); in close_device() 340 fprintf(f, "Device: %s\n", fs->device_name); in collect_info() 349 com_err(fs->device_name, retval, "while reading block bitmap"); in collect_info() 350 close_device(fs->device_name, fs); in collect_info() 356 com_err(fs->device_name, retval, "while dumping chunk info"); in collect_info() [all …]
|
/third_party/e2fsprogs/e2fsck/ |
D | iscan.c | 31 const char * device_name = NULL; variable 75 device_name = argv[optind]; in PRS() 77 int fd = open(device_name, O_RDONLY, 0); in PRS() 81 _("while opening %s for flushing"), device_name); in PRS() 86 _("while trying to flush %s"), device_name); in PRS() 107 retval = ext2fs_open(device_name, 0, in main() 111 device_name); in main()
|
D | scantest.c | 38 const char * device_name = NULL; variable 100 device_name = "/dev/hda3"; in main() 104 retval = ext2fs_open(device_name, 0, in main() 108 device_name); in main()
|
/third_party/e2fsprogs/resize/ |
D | main.c | 45 static char *device_name, *io_options; variable 330 device_name = argv[optind++]; in main() 336 io_options = strchr(device_name, '?'); in main() 350 retval = ext2fs_check_mount_point(device_name, &mount_flags, in main() 355 device_name); in main() 364 fd = ext2fs_open_file(device_name, O_RDWR, 0); in main() 367 device_name); in main() 375 device_name); in main() 384 device_name); in main() 407 retval = resize2fs_setup_tdb(device_name, undo_file, &io_ptr); in main() [all …]
|
/third_party/gstreamer/gstplugins_good/sys/v4l2/ |
D | gstv4l2deviceprovider.c | 41 const gchar * device_name, GstCaps * caps, GstV4l2DeviceType type, 100 const gchar * device_path, const gchar * device_name, GstStructure * props) in gst_v4l2_device_provider_probe_device() argument 178 device_name ? device_name : (gchar *) v4l2obj->vcap.card, caps, type, in gst_v4l2_device_provider_probe_device() 235 const gchar *device_name, *str; in gst_v4l2_device_provider_device_from_udev() local 276 device_name = g_udev_device_get_property (udev_device, "ID_V4L_PRODUCT"); in gst_v4l2_device_provider_device_from_udev() 277 if (!(device_name && *device_name)) { in gst_v4l2_device_provider_device_from_udev() 278 device_name = in gst_v4l2_device_provider_device_from_udev() 280 if (!(device_name && *device_name)) { in gst_v4l2_device_provider_device_from_udev() 281 device_name = g_udev_device_get_property (udev_device, "ID_MODEL_ENC"); in gst_v4l2_device_provider_device_from_udev() 282 if (!(device_name && *device_name)) { in gst_v4l2_device_provider_device_from_udev() [all …]
|
D | v4l2-utils.c | 61 const gchar *device_name; in gst_v4l2_iterator_next() local 68 it->parent.device_name = NULL; in gst_v4l2_iterator_next() 76 device_name = g_udev_device_get_property (it->device, "ID_V4L_PRODUCT"); in gst_v4l2_iterator_next() 77 if (!device_name) in gst_v4l2_iterator_next() 78 device_name = g_udev_device_get_property (it->device, "ID_MODEL_ENC"); in gst_v4l2_iterator_next() 79 if (!device_name) in gst_v4l2_iterator_next() 80 device_name = g_udev_device_get_property (it->device, "ID_MODEL"); in gst_v4l2_iterator_next() 83 it->parent.device_name = device_name; in gst_v4l2_iterator_next()
|
/third_party/libusb/examples/ |
D | testlibusb.c | 241 static int test_wrapped_device(const char *device_name) in test_wrapped_device() argument 246 fd = open(device_name, O_RDWR); in test_wrapped_device() 248 printf("Error could not open %s: %s\n", device_name, strerror(errno)); in test_wrapped_device() 253 printf("Error wrapping device: %s: %s\n", device_name, libusb_strerror(r)); in test_wrapped_device() 262 static int test_wrapped_device(const char *device_name) in test_wrapped_device() argument 264 (void)device_name; in test_wrapped_device() 272 const char *device_name = NULL; in main() local 282 device_name = argv[i]; in main() 294 if (device_name) { in main() 295 r = test_wrapped_device(device_name); in main()
|
/third_party/e2fsprogs/ext2ed/ |
D | disk.c | 62 wprintw (command_win,"Error - Failed to seek to offset %ld in device %s\n",offset,device_name); in low_read() 68 wprintw (command_win,"Error - Failed to read from offset %ld in device %s\n",offset,device_name); in low_read() 118 wprintw (command_win,"Error - Failed to seek to offset %ld in device %s\n",offset,device_name); in low_write() 124 wprintw (command_win,"Error - Failed to write to offset %ld in device %s\n",offset,device_name); in low_write() 156 fprintf (fp,"Time: %s\nDevice: %s\n",ctime ((time_t *) ¤t_time),device_name); in log_changes()
|
/third_party/e2fsprogs/lib/ext2fs/ |
D | dupfs.c | 35 fs->device_name = 0; in ext2fs_dup_handle() 51 retval = ext2fs_get_mem(strlen(src->device_name)+1, &fs->device_name); in ext2fs_dup_handle() 54 strcpy(fs->device_name, src->device_name); in ext2fs_dup_handle()
|
/third_party/gstreamer/gstplugins_bad/sys/dshowsrcwrapper/ |
D | gstdshow.cpp | 302 g_free (entry->device_name); in gst_dshow_device_entry_free() 303 entry->device_name = NULL; in gst_dshow_device_entry_free() 396 entry->device_name = friendly_name; in gst_dshow_enumerate_devices() 428 const gchar * device, const gchar * device_name, const gint device_index) in gst_dshow_select_device() argument 435 device_index, device_name, device); in gst_dshow_select_device() 446 } else if (!device && device_name && g_strcmp0 (device_name, entry->device_name) == 0) { in gst_dshow_select_device() 458 selected->device_index, selected->device_name, selected->device); in gst_dshow_select_device() 489 gchar ** device_name, gint * device_index) in gst_dshow_getdevice_from_devicename() argument 534 if ((!*device_name || !**device_name) && devidx == *device_index) { in gst_dshow_getdevice_from_devicename() 535 g_free (*device_name); in gst_dshow_getdevice_from_devicename() [all …]
|
/third_party/libuv/test/ |
D | test-ip6-addr.c | 44 const char* device_name; in TEST_IMPL() local 72 device_name = address->name; in TEST_IMPL() 78 ASSERT(0 == strcmp(device_name, scoped_addr)); in TEST_IMPL() 89 ASSERT(0 == strcmp(device_name, interface_id)); in TEST_IMPL() 102 device_name); in TEST_IMPL()
|
/third_party/ffmpeg/libavdevice/ |
D | fbdev_common.c | 104 device->device_name = av_strdup(device_file); in ff_fbdev_get_device_list() 106 if (!device->device_name || !device->device_description) { in ff_fbdev_get_device_list() 115 if (default_device && !strcmp(device->device_name, default_device)) { in ff_fbdev_get_device_list() 124 av_freep(&device->device_name); in ff_fbdev_get_device_list()
|
D | dshow.c | 107 av_freep(&ctx->device_name[0]); in dshow_read_close() 108 av_freep(&ctx->device_name[1]); in dshow_read_close() 153 ctx->device_name[devtype], devtypename, buffer_fullness, s->max_picture_buffer); in shall_we_drop() 215 const char *device_name = ctx->device_name[devtype]; in dshow_cycle_devices() local 271 if (strcmp(device_name, friendly_name) && strcmp(device_name, unique_name)) in dshow_cycle_devices() 277 av_log(avctx, AV_LOG_ERROR, "Unable to BindToObject for %s\n", device_name); in dshow_cycle_devices() 306 devtypename, device_name, sourcetypename); in dshow_cycle_devices() 1045 char **device_name = ctx->device_name; in parse_device_name() local 1056 device_name[0] = token; in parse_device_name() 1058 device_name[1] = token; in parse_device_name() [all …]
|
/third_party/gstreamer/gstplugins_good/sys/oss4/ |
D | oss4-source.c | 160 osssrc->device_name = g_strdup (DEFAULT_DEVICE_NAME); in gst_oss4_source_init() 161 osssrc->device_name = NULL; in gst_oss4_source_init() 200 g_free (oss->device_name); in gst_oss4_source_set_property() 201 oss->device_name = NULL; in gst_oss4_source_set_property() 233 g_value_set_string (value, oss->device_name); in gst_oss4_source_get_property() 244 g_value_set_string (value, oss->device_name); in gst_oss4_source_get_property() 347 oss->open_device, &oss->device_name)) { in gst_oss4_source_open() 348 oss->device_name = NULL; in gst_oss4_source_open() 434 g_free (oss->device_name); in gst_oss4_source_close() 435 oss->device_name = NULL; in gst_oss4_source_close()
|
/third_party/boost/libs/test/doc/examples/ |
D | runtime-configuration_2.run-fail.cpp | 17 static DeviceInterface* factory(std::string const& device_name); 37 DeviceInterface* DeviceInterface::factory(std::string const& device_name) { in factory() argument 38 if(device_name == "mock_device") { in factory()
|
/third_party/toybox/toys/other/ |
D | eject.c | 62 char *device_name = "/dev/cdrom"; in eject_main() local 64 if (*toys.optargs) device_name = *toys.optargs; in eject_main() 66 fd = xopen(device_name, O_RDONLY | O_NONBLOCK); in eject_main()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
D | wps_dev_attr.c | 163 len = dev->device_name ? os_strlen(dev->device_name) : 0; in wps_build_dev_name() 177 wpabuf_put_data(msg, dev->device_name, len); in wps_build_dev_name() 331 os_free(dev->device_name); in wps_process_dev_name() 332 dev->device_name = dup_binstr(str, str_len); in wps_process_dev_name() 333 if (dev->device_name == NULL) in wps_process_dev_name() 417 os_free(dev->device_name); in wps_device_data_free() 418 dev->device_name = NULL; in wps_device_data_free()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
D | wps_dev_attr.c | 163 len = dev->device_name ? os_strlen(dev->device_name) : 0; in wps_build_dev_name() 177 wpabuf_put_data(msg, dev->device_name, len); in wps_build_dev_name() 331 os_free(dev->device_name); in wps_process_dev_name() 332 dev->device_name = dup_binstr(str, str_len); in wps_process_dev_name() 333 if (dev->device_name == NULL) in wps_process_dev_name() 417 os_free(dev->device_name); in wps_device_data_free() 418 dev->device_name = NULL; in wps_device_data_free()
|
/third_party/f2fs-tools/tools/sg_write_buffer/ |
D | sg_write_buffer.c | 207 const char * device_name = NULL; in main() local 336 if (NULL == device_name) { in main() 337 device_name = argv[optind]; in main() 348 if (NULL == device_name) { in main() 368 sg_fd = sg_cmds_open_device(device_name, false /* rw */, verbose); in main() 370 pr2serr(ME "open error: %s: %s\n", device_name, in main()
|
/third_party/gstreamer/gstplugins_good/ext/raw1394/ |
D | gsthdv1394src.c | 196 dv1394src->device_name = g_strdup_printf ("Default"); in gst_hdv1394src_init() 212 g_free (src->device_name); in gst_hdv1394src_dispose() 213 src->device_name = NULL; in gst_hdv1394src_dispose() 265 g_value_set_string (value, filter->device_name); in gst_hdv1394src_get_property() 502 g_free (src->device_name); in gst_hdv1394src_discover_avc_node() 503 src->device_name = g_strdup (rom_dir.label); in gst_hdv1394src_discover_avc_node() 734 g_free (src->device_name); in gst_hdv1394src_update_device_name() 735 src->device_name = NULL; in gst_hdv1394src_update_device_name() 751 g_free (src->device_name); in gst_hdv1394src_update_device_name() 752 src->device_name = g_strdup (directory.label); in gst_hdv1394src_update_device_name() [all …]
|