• Home
  • Raw
  • Download

Lines Matching refs:fd

35         int fd = open("/dev/ion", O_RDWR);  in ion_open()  local
36 if (fd < 0) in ion_open()
38 return fd; in ion_open()
41 int ion_close(int fd) in ion_close() argument
43 return close(fd); in ion_close()
46 static int ion_ioctl(int fd, int req, void *arg) in ion_ioctl() argument
48 int ret = ioctl(fd, req, arg); in ion_ioctl()
57 int ion_alloc(int fd, size_t len, size_t align, in ion_alloc() argument
67 ret = ion_ioctl(fd, ION_IOC_ALLOC, &data); in ion_alloc()
74 int ion_alloc_tiler(int fd, size_t w, size_t h, int fmt, unsigned int flags, in ion_alloc_tiler() argument
92 ret = ion_ioctl(fd, ION_IOC_CUSTOM, &custom_data); in ion_alloc_tiler()
100 int ion_free(int fd, struct ion_handle *handle) in ion_free() argument
105 return ion_ioctl(fd, ION_IOC_FREE, &data); in ion_free()
108 int ion_map(int fd, struct ion_handle *handle, size_t length, int prot, in ion_map() argument
114 int ret = ion_ioctl(fd, ION_IOC_MAP, &data); in ion_map()
117 *map_fd = data.fd; in ion_map()
130 int ion_share(int fd, struct ion_handle *handle, int *share_fd) in ion_share() argument
136 int ret = ion_ioctl(fd, ION_IOC_SHARE, &data); in ion_share()
139 *share_fd = data.fd; in ion_share()
147 int ion_import(int fd, int share_fd, struct ion_handle **handle) in ion_import() argument
150 .fd = share_fd, in ion_import()
152 int ret = ion_ioctl(fd, ION_IOC_IMPORT, &data); in ion_import()
160 int ion_sync_fd(int fd, int handle_fd)
163 .fd = handle_fd,
165 return ion_ioctl(fd, ION_IOC_SYNC, &data);
169 int ion_map_cacheable(int fd, struct ion_handle *handle, size_t length, int prot, in ion_map_cacheable() argument
176 int ret = ion_ioctl(fd, ION_IOC_MAP, &data); in ion_map_cacheable()
179 *map_fd = data.fd; in ion_map_cacheable()
192 int ion_flush_cached(int fd, struct ion_handle *handle, size_t length, in ion_flush_cached() argument
200 return ion_ioctl(fd, ION_IOC_FLUSH_CACHED, &data); in ion_flush_cached()
203 int ion_inval_cached(int fd, struct ion_handle *handle, size_t length, in ion_inval_cached() argument
211 return ion_ioctl(fd, ION_IOC_INVAL_CACHED, &data); in ion_inval_cached()