Lines Matching refs:fd
26 int _ion_alloc_test(int *fd, struct ion_handle **handle)
30 *fd = ion_open();
31 if (*fd < 0)
32 return *fd;
34 ret = ion_alloc(*fd, len, align, heap_mask, alloc_flags, handle);
43 int fd, ret;
46 if(_ion_alloc_test(&fd, &handle))
49 ret = ion_free(fd, handle);
54 ion_close(fd);
60 int fd, map_fd, ret;
65 if(_ion_alloc_test(&fd, &handle))
68 ret = ion_map(fd, handle, len, prot, map_flags, 0, &ptr, &map_fd);
80 ret = ion_free(fd, handle);
81 ion_close(fd);
85 _ion_alloc_test(&fd, &handle);
86 close(fd);
91 ion_close(fd);
93 _ion_alloc_test(len, align, flags, &fd, &handle);
95 ret = ion_map(fd, handle, len, prot, flags, 0, &ptr, &map_fd);
121 int fd, share_fd, ret;
124 if(_ion_alloc_test(&fd, &handle))
126 ret = ion_share(fd, handle, &share_fd);
139 /* send the fd */
156 int fd, recv_fd;
184 fd = ion_open();