Home | History | Annotate | Download | only in include

Lines Matching refs:buffer

38  * IMSYNC_DEV_TO_READ: Device only reads the buffer
39 * IMSYNC_DEV_TO_WRITE: Device may writes to the buffer
40 * IMSYNC_DEV_TO_RW: Device reads and writes to the buffer
42 * IMSYNC_SYNC_FOR_DEV: ion_msync() for device to access the buffer
43 * IMSYNC_SYNC_FOR_CPU: ion_msync() for CPU to access the buffer after device
71 * An identifier of a buffer allocated from ION. You must obtain to access
72 * a buffer allocated from ION. If you have an effective ion_buffer, you have
74 * - To access the buffer, you can request an address (user virtual address)
75 * of the buffer with ion_map().
76 * - To pass the buffer to the kernel, you can pass the ion_buffer to the
78 * - To pass the buffer to other processes, you can pass the ion_buffer to
100 /* ion_alloc() - Allocates new buffer from ION.
102 * @len: Size of a buffer required in bytes.
104 * buffer. If the @len is not aligned by @align, ION allocates a buffer
105 * that is aligned by @align and the size of the buffer will be larger
108 * @flags: Additional requirements about buffer. ION_FLAG_CACHED for a
109 * buffer you want to have a cached mapping of
110 * @RETURN: An ion_buffer that represents the buffer allocated. It is only
118 /* ion_free() - Frees an existing buffer that is allocated by ION
119 * @buffer: An ion_buffer of the buffer to be released.
121 void ion_free(ion_buffer buffer);
123 /* ion_map() - Obtains a virtual address of the buffer identied by @buffer
124 * @buffer: The buffer to map. The virtual address returned is allocated by the
126 * @len: The size of the buffer to map. This must not exceed the size of the
127 * buffer represented by @fd_buf. Thus you need to know the size of it
129 * buffer, this function just map just the size requested (@len) not the
130 * entire buffer.
132 * pages from the start of the buffer will not be mapped.
137 * buffer.
139 void *ion_map(ion_buffer buffer, size_t len, off_t offset);
141 /* ion_unmap() - Frees the buffer mapped by ion_map()
143 * @len: The size of the buffer mapped by ion_map().
149 /* ion_msync() - Makes sure that data in the buffer are visible to H/W peri.
151 * @buffer: The buffer to perform ion_msync().
155 * @offset: Where ion_msync() start in @buffer, size in bytes.
158 * Note that @offset + @size must not exceed the size of @buffer.
160 int ion_sync(ion_client client, ion_buffer buffer);