Searched refs:fd (Results 1 - 25 of 557) sorted by relevance

1234567891011>>

/hardware/intel/img/libdrm/tests/
H A Dopenclose.c32 int fd; local
34 fd = drm_open_any();
35 close(fd);
H A Ddrmtest.c36 static int is_master(int fd) argument
43 ret = ioctl(fd, DRM_IOCTL_GET_CLIENT, &client);
48 ret = ioctl(fd, DRM_IOCTL_GET_CLIENT, &client);
63 int i, fd; local
71 fd = -1;
85 fd = open(udev_device_get_devnode(device), O_RDWR);
86 if (fd < 0)
88 if ((flags & DRM_TEST_MASTER) && !is_master(fd)) {
89 close(fd);
90 fd
104 int fd = drm_open_matching("*:*", 0); local
119 int fd = drm_open_matching("*:*", DRM_TEST_MASTER); local
[all...]
H A Dgetstats.c39 int fd, ret; local
42 fd = drm_open_any();
44 ret = ioctl(fd, DRM_IOCTL_GET_STATS, &stats);
49 close(fd);
H A Dgetclient.c36 int fd, ret; local
39 fd = drm_open_any();
46 ret = ioctl(fd, DRM_IOCTL_GET_CLIENT, &client);
55 ret = ioctl(fd, DRM_IOCTL_GET_CLIENT, &client);
58 close(fd);
H A Dgem_flink.c40 test_flink(int fd) argument
51 ret = ioctl(fd, DRM_IOCTL_I915_GEM_CREATE, &create);
55 ret = ioctl(fd, DRM_IOCTL_GEM_FLINK, &flink);
59 ret = ioctl(fd, DRM_IOCTL_GEM_OPEN, &open);
65 test_double_flink(int fd) argument
76 ret = ioctl(fd, DRM_IOCTL_I915_GEM_CREATE, &create);
80 ret = ioctl(fd, DRM_IOCTL_GEM_FLINK, &flink);
84 ret = ioctl(fd, DRM_IOCTL_GEM_FLINK, &flink2);
90 test_bad_flink(int fd) argument
98 ret = ioctl(fd, DRM_IOCTL_GEM_FLIN
103 test_bad_open(int fd) argument
118 int fd; local
[all...]
H A Dgem_basic.c40 test_bad_close(int fd) argument
48 ret = ioctl(fd, DRM_IOCTL_GEM_CLOSE, &close);
54 test_create_close(int fd) argument
64 ret = ioctl(fd, DRM_IOCTL_I915_GEM_CREATE, &create);
68 ret = ioctl(fd, DRM_IOCTL_GEM_CLOSE, &close);
72 test_create_fd_close(int fd) argument
81 ret = ioctl(fd, DRM_IOCTL_I915_GEM_CREATE, &create);
84 close(fd);
89 int fd; local
91 fd
[all...]
H A Dupdatedraw.c31 set_draw_cliprects_empty(int fd, int drawable) argument
41 ret = ioctl(fd, DRM_IOCTL_UPDATE_DRAW, &update);
46 set_draw_cliprects_empty_fail(int fd, int drawable) argument
56 ret = ioctl(fd, DRM_IOCTL_UPDATE_DRAW, &update);
61 set_draw_cliprects_2(int fd, int drawable) argument
82 ret = ioctl(fd, DRM_IOCTL_UPDATE_DRAW, &update);
86 static int add_drawable(int fd) argument
95 ret = ioctl(fd, DRM_IOCTL_ADD_DRAW, &drawarg);
100 static int rm_drawable(int fd, int drawable, int fail) argument
109 ret = ioctl(fd, DRM_IOCTL_RM_DRA
124 int fd, ret, d1, d2; local
[all...]
H A Dgetversion.c35 int fd; local
38 fd = drm_open_any();
39 v = drmGetVersion(fd);
46 close(fd);
/hardware/libhardware_legacy/qemu_tracing/
H A Dqemu_tracing.c42 int fd = open(SYS_QEMU_TRACE_STATE, O_WRONLY); local
43 if (fd < 0)
44 return fd;
45 write(fd, "1\n", 2);
46 close(fd);
52 int fd = open(SYS_QEMU_TRACE_STATE, O_WRONLY); local
53 if (fd < 0)
54 return fd;
55 write(fd, "0\n", 2);
56 close(fd);
66 int fd = open(SYS_QEMU_TRACE_SYMBOL, O_WRONLY); local
79 int fd = open(SYS_QEMU_TRACE_SYMBOL, O_WRONLY); local
[all...]
/hardware/qcom/gps/loc_api/libloc_api_50001/
H A Dloc_eng_dmn_conn_glue_pipe.h39 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd);
40 int loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz);
41 int loc_eng_dmn_conn_glue_piperead(int fd, void * buf, size_t sz);
43 int loc_eng_dmn_conn_glue_pipeflush(int fd);
44 int loc_eng_dmn_conn_glue_pipeunblock(int fd);
H A Dloc_eng_dmn_conn_glue_pipe.c63 int fd; local
82 fd = open(pipe_name, mode);
83 if (fd <= 0)
87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name);
88 return fd;
98 fd - fd for the pipe
110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd) argument
112 close(fd);
138 loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz) argument
170 loc_eng_dmn_conn_glue_piperead(int fd, void * buf, size_t sz) argument
200 loc_eng_dmn_conn_glue_pipeunblock(int fd) argument
[all...]
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/
H A Dloc_eng_dmn_conn_glue_pipe.h39 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd);
40 int loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz);
41 int loc_eng_dmn_conn_glue_piperead(int fd, void * buf, size_t sz);
43 int loc_eng_dmn_conn_glue_pipeflush(int fd);
44 int loc_eng_dmn_conn_glue_pipeunblock(int fd);
H A Dloc_eng_dmn_conn_glue_pipe.c63 int fd; local
82 fd = open(pipe_name, mode);
83 if (fd <= 0)
87 LOC_LOGD("fd = %d, %s\n", fd, pipe_name);
88 return fd;
98 fd - fd for the pipe
110 int loc_eng_dmn_conn_glue_piperemove(const char * pipe_name, int fd) argument
112 close(fd);
138 loc_eng_dmn_conn_glue_pipewrite(int fd, const void * buf, size_t sz) argument
170 loc_eng_dmn_conn_glue_piperead(int fd, void * buf, size_t sz) argument
200 loc_eng_dmn_conn_glue_pipeunblock(int fd) argument
[all...]
/hardware/intel/common/libva/va/drm/
H A Dva_drm_auth.h33 va_drm_is_authenticated(int fd);
37 va_drm_authenticate(int fd, uint32_t magic);
H A Dva_drm.h47 * specified DRM connection @fd.
49 * @param[in] fd the DRM connection descriptor
53 vaGetDisplayDRM(int fd);
/hardware/intel/img/libdrm/libdrm/radeon/
H A Dradeon_cs_gem.h38 struct radeon_cs_manager *radeon_cs_manager_gem_ctor(int fd);
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/linux/
H A Dml_load_dmp.h28 inv_error_t inv_load_dmp(FILE *fd);
/hardware/libhardware/include/hardware/
H A Dqemud.h44 qemud_fd_write(int fd, const void* buff, int len) argument
48 len2 = write(fd, buff, len);
54 qemud_fd_read(int fd, void* buff, int len) argument
58 len2 = read(fd, buff, len);
66 int fd; local
73 fd = qemu_pipe_open(pipe_name);
74 if (fd < 0) {
77 fd = socket_local_client( "qemud",
80 if (fd < 0) {
86 if (qemud_fd_write(fd, nam
105 qemud_channel_send(int fd, const void* msg, int msglen) argument
129 qemud_channel_recv(int fd, void* msg, int msgsize) argument
[all...]
/hardware/libhardware_legacy/vibrator/
H A Dvibrator.c28 int fd; local
36 fd = open(THE_DEVICE, O_RDWR);
37 if(fd < 0)
39 close(fd);
45 int nwr, ret, fd; local
54 fd = open(THE_DEVICE, O_RDWR);
55 if(fd < 0)
59 ret = write(fd, value, nwr);
61 close(fd);
/hardware/ti/omap4-aah/ion/
H A Dion.h25 int ion_close(int fd);
26 int ion_alloc(int fd, size_t len, size_t align, unsigned int flags,
28 int ion_alloc_tiler(int fd, size_t w, size_t h, int fmt, unsigned int flags,
30 int ion_free(int fd, struct ion_handle *handle);
31 int ion_map(int fd, struct ion_handle *handle, size_t length, int prot,
33 int ion_share(int fd, struct ion_handle *handle, int *share_fd);
34 int ion_import(int fd, int share_fd, struct ion_handle **handle);
H A Dion.c35 int fd = open("/dev/ion", O_RDWR); local
36 if (fd < 0)
38 return fd;
41 int ion_close(int fd) argument
43 return close(fd);
46 static int ion_ioctl(int fd, int req, void *arg) argument
48 int ret = ioctl(fd, req, arg);
57 int ion_alloc(int fd, size_t len, size_t align, argument
67 ret = ion_ioctl(fd, ION_IOC_ALLOC, &data);
74 int ion_alloc_tiler(int fd, size_ argument
100 ion_free(int fd, struct ion_handle *handle) argument
108 ion_map(int fd, struct ion_handle *handle, size_t length, int prot, int flags, off_t offset, unsigned char **ptr, int *map_fd) argument
130 ion_share(int fd, struct ion_handle *handle, int *share_fd) argument
147 ion_import(int fd, int share_fd, struct ion_handle **handle) argument
169 ion_map_cacheable(int fd, struct ion_handle *handle, size_t length, int prot, int flags, off_t offset, unsigned char **ptr, int *map_fd) argument
192 ion_flush_cached(int fd, struct ion_handle *handle, size_t length, unsigned char *ptr) argument
203 ion_inval_cached(int fd, struct ion_handle *handle, size_t length, unsigned char *ptr) argument
[all...]
/hardware/ti/omap4xxx/ion/
H A Dion.h25 int ion_close(int fd);
26 int ion_alloc(int fd, size_t len, size_t align, unsigned int flags,
28 int ion_alloc_tiler(int fd, size_t w, size_t h, int fmt, unsigned int flags,
30 int ion_free(int fd, struct ion_handle *handle);
31 int ion_map(int fd, struct ion_handle *handle, size_t length, int prot,
33 int ion_share(int fd, struct ion_handle *handle, int *share_fd);
34 int ion_import(int fd, int share_fd, struct ion_handle **handle);
H A Dion.c36 int fd = open("/dev/ion", O_RDWR); local
37 if (fd < 0)
39 return fd;
42 int ion_close(int fd) argument
44 return close(fd);
47 static int ion_ioctl(int fd, int req, void *arg) argument
49 int ret = ioctl(fd, req, arg);
58 int ion_alloc(int fd, size_t len, size_t align, unsigned int flags, argument
68 ret = ion_ioctl(fd, ION_IOC_ALLOC, &data);
75 int ion_alloc_tiler(int fd, size_ argument
99 ion_free(int fd, struct ion_handle *handle) argument
107 ion_map(int fd, struct ion_handle *handle, size_t length, int prot, int flags, off_t offset, unsigned char **ptr, int *map_fd) argument
129 ion_share(int fd, struct ion_handle *handle, int *share_fd) argument
146 ion_import(int fd, int share_fd, struct ion_handle **handle) argument
[all...]
/hardware/samsung_slsi/exynos5/include/
H A Dexynos_v4l2.h52 int exynos_v4l2_close(int fd);
54 bool exynos_v4l2_enuminput(int fd, int index, char *input_name_buf);
56 int exynos_v4l2_s_input(int fd, int index);
58 bool exynos_v4l2_querycap(int fd, unsigned int need_caps);
60 bool exynos_v4l2_enum_fmt(int fd, enum v4l2_buf_type type, unsigned int fmt);
62 int exynos_v4l2_g_fmt(int fd, struct v4l2_format *fmt);
64 int exynos_v4l2_s_fmt(int fd, struct v4l2_format *fmt);
66 int exynos_v4l2_try_fmt(int fd, struct v4l2_format *fmt);
68 int exynos_v4l2_reqbufs(int fd, struct v4l2_requestbuffers *req);
70 int exynos_v4l2_querybuf(int fd, struc
160 int fd; member in struct:media_entity
168 int fd; member in struct:media_device
[all...]
/hardware/libhardware_legacy/qemu/
H A Dqemu.c55 qemu_fd_write( int fd, const char* cmd, int len ) argument
59 len2 = write(fd, cmd, len);
65 qemu_fd_read( int fd, char* buff, int len ) argument
69 len2 = read(fd, buff, len);
78 int fd; local
82 fd = qemu_pipe_open(pipe_name);
83 if (fd < 0) {
89 channel->fd = fd;
97 int fd, re local
134 int fd; local
188 int fd = -1; local
291 int fd; local
304 int fd, len2; local
331 int len, fd; local
353 int ret, fd, len, result = -1; local
[all...]

Completed in 288 milliseconds

1234567891011>>