Searched defs:map_fd (Results 1 - 5 of 5) sorted by relevance

/hardware/ti/omap4-aah/ion/
H A Dion.c109 int flags, off_t offset, unsigned char **ptr, int *map_fd)
117 *map_fd = data.fd;
118 if (*map_fd < 0) {
122 *ptr = mmap(NULL, length, prot, flags, *map_fd, offset);
132 int map_fd; local
170 int flags, off_t offset, unsigned char **ptr, int *map_fd)
179 *map_fd = data.fd;
180 if (*map_fd < 0) {
184 *ptr = mmap(NULL, length, prot, flags, *map_fd, offset);
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
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
H A Dion_test.c86 int fd, map_fd, ret; local
96 ret = ion_map(fd, handle, len, prot, map_flags, 0, &ptr, &map_fd);
115 close(map_fd);
122 close(map_fd);
126 close(map_fd);
127 ret = ion_map(fd, handle, len, prot, flags, 0, &ptr, &map_fd);
H A Dion_test_2.c156 int *map_fd; local
190 map_fd = (int *)malloc(count * sizeof(int *));
194 ret = ion_map(fd, handle[i], len, prot, map_flags, 0, &(ptr[i]), &(map_fd[i]));
195 printf("%s(): Map handle[%d]=%p, map_fd=%d, ptr=%p\n",
196 __func__, i, handle[i], map_fd[i], ptr[i]);
216 printf("%s(): Unmap handle[%d]=%p, map_fd=%d, ptr=%p\n",
217 __func__, i, handle[i], map_fd[i], ptr[i]);
224 close(map_fd[i]);
226 free(map_fd);
/hardware/ti/omap4-aah/test/CameraHal/
H A Dsurfacetexture_test.cpp180 int map_fd; local
214 ret = ion_map (fd, handle, SIZE, PROT_READ, 0, 0, &ptr, &map_fd);
/hardware/ti/omap4xxx/ion/
H A Dion.c108 int flags, off_t offset, unsigned char **ptr, int *map_fd)
116 *map_fd = data.fd;
117 if (*map_fd < 0) {
121 *ptr = mmap(NULL, length, prot, flags, *map_fd, offset);
131 int map_fd; local
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

Completed in 48 milliseconds