Lines Matching full:handle
146 * an opaque handle to it.
153 * ion_free - free a handle
155 * @handle: the handle to free
157 * Free the provided handle.
159 void ion_free(struct ion_client *client, struct ion_handle *handle);
162 * ion_phys - returns the physical address and len of a handle
164 * @handle: the handle
168 * This function queries the heap for a particular handle to get the
169 * handle's physical address. It't output is only correct if
172 * instead. Returns -EINVAL if the handle is invalid. This has
173 * no implications on the reference counting of the handle --
177 int ion_phys(struct ion_client *client, struct ion_handle *handle,
181 * ion_map_dma - return an sg_table describing a handle
183 * @handle: the handle
186 * a particular ion handle.
189 struct ion_handle *handle);
192 * ion_map_kernel - create mapping for the given handle
194 * @handle: handle to map
196 * Map the given handle into the kernel and return a kernel address that
199 void *ion_map_kernel(struct ion_client *client, struct ion_handle *handle);
202 * ion_unmap_kernel() - destroy a kernel mapping for a handle
204 * @handle: handle to unmap
206 void ion_unmap_kernel(struct ion_client *client, struct ion_handle *handle);
211 * @handle: the handle
213 int ion_share_dma_buf(struct ion_client *client, struct ion_handle *handle);
216 * ion_import_dma_buf() - given an dma-buf fd from the ion exporter get handle
221 * import that fd and return a handle representing it. If a dma-buf from
242 * @handle: pointer that will be populated with a cookie to use to refer
252 ion_user_handle_t handle;
256 * struct ion_fd_data - metadata passed to/from userspace for a handle/fd pair
257 * @handle: a handle
258 * @fd: a file descriptor representing that handle
260 * For ION_IOC_SHARE or ION_IOC_MAP userspace populates the handle field with
261 * the handle returned from ion alloc, and the kernel returns the file
263 * provides the file descriptor and the kernel returns the handle.
266 ion_user_handle_t handle;
271 * struct ion_handle_data - a handle passed to/from the kernel
272 * @handle: a handle
275 ion_user_handle_t handle;
296 * Takes an ion_allocation_data struct and returns it with the handle field
297 * populated with the opaque handle for the allocation.
305 * Takes an ion_handle_data struct and frees the handle.
312 * Takes an ion_fd_data struct with the handle field populated with a valid
313 * opaque handle. Returns the struct with the fd field set to a file
322 * Takes an ion_fd_data struct with the handle field populated with a valid
323 * opaque handle. Returns the struct with the fd field set to a file
325 * can then be passed to another process. The corresponding opaque handle can
334 * descriptor obtained from ION_IOC_SHARE and returns the struct with the handle
335 * filed set to the corresponding opaque handle.