Lines Matching defs:handle

145  * an opaque handle to it.
152 * ion_free - free a handle
154 * @handle: the handle to free
156 * Free the provided handle.
158 void ion_free(struct ion_client *client, struct ion_handle *handle);
161 * ion_phys - returns the physical address and len of a handle
163 * @handle: the handle
167 * This function queries the heap for a particular handle to get the
168 * handle's physical address. It't output is only correct if
171 * instead. Returns -EINVAL if the handle is invalid. This has
172 * no implications on the reference counting of the handle --
176 int ion_phys(struct ion_client *client, struct ion_handle *handle,
180 * ion_map_dma - return an sg_table describing a handle
182 * @handle: the handle
185 * a particular ion handle.
188 struct ion_handle *handle);
191 * ion_map_kernel - create mapping for the given handle
193 * @handle: handle to map
195 * Map the given handle into the kernel and return a kernel address that
198 void *ion_map_kernel(struct ion_client *client, struct ion_handle *handle);
201 * ion_unmap_kernel() - destroy a kernel mapping for a handle
203 * @handle: handle to unmap
205 void ion_unmap_kernel(struct ion_client *client, struct ion_handle *handle);
210 * @handle: the handle
212 int ion_share_dma_buf(struct ion_client *client, struct ion_handle *handle);
215 * ion_import_dma_buf() - given an dma-buf fd from the ion exporter get handle
220 * import that fd and return a handle representing it. If a dma-buf from
241 * @handle: pointer that will be populated with a cookie to use to refer
251 struct ion_handle *handle;
255 * struct ion_fd_data - metadata passed to/from userspace for a handle/fd pair
256 * @handle: a handle
257 * @fd: a file descriptor representing that handle
259 * For ION_IOC_SHARE or ION_IOC_MAP userspace populates the handle field with
260 * the handle returned from ion alloc, and the kernel returns the file
262 * provides the file descriptor and the kernel returns the handle.
265 struct ion_handle *handle;
270 * struct ion_handle_data - a handle passed to/from the kernel
271 * @handle: a handle
274 struct ion_handle *handle;
295 * Takes an ion_allocation_data struct and returns it with the handle field
296 * populated with the opaque handle for the allocation.
304 * Takes an ion_handle_data struct and frees the handle.
311 * Takes an ion_fd_data struct with the handle field populated with a valid
312 * opaque handle. Returns the struct with the fd field set to a file
321 * Takes an ion_fd_data struct with the handle field populated with a valid
322 * opaque handle. Returns the struct with the fd field set to a file
324 * can then be passed to another process. The corresponding opaque handle can
333 * descriptor obtained from ION_IOC_SHARE and returns the struct with the handle
334 * filed set to the corresponding opaque handle.