Lines Matching full:handle
184 * an opaque handle to it.
191 * ion_free - free a handle
193 * @handle: the handle to free
195 * Free the provided handle.
197 void ion_free(struct ion_client *client, struct ion_handle *handle);
200 * ion_phys - returns the physical address and len of a handle
202 * @handle: the handle
206 * This function queries the heap for a particular handle to get the
207 * handle's physical address. It't output is only correct if
210 * instead. Returns -EINVAL if the handle is invalid. This has
211 * no implications on the reference counting of the handle --
215 int ion_phys(struct ion_client *client, struct ion_handle *handle,
219 * ion_map_dma - return an sg_table describing a handle
221 * @handle: the handle
224 * a particular ion handle.
227 struct ion_handle *handle);
230 * ion_map_kernel - create mapping for the given handle
232 * @handle: handle to map
235 * Map the given handle into the kernel and return a kernel address that
239 void *ion_map_kernel(struct ion_client *client, struct ion_handle *handle);
242 * ion_unmap_kernel() - destroy a kernel mapping for a handle
244 * @handle: handle to unmap
246 void ion_unmap_kernel(struct ion_client *client, struct ion_handle *handle);
251 * @handle: the handle
253 int ion_share_dma_buf(struct ion_client *client, struct ion_handle *handle);
256 * ion_import_dma_buf() - given an dma-buf fd from the ion exporter get handle
261 * import that fd and return a handle representing it. If a dma-buf from
267 * ion_handle_get_flags - get the flags for a given handle
269 * @client - client who allocated the handle
270 * @handle - handle to get the flags
273 * Gets the current flags for a handle. These flags indicate various options
276 int ion_handle_get_flags(struct ion_client *client, struct ion_handle *handle,
281 * ion_map_iommu - map the given handle into an iommu
283 * @client - client who allocated the handle
284 * @handle - handle to map
289 * greater than the handle length, the remaining
296 * Maps the handle into the iova space specified via domain number. Iova
300 int ion_map_iommu(struct ion_client *client, struct ion_handle *handle,
308 * ion_handle_get_size - get the allocated size of a given handle
310 * @client - client who allocated the handle
311 * @handle - handle to get the size
314 * gives the allocated size of a handle. returns 0 on success, negative
321 int ion_handle_get_size(struct ion_client *client, struct ion_handle *handle,
325 * ion_unmap_iommu - unmap the handle from an iommu
327 * @client - client who allocated the handle
328 * @handle - handle to unmap
335 void ion_unmap_iommu(struct ion_client *client, struct ion_handle *handle,
371 * @handle - pointer to buffer handle.
381 int msm_ion_do_cache_op(struct ion_client *client, struct ion_handle *handle,
413 struct ion_handle *handle) { }
417 struct ion_handle *handle, ion_phys_addr_t *addr, size_t *len)
423 struct ion_handle *handle)
429 struct ion_handle *handle, unsigned long flags)
435 struct ion_handle *handle) { }
437 static inline int ion_share_dma_buf(struct ion_client *client, struct ion_handle *handle)
448 struct ion_handle *handle, unsigned long *flags)
454 struct ion_handle *handle, int domain_num,
465 struct ion_handle *handle, int domain_num,
485 struct ion_handle *handle, void *vaddr,
508 * @handle: pointer that will be populated with a cookie to use to refer
518 ion_user_handle_t handle;
522 * struct ion_fd_data - metadata passed to/from userspace for a handle/fd pair
523 * @handle: a handle
524 * @fd: a file descriptor representing that handle
526 * For ION_IOC_SHARE or ION_IOC_MAP userspace populates the handle field with
527 * the handle returned from ion alloc, and the kernel returns the file
529 * provides the file descriptor and the kernel returns the handle.
532 ion_user_handle_t handle;
537 * struct ion_handle_data - a handle passed to/from the kernel
538 * @handlehandle
541 ion_user_handle_t handle;
561 * Takes an ion_allocation_data struct and returns it with the handle field
562 * populated with the opaque handle for the allocation.
570 * Takes an ion_handle_data struct and frees the handle.
577 * Takes an ion_fd_data struct with the handle field populated with a valid
578 * opaque handle. Returns the struct with the fd field set to a file
587 * Takes an ion_fd_data struct with the handle field populated with a valid
588 * opaque handle. Returns the struct with the fd field set to a file
590 * can then be passed to another process. The corresponding opaque handle can
599 * descriptor obtained from ION_IOC_SHARE and returns the struct with the handle
600 * filed set to the corresponding opaque handle.