Home | History | Annotate | Download | only in linux

Lines Matching refs:handle

183  * an opaque handle to it.
190 * ion_free - free a handle
192 * @handle: the handle to free
194 * Free the provided handle.
196 void ion_free(struct ion_client *client, struct ion_handle *handle);
199 * ion_phys - returns the physical address and len of a handle
201 * @handle: the handle
205 * This function queries the heap for a particular handle to get the
206 * handle's physical address. It't output is only correct if
209 * instead. Returns -EINVAL if the handle is invalid. This has
210 * no implications on the reference counting of the handle --
214 int ion_phys(struct ion_client *client, struct ion_handle *handle,
218 * ion_map_dma - return an sg_table describing a handle
220 * @handle: the handle
223 * a particular ion handle.
226 struct ion_handle *handle);
229 * ion_map_kernel - create mapping for the given handle
231 * @handle: handle to map
234 * Map the given handle into the kernel and return a kernel address that
238 void *ion_map_kernel(struct ion_client *client, struct ion_handle *handle);
241 * ion_unmap_kernel() - destroy a kernel mapping for a handle
243 * @handle: handle to unmap
245 void ion_unmap_kernel(struct ion_client *client, struct ion_handle *handle);
250 * @handle: the handle
252 int ion_share_dma_buf(struct ion_client *client, struct ion_handle *handle);
255 * ion_import_dma_buf() - given an dma-buf fd from the ion exporter get handle
260 * import that fd and return a handle representing it. If a dma-buf from
266 * ion_handle_get_flags - get the flags for a given handle
268 * @client - client who allocated the handle
269 * @handle - handle to get the flags
272 * Gets the current flags for a handle. These flags indicate various options
275 int ion_handle_get_flags(struct ion_client *client, struct ion_handle *handle,
280 * ion_map_iommu - map the given handle into an iommu
282 * @client - client who allocated the handle
283 * @handle - handle to map
288 * greater than the handle length, the remaining
295 * Maps the handle into the iova space specified via domain number. Iova
299 int ion_map_iommu(struct ion_client *client, struct ion_handle *handle,
307 * ion_handle_get_size - get the allocated size of a given handle
309 * @client - client who allocated the handle
310 * @handle - handle to get the size
313 * gives the allocated size of a handle. returns 0 on success, negative
320 int ion_handle_get_size(struct ion_client *client, struct ion_handle *handle,
324 * ion_unmap_iommu - unmap the handle from an iommu
326 * @client - client who allocated the handle
327 * @handle - handle to unmap
334 void ion_unmap_iommu(struct ion_client *client, struct ion_handle *handle,
370 * @handle - pointer to buffer handle.
380 int msm_ion_do_cache_op(struct ion_client *client, struct ion_handle *handle,
412 struct ion_handle *handle) { }
416 struct ion_handle *handle, ion_phys_addr_t *addr, size_t *len)
422 struct ion_handle *handle)
428 struct ion_handle *handle, unsigned long flags)
434 struct ion_handle *handle) { }
436 static inline int ion_share_dma_buf(struct ion_client *client, struct ion_handle *handle)
447 struct ion_handle *handle, unsigned long *flags)
453 struct ion_handle *handle, int domain_num,
464 struct ion_handle *handle, int domain_num,
484 struct ion_handle *handle, void *vaddr,
507 * @handle: pointer that will be populated with a cookie to use to refer
517 struct ion_handle *handle;
521 * struct ion_fd_data - metadata passed to/from userspace for a handle/fd pair
522 * @handle: a handle
523 * @fd: a file descriptor representing that handle
525 * For ION_IOC_SHARE or ION_IOC_MAP userspace populates the handle field with
526 * the handle returned from ion alloc, and the kernel returns the file
528 * provides the file descriptor and the kernel returns the handle.
531 struct ion_handle *handle;
536 * struct ion_handle_data - a handle passed to/from the kernel
537 * @handle: a handle
540 handle;
560 * Takes an ion_allocation_data struct and returns it with the handle field
561 * populated with the opaque handle for the allocation.
569 * Takes an ion_handle_data struct and frees the handle.
576 * Takes an ion_fd_data struct with the handle field populated with a valid
577 * opaque handle. Returns the struct with the fd field set to a file
586 * Takes an ion_fd_data struct with the handle field populated with a valid
587 * opaque handle. Returns the struct with the fd field set to a file
589 * can then be passed to another process. The corresponding opaque handle can
598 * descriptor obtained from ION_IOC_SHARE and returns the struct with the handle
599 * filed set to the corresponding opaque handle.