Lines Matching defs:memory
27 * enum vb2_memory - type of memory model used to make the buffers visible
33 * memory mapped via mmap() ioctl. This model is
37 * memory mapped via mmap() ioctl.
52 * struct vb2_mem_ops - memory handling/memory allocator operations.
53 * @alloc: allocate video memory and, optionally, allocator private data,
64 * @get_dmabuf: acquire userspace memory for a hardware operation; used for
65 * DMABUF memory types.
66 * @get_userptr: acquire userspace memory for a hardware operation; used for
67 * USERPTR memory types; vaddr is the address passed to the
76 * used for DMABUF memory types; dev is the alloc device
93 * @vaddr: return a kernel virtual address to a given memory buffer
96 * @cookie: return allocator specific cookie for a given memory buffer
99 * @num_users: return the current number of users of a memory buffer;
102 * @mmap: setup a userspace mapping for a given memory buffer under
103 * the provided virtual memory region.
105 * Those operations are used by the videobuf2 core to implement the memory
106 * handling/memory allocators for each type of supported streaming I/O method.
164 * @m.offset: when memory in the associated struct vb2_buffer is
166 * the device memory for this plane (or is a "cookie" that
168 * @m.userptr: when memory is %VB2_MEMORY_USERPTR, a userspace pointer
170 * @m.fd: when memory is %VB2_MEMORY_DMABUF, a userspace file
241 * @memory: the method, in which the actual data is passed.
253 unsigned int memory;
331 * handlers before memory allocation. It can be called
487 * @alloc_devs: &struct device memory type/allocator-specific per-plane device
520 * non-coherent memory.
531 * @mem_ops: memory allocator specific callbacks
548 * to force the buffer allocation to a specific memory zone.
557 * @memory: current memory type used
620 unsigned int memory;
665 * and memory consistency hints.
671 return q->allow_cache_hints && q->memory == VB2_MEMORY_MMAP;
767 * @memory: memory type, as defined by &enum vb2_memory.
783 * #) for MMAP memory type, allocates actual video memory, using the
784 * memory handling/allocation routines provided during queue initialization.
786 * If req->count is 0, all the memory will be freed instead.
789 * call and the queue is not busy, memory will be reallocated.
793 int vb2_core_reqbufs(struct vb2_queue *q, enum vb2_memory memory,
799 * @memory: memory type, as defined by &enum vb2_memory.
813 * #) performs any necessary memory allocations.
817 int vb2_core_create_bufs(struct vb2_queue *q, enum vb2_memory memory,
967 * vb2_core_queue_release() - stop streaming, release the queue and free memory
971 * freeing video buffer memory. The driver is responsible for freeing
999 * userspace. To map whole video memory allocated on reqbufs, this function
1008 * by the means of a provided memory operation.
1019 * @addr: memory address.
1022 * @flags: memory flags.
1262 * vb2_verify_memory_type() - Check whether the memory type and buffer type
1266 * @memory: memory model, as defined by enum &vb2_memory.
1272 enum vb2_memory memory, unsigned int type);