Searched refs:O_RDWR (Results 1 - 25 of 266) sorted by relevance

1234567891011

/linux-master/drivers/gpu/drm/i915/selftests/
H A Dmock_drm.h37 return mock_drm_getfile(i915->drm.primary, O_RDWR);
H A Digt_mmap.c35 file = mock_drm_getfile(i915->drm.primary, O_RDWR);
/linux-master/tools/testing/selftests/damon/
H A Ddebugfs_target_ids_read_before_terminate_race.c22 int target_ids_fd = open(DBGFS_TARGET_IDS, O_RDWR);
23 int monitor_on_fd = open(DBGFS_MONITOR_ON, O_RDWR);
37 int target_ids_fd = open(DBGFS_TARGET_IDS, O_RDWR);
H A Dhuge_count_read_write.c20 int filedesc = open(file, O_RDWR);
/linux-master/tools/testing/selftests/filesystems/eventfd/
H A Deventfd_test.c51 // since the kernel automatically added O_RDWR.
52 EXPECT_EQ(flags, O_RDWR);
81 EXPECT_EQ(flags & O_RDWR, O_RDWR);
96 EXPECT_EQ(flags & O_RDWR, O_RDWR);
174 EXPECT_EQ(ret & O_RDWR, O_RDWR);
/linux-master/tools/testing/selftests/efivarfs/
H A Dcreate-read.c26 fd = open(path, O_RDWR | O_CREAT, 0600);
/linux-master/tools/testing/selftests/thermal/intel/workload_hint/
H A Dworkload_hint_test.c33 fd = open(WORKLOAD_ENABLE_ATTRIBUTE, O_RDWR);
73 fd = open(WORKLOAD_NOTIFICATION_DELAY_ATTRIBUTE, O_RDWR);
95 fd = open(WORKLOAD_ENABLE_ATTRIBUTE, O_RDWR);
/linux-master/tools/leds/
H A Duledmon.c37 fd = open("/dev/uleds", O_RDWR);
/linux-master/tools/testing/selftests/media_tests/
H A Dmedia_device_open.c70 fd = open(media_device, O_RDWR);
H A Dmedia_device_test.c79 fd = open(media_device, O_RDWR);
/linux-master/arch/um/os-Linux/
H A Dtty.c32 fd = open("/dev/ptmx", O_RDWR);
/linux-master/tools/testing/selftests/gpio/
H A Dgpio-chip-info.c32 fd = open(argv[1], O_RDWR);
H A Dgpio-line-name.c33 fd = open(argv[1], O_RDWR);
/linux-master/tools/testing/selftests/user_events/
H A Ddyn_test.c26 int fd = open(abi_file, O_RDWR);
85 int fd = open(dyn_file, O_RDWR | O_APPEND);
109 int fd = open(abi_file, O_RDWR);
147 int fd = open(abi_file, O_RDWR);
H A Dabi_test.c87 int fd = open(enable_file, O_RDWR);
99 int fd = open(enable_file, O_RDWR);
122 int fd = open(data_file, O_RDWR);
140 int fd = open(data_file, O_RDWR);
171 int fd = open(data_file, O_RDWR);
199 int fd = open(data_file, O_RDWR);
/linux-master/arch/um/drivers/
H A Dnull.c27 fd = open(DEV_NULL, O_RDWR);
H A Dtty.c46 mode = O_RDWR;
/linux-master/tools/testing/selftests/thermal/intel/power_floor/
H A Dpower_floor_test.c22 fd = open(POWER_FLOOR_ENABLE_ATTRIBUTE, O_RDWR);
52 fd = open(POWER_FLOOR_ENABLE_ATTRIBUTE, O_RDWR);
/linux-master/tools/testing/selftests/openat2/
H A Dopenat2_test.c169 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL },
171 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL },
181 { .name = "incompatible flags (O_PATH | O_RDWR)",
182 .how.flags = O_PATH | O_RDWR, .err = -EINVAL },
202 .how.flags = O_TMPFILE | O_RDWR, .how.mode = 0600 },
211 .how.flags = O_TMPFILE | O_RDWR,
214 .how.flags = O_TMPFILE | O_RDWR,
231 .how.flags = O_TMPFILE | O_RDWR,
/linux-master/tools/testing/selftests/dmabuf-heaps/
H A Ddmabuf-heap.c48 fd = open(name, O_RDWR);
98 fd = open(buf, O_RDWR);
128 return dmabuf_heap_alloc_fdflags(fd, len, O_RDWR | O_CLOEXEC, flags,
311 .fd_flags = O_RDWR | O_CLOEXEC,
343 .fd_flags = O_RDWR | O_CLOEXEC,
424 ~(O_RDWR | O_CLOEXEC), 0, &dmabuf_fd);
/linux-master/tools/testing/selftests/iommu/
H A Diommufd_fail_nth.c95 nth_state->proc_fd = open(buf, O_RDWR);
238 self->fd = open("/dev/iommu", O_RDWR);
306 self->fd = open("/dev/iommu", O_RDWR);
343 self->fd = open("/dev/iommu", O_RDWR);
388 self->fd = open("/dev/iommu", O_RDWR);
467 self->fd = open("/dev/iommu", O_RDWR);
523 self->fd = open("/dev/iommu", O_RDWR);
587 self->fd = open("/dev/iommu", O_RDWR);
/linux-master/Documentation/usb/
H A Dusbdevfs-drop-permissions.c61 fd = open(argv[1], O_RDWR);
/linux-master/drivers/staging/greybus/Documentation/firmware/
H A Dauthenticate.c45 fd = open(capdev, O_RDWR);
/linux-master/include/linux/
H A Dfcntl.h10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/linux-master/tools/counter/
H A Dcounter_example.c49 fd = open("/dev/counter0", O_RDWR);

Completed in 429 milliseconds

1234567891011