Home
last modified time | relevance | path

Searched refs:fd_flags (Results 1 - 6 of 6) sorted by relevance

/device/soc/rockchip/common/sdk_linux/include/linux/
H A Ddma-heap.h25 struct dma_buf *(*allocate)(struct dma_heap *heap, unsigned long len, unsigned long fd_flags,
96 * @fd_flags: flags to set on returned dma-buf fd
101 struct dma_buf *dma_heap_buffer_alloc(struct dma_heap *heap, size_t len, unsigned int fd_flags,
115 * @fd_flags: flags to set on returned dma-buf fd
118 int dma_heap_bufferfd_alloc(struct dma_heap *heap, size_t len, unsigned int fd_flags, unsigned int heap_flags);
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/
H A Ddma-heap.c79 struct dma_buf *dma_heap_buffer_alloc(struct dma_heap *heap, size_t len, unsigned int fd_flags, unsigned int heap_flags) in dma_heap_buffer_alloc() argument
81 if (fd_flags & ~DMA_HEAP_VALID_FD_FLAGS) { in dma_heap_buffer_alloc()
97 return heap->ops->allocate(heap, len, fd_flags, heap_flags); in dma_heap_buffer_alloc()
101 int dma_heap_bufferfd_alloc(struct dma_heap *heap, size_t len, unsigned int fd_flags, unsigned int heap_flags) in dma_heap_bufferfd_alloc() argument
106 dmabuf = dma_heap_buffer_alloc(heap, len, fd_flags, heap_flags); in dma_heap_bufferfd_alloc()
111 fd = dma_buf_fd(dmabuf, fd_flags); in dma_heap_bufferfd_alloc()
147 fd = dma_heap_bufferfd_alloc(heap, heap_allocation->len, heap_allocation->fd_flags, heap_allocation->heap_flags); in dma_heap_ioctl_allocate()
/device/soc/rockchip/common/sdk_linux/include/trace/hooks/
H A Dcam_heap_hooks.h28 pgoff_t pagecount, unsigned long fd_flags, struct dma_buf *dmabuf,
30 TP_ARGS(buffer, cma_pages, cma_heap, pagecount, fd_flags, dmabuf, pcma_heap_buf_ops, heap, data));
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/heaps/
H A Dsystem_heap.c416 static struct dma_buf *system_heap_do_allocate(struct dma_heap *heap, unsigned long len, unsigned long fd_flags, in system_heap_do_allocate() argument
480 exp_info.flags = fd_flags; in system_heap_do_allocate()
516 static struct dma_buf *system_heap_allocate(struct dma_heap *heap, unsigned long len, unsigned long fd_flags, in system_heap_allocate() argument
519 return system_heap_do_allocate(heap, len, fd_flags, heap_flags, false); in system_heap_allocate()
541 static struct dma_buf *system_uncached_heap_allocate(struct dma_heap *heap, unsigned long len, unsigned long fd_flags, in system_uncached_heap_allocate() argument
544 return system_heap_do_allocate(heap, len, fd_flags, heap_flags, true); in system_uncached_heap_allocate()
549 unsigned long fd_flags, unsigned long heap_flags) in system_uncached_heap_not_initialized()
548 system_uncached_heap_not_initialized(struct dma_heap *heap, unsigned long len, unsigned long fd_flags, unsigned long heap_flags) system_uncached_heap_not_initialized() argument
H A Dcma_heap.c272 static struct dma_buf *cma_heap_allocate(struct dma_heap *heap, unsigned long len, unsigned long fd_flags, in cma_heap_allocate() argument
346 exp_info.flags = fd_flags; in cma_heap_allocate()
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/mmz/
H A Ddrv_media_mem.c682 unsigned int fd_flags = O_RDWR | O_CLOEXEC; in real_page_buffer_alloc_and_map() local
685 mmb->handle = hi_dma_buf_alloc(heap, size, fd_flags, heap_flags); in real_page_buffer_alloc_and_map()

Completed in 5 milliseconds