Lines Matching refs:flags
58 RK_U32 flags; member
67 static RK_U32 to_rockchip_gem_mem_flag(RK_U32 flags) in to_rockchip_gem_mem_flag() argument
71 if (flags & MPP_ALLOC_FLAG_DMA32) in to_rockchip_gem_mem_flag()
74 if (flags & MPP_ALLOC_FLAG_CACHABLE) in to_rockchip_gem_mem_flag()
77 if (flags & MPP_ALLOC_FLAG_CMA) in to_rockchip_gem_mem_flag()
96 static int drm_handle_to_fd(int fd, RK_U32 handle, int *map_fd, RK_U32 flags) in drm_handle_to_fd() argument
104 dph.flags = flags; in drm_handle_to_fd()
115 drm_dbg_func("dev %d handle %d flags %x get fd %d\n", fd, handle, dph.flags, *map_fd); in drm_handle_to_fd()
125 static int drm_alloc(int fd, size_t len, size_t align, RK_U32 *handle, RK_U32 flags) in drm_alloc() argument
134 dmcb.flags = to_rockchip_gem_mem_flag(flags); in drm_alloc()
145 align, flags, dmcb.flags, dmcb.handle, dmcb.size); in drm_alloc()
158 static MPP_RET os_allocator_drm_open(void **ctx, size_t alignment, MppAllocFlagType flags) in os_allocator_drm_open() argument
190 drm_dbg_dev("open drm dev fd %d flags %x\n", fd, flags); in os_allocator_drm_open()
202 p->flags = flags; in os_allocator_drm_open()
226 (RK_U32 *)&info->hnd, p->flags); in os_allocator_drm_alloc()
338 int flags = PROT_READ; in os_allocator_drm_mmap() local
341 flags |= PROT_WRITE; in os_allocator_drm_mmap()
343 data->ptr = mmap(NULL, data->size, flags, MAP_SHARED, data->fd, 0); in os_allocator_drm_mmap()
352 flags & PROT_WRITE ? "RDWR" : "RDONLY"); in os_allocator_drm_mmap()
362 return p ? (MppAllocFlagType)p->flags : MPP_ALLOC_FLAG_NONE; in os_allocator_drm_flags()
375 .flags = os_allocator_drm_flags,