Home
last modified time | relevance | path

Searched refs:heap_allocation (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/dma-buf/
H A Ddma-heap.c78 struct dma_heap_allocation_data *heap_allocation = data; in dma_heap_ioctl_allocate() local
84 if (heap_allocation->fd) in dma_heap_ioctl_allocate()
87 if (heap_allocation->fd_flags & ~DMA_HEAP_VALID_FD_FLAGS) in dma_heap_ioctl_allocate()
90 if (heap_allocation->heap_flags & ~DMA_HEAP_VALID_HEAP_FLAGS) in dma_heap_ioctl_allocate()
93 len = PAGE_ALIGN(heap_allocation->len); in dma_heap_ioctl_allocate()
97 dmabuf = heap->ops->allocate(heap, len, heap_allocation->fd_flags, in dma_heap_ioctl_allocate()
98 heap_allocation->heap_flags); in dma_heap_ioctl_allocate()
103 fd = get_unused_fd_flags(heap_allocation->fd_flags); in dma_heap_ioctl_allocate()
109 heap_allocation->fd = fd; in dma_heap_ioctl_allocate()