Home
last modified time | relevance | path

Searched refs:dev_path (Results 1 – 20 of 20) sorted by relevance

/third_party/ltp/testcases/kernel/uevents/
Duevent01.c20 static void generate_device_events(const char *dev_path) in generate_device_events() argument
24 tst_res(TINFO, "Attaching device %s", dev_path); in generate_device_events()
25 tst_attach_device(dev_path, "loop.img"); in generate_device_events()
26 tst_res(TINFO, "Detaching device %s", dev_path); in generate_device_events()
27 tst_detach_device(dev_path); in generate_device_events()
33 char dev_path[1024]; in verify_uevent() local
53 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in verify_uevent()
83 generate_device_events(dev_path); in verify_uevent()
Duevent03.c57 char dev_path[1024]; in verify_uevent() local
78 dev_path, in verify_uevent()
144 dev_path, in verify_uevent()
194 snprintf(dev_path, sizeof(dev_path), "DEVPATH=%s", sysname); in verify_uevent()
/third_party/ltp/testcases/kernel/syscalls/ioctl/
Dioctl_loop07.c24 static char dev_path[1024], sys_loop_sizepath[1024], sys_loop_sizelimitpath[1024]; variable
72 tst_detach_device_by_fd(dev_path, dev_fd); in verify_ioctl_loop()
87 tst_attach_device(dev_path, "test.img"); in run()
100 tst_detach_device_by_fd(dev_path, dev_fd); in run()
111 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
116 tst_attach_device(dev_path, "test.img"); in setup()
122 tst_detach_device(dev_path); in setup()
127 dev_fd = SAFE_OPEN(dev_path, O_RDWR); in setup()
147 tst_detach_device(dev_path); in cleanup()
Dioctl09.c21 static char dev_path[1024]; variable
40 sprintf(loop_partpath, "%sp%d", dev_path, part_num); in check_partition()
73 tst_attach_device(dev_path, "test.img"); in verify_ioctl()
86 tst_detach_device_by_fd(dev_path, dev_fd); in verify_ioctl()
92 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
96 dev_fd = SAFE_OPEN(dev_path, O_RDWR); in setup()
104 tst_detach_device(dev_path); in cleanup()
Dioctl_loop04.c22 static char dev_path[1024], sys_loop_sizepath[1024]; variable
32 tst_attach_device(dev_path, "test.img"); in verify_ioctl_loop()
59 tst_detach_device_by_fd(dev_path, dev_fd); in verify_ioctl_loop()
66 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
73 dev_fd = SAFE_OPEN(dev_path, O_RDWR); in setup()
85 tst_detach_device(dev_path); in cleanup()
Dioctl_loop06.c17 static char dev_path[1024]; variable
56 tst_detach_device_by_fd(dev_path, dev_fd); in verify_ioctl_loop()
72 tst_attach_device(dev_path, "test.img"); in run()
84 tst_detach_device_by_fd(dev_path, dev_fd); in run()
96 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
106 dev_fd = SAFE_OPEN(dev_path, O_RDWR); in setup()
129 tst_detach_device(dev_path); in cleanup()
Dioctl_loop01.c30 static char dev_path[1024], backing_path[1024], backing_file_path[1024]; variable
82 tst_attach_device(dev_path, "test.img"); in verify_ioctl_loop()
94 tst_detach_device_by_fd(dev_path, dev_fd); in verify_ioctl_loop()
104 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
128 sprintf(loop_partpath, "%sp1", dev_path); in setup()
129 dev_fd = SAFE_OPEN(dev_path, O_RDWR); in setup()
137 tst_detach_device(dev_path); in cleanup()
Dioctl_loop03.c18 static char dev_path[1024]; variable
39 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
44 tst_attach_device(dev_path, "test.img"); in setup()
47 dev_fd = SAFE_OPEN(dev_path, O_RDWR); in setup()
62 tst_detach_device(dev_path); in cleanup()
Dioctl_loop05.c35 static char dev_path[1024], sys_loop_diopath[1024], backing_file_path[1024];; variable
101 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
108 tst_attach_device(dev_path, "test.img"); in setup()
110 dev_fd = SAFE_OPEN(dev_path, O_RDWR); in setup()
139 tst_detach_device(dev_path); in cleanup()
Dioctl_loop02.c29 static char loop_ro_path[1024], dev_path[1024]; variable
100 tst_detach_device_by_fd(dev_path, dev_fd); in verify_ioctl_loop()
110 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
128 dev_fd = SAFE_OPEN(dev_path, O_RDWR); in setup()
150 tst_detach_device(dev_path); in cleanup()
/third_party/ltp/include/
Dtst_device.h60 int tst_attach_device(const char *dev_path, const char *file_path);
65 uint64_t tst_get_device_size(const char *dev_path);
74 int tst_detach_device_by_fd(const char *dev_path, int dev_fd);
87 int tst_detach_device(const char *dev_path);
/third_party/ltp/lib/
Dtst_device.c48 static char dev_path[1024]; variable
190 uint64_t tst_get_device_size(const char *dev_path) in tst_get_device_size() argument
196 if (!dev_path) in tst_get_device_size()
199 if (stat(dev_path, &st)) { in tst_get_device_size()
205 tst_resm(TWARN, "%s is not a block device", dev_path); in tst_get_device_size()
209 fd = open(dev_path, O_RDONLY); in tst_get_device_size()
212 "open(%s, O_RDONLY) failed", dev_path); in tst_get_device_size()
288 if (tst_find_free_loopdev(dev_path, sizeof(dev_path)) == -1) in tst_acquire_loop_device()
291 if (tst_attach_device(dev_path, filename)) in tst_acquire_loop_device()
294 return dev_path; in tst_acquire_loop_device()
/third_party/gstreamer/gstplugins_bad/sys/bluez/
Dgstavrcputil.c39 gchar *dev_path; member
271 if (player && g_str_equal (avrcp->dev_path, in manager_ready_cb()
282 gst_avrcp_connection_new (const gchar * dev_path, GstAvrcpMetadataCb cb, in gst_avrcp_connection_new() argument
296 avrcp->dev_path = g_strdup (dev_path); in gst_avrcp_connection_new()
331 g_free (avrcp->dev_path); in gst_avrcp_connection_free()
Dgstavrcputil.h31 gst_avrcp_connection_new (const gchar * dev_path, GstAvrcpMetadataCb cb,
/third_party/ltp/testcases/kernel/syscalls/copy_file_range/
Dcopy_file_range02.c190 char dev_path[1024]; in setup() local
200 loop_devn = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
216 fd_blkdev = SAFE_OPEN(dev_path, O_RDWR, 0600); in setup()
/third_party/ltp/testcases/kernel/device-drivers/acpi/
Dltp_acpi.c34 static const char dev_path[] = "/sys/devices/" ACPI_TEST_NAME "/path"; variable
81 if (read_sysfs_file(dev_path, sysfs_path + 4, 4092)) { in tc_acpi_str()
/third_party/gstreamer/gstplugins_bad/sys/winks/
Dgstksvideodevice.c73 gchar *dev_path; member
177 g_value_set_string (value, priv->dev_path); in gst_ks_video_device_get_property()
199 g_free (priv->dev_path); in gst_ks_video_device_set_property()
200 priv->dev_path = g_value_dup_string (value); in gst_ks_video_device_set_property()
374 g_assert (priv->dev_path != NULL); in gst_ks_video_device_open()
379 priv->filter_handle = CreateFile (priv->dev_path, in gst_ks_video_device_open()
426 g_free (priv->dev_path); in gst_ks_video_device_open()
427 priv->dev_path = NULL; in gst_ks_video_device_open()
440 g_free (priv->dev_path); in gst_ks_video_device_close()
441 priv->dev_path = NULL; in gst_ks_video_device_close()
/third_party/pulseaudio/src/modules/bluetooth/
Dbluez5-util.c2438 const char *sender, *path, *endpoint_path, *dev_path = NULL, *uuid = NULL; in endpoint_set_configuration() local
2503 dbus_message_iter_get_basic(&value, &dev_path); in endpoint_set_configuration()
2534 if ((d = pa_hashmap_get(y->devices, dev_path))) { in endpoint_set_configuration()
2536 pa_log_error("Information about device %s is invalid", dev_path); in endpoint_set_configuration()
2541 pa_log_warn("SetConfiguration() received for unknown device %s", dev_path); in endpoint_set_configuration()
2542 d = device_create(y, dev_path); in endpoint_set_configuration()
/third_party/NuttX/drivers/usbdev/gadget/
Df_mass_storage.c1034 static void fmass_parts_registered(struct mass_dev_s *fmass, const char *dev_path) in fmass_parts_registered() argument
1045 (void)snprintf_s(node_name, sizeof(node_name), sizeof(node_name) - 1, "%s%0d", dev_path, i); in fmass_parts_registered()
/third_party/ltp/doc/
Dc-test-api.txt1031 uint64_t tst_get_device_size(const char *dev_path);
1034 This function gets size of the given block device, it checks the 'dev_path' is