Lines Matching defs:memory
26 * enum vb2_memory - type of memory model used to make the buffers visible
32 * memory mapped via mmap() ioctl. This model is
36 * memory mapped via mmap() ioctl.
50 * struct vb2_mem_ops - memory handling/memory allocator operations.
51 * @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.
160 * @m.offset: when memory in the associated struct vb2_buffer is
162 * the device memory for this plane (or is a "cookie" that
164 * @m.userptr: when memory is %VB2_MEMORY_USERPTR, a userspace pointer
166 * @m.fd: when memory is %VB2_MEMORY_DMABUF, a userspace file
237 * @memory: the method, in which the actual data is passed.
249 unsigned int memory;
327 * handlers before memory allocation. It can be called
471 * @alloc_devs: &struct device memory type/allocator-specific per-plane device
513 * @mem_ops: memory allocator specific callbacks
530 * to force the buffer allocation to a specific memory zone.
539 * @memory: current memory type used
601 unsigned int memory;
644 * and memory consistency hints.
650 return q->allow_cache_hints && q->memory == VB2_MEMORY_MMAP;
746 * @memory: memory type, as defined by &enum vb2_memory.
760 * #) for MMAP memory type, allocates actual video memory, using the
761 * memory handling/allocation routines provided during queue initialization.
763 * If req->count is 0, all the memory will be freed instead.
766 * call and the queue is not busy, memory will be reallocated.
770 int vb2_core_reqbufs(struct vb2_queue *q, enum vb2_memory memory,
776 * @memory: memory type, as defined by &enum vb2_memory.
789 * #) performs any necessary memory allocations.
793 int vb2_core_create_bufs(struct vb2_queue *q, enum vb2_memory memory,
943 * vb2_core_queue_release() - stop streaming, release the queue and free memory
947 * freeing video buffer memory. The driver is responsible for freeing
975 * userspace. To map whole video memory allocated on reqbufs, this function
984 * by the means of a provided memory operation.
995 * @addr: memory address.
998 * @flags: memory flags.
1231 * vb2_verify_memory_type() - Check whether the memory type and buffer type
1235 * @memory: memory model, as defined by enum &vb2_memory.
1241 enum vb2_memory memory, unsigned int type);