/linux-6.1.9/include/drm/ |
D | drm_gem.h | 43 struct drm_gem_object; 56 void (*free)(struct drm_gem_object *obj); 65 int (*open)(struct drm_gem_object *obj, struct drm_file *file); 74 void (*close)(struct drm_gem_object *obj, struct drm_file *file); 90 const struct drm_gem_object *obj); 100 struct dma_buf *(*export)(struct drm_gem_object *obj, int flags); 109 int (*pin)(struct drm_gem_object *obj); 118 void (*unpin)(struct drm_gem_object *obj); 132 struct sg_table *(*get_sg_table)(struct drm_gem_object *obj); 142 int (*vmap)(struct drm_gem_object *obj, struct iosys_map *map); [all …]
|
D | drm_gem_shmem_helper.h | 27 struct drm_gem_object base; 153 static inline void drm_gem_shmem_object_free(struct drm_gem_object *obj) in drm_gem_shmem_object_free() 170 const struct drm_gem_object *obj) in drm_gem_shmem_object_print_info() 184 static inline int drm_gem_shmem_object_pin(struct drm_gem_object *obj) in drm_gem_shmem_object_pin() 198 static inline void drm_gem_shmem_object_unpin(struct drm_gem_object *obj) in drm_gem_shmem_object_unpin() 215 static inline struct sg_table *drm_gem_shmem_object_get_sg_table(struct drm_gem_object *obj) in drm_gem_shmem_object_get_sg_table() 233 static inline int drm_gem_shmem_object_vmap(struct drm_gem_object *obj, in drm_gem_shmem_object_vmap() 249 static inline void drm_gem_shmem_object_vunmap(struct drm_gem_object *obj, in drm_gem_shmem_object_vunmap() 268 static inline int drm_gem_shmem_object_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma) in drm_gem_shmem_object_mmap() 279 struct drm_gem_object *
|
D | drm_gem_dma_helper.h | 22 struct drm_gem_object base; 58 static inline void drm_gem_dma_object_free(struct drm_gem_object *obj) in drm_gem_dma_object_free() 75 const struct drm_gem_object *obj) in drm_gem_dma_object_print_info() 92 static inline struct sg_table *drm_gem_dma_object_get_sg_table(struct drm_gem_object *obj) in drm_gem_dma_object_get_sg_table() 110 static inline int drm_gem_dma_object_vmap(struct drm_gem_object *obj, in drm_gem_dma_object_vmap() 129 static inline int drm_gem_dma_object_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma) in drm_gem_dma_object_mmap() 150 struct drm_gem_object * 231 struct drm_gem_object *
|
D | drm_prime.h | 62 struct drm_gem_object; 89 int drm_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma); 94 struct dma_buf *drm_gem_prime_export(struct drm_gem_object *obj, 100 struct drm_gem_object *drm_gem_prime_import_dev(struct drm_device *dev, 103 struct drm_gem_object *drm_gem_prime_import(struct drm_device *dev, 106 void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg);
|
/linux-6.1.9/drivers/gpu/drm/omapdrm/ |
D | omap_gem.h | 20 struct drm_gem_object; 40 void omap_gem_describe(struct drm_gem_object *obj, struct seq_file *m); 45 struct drm_gem_object *omap_gem_new(struct drm_device *dev, 47 struct drm_gem_object *omap_gem_new_dmabuf(struct drm_device *dev, size_t size, 51 void *omap_gem_vaddr(struct drm_gem_object *obj); 61 int omap_gem_mmap_obj(struct drm_gem_object *obj, 63 u64 omap_gem_mmap_offset(struct drm_gem_object *obj); 64 size_t omap_gem_mmap_size(struct drm_gem_object *obj); 67 struct dma_buf *omap_gem_prime_export(struct drm_gem_object *obj, int flags); 68 struct drm_gem_object *omap_gem_prime_import(struct drm_device *dev, [all …]
|
D | omap_gem_dmabuf.c | 24 struct drm_gem_object *obj = attachment->dmabuf->priv; in omap_gem_map_dma_buf() 36 struct drm_gem_object *obj = attachment->dmabuf->priv; in omap_gem_unmap_dma_buf() 43 struct drm_gem_object *obj = buffer->priv; in omap_gem_dmabuf_begin_cpu_access() 58 struct drm_gem_object *obj = buffer->priv; in omap_gem_dmabuf_end_cpu_access() 66 struct drm_gem_object *obj = buffer->priv; in omap_gem_dmabuf_mmap() 85 struct dma_buf *omap_gem_prime_export(struct drm_gem_object *obj, int flags) in omap_gem_prime_export() 102 struct drm_gem_object *omap_gem_prime_import(struct drm_device *dev, in omap_gem_prime_import() 106 struct drm_gem_object *obj; in omap_gem_prime_import()
|
D | omap_gem.c | 29 struct drm_gem_object base; 115 struct drm_gem_object *obj; /* the current pinned obj */ 134 u64 omap_gem_mmap_offset(struct drm_gem_object *obj) in omap_gem_mmap_offset() 166 static void omap_gem_evict_entry(struct drm_gem_object *obj, in omap_gem_evict_entry() 194 static void omap_gem_evict(struct drm_gem_object *obj) in omap_gem_evict() 221 static int omap_gem_attach_pages(struct drm_gem_object *obj) in omap_gem_attach_pages() 294 static void omap_gem_detach_pages(struct drm_gem_object *obj) in omap_gem_detach_pages() 316 u32 omap_gem_flags(struct drm_gem_object *obj) in omap_gem_flags() 322 size_t omap_gem_mmap_size(struct drm_gem_object *obj) in omap_gem_mmap_size() 346 static vm_fault_t omap_gem_fault_1d(struct drm_gem_object *obj, in omap_gem_fault_1d() [all …]
|
/linux-6.1.9/drivers/gpu/drm/msm/ |
D | msm_gem.h | 87 struct drm_gem_object base; 124 uint64_t msm_gem_mmap_offset(struct drm_gem_object *obj); 125 int msm_gem_pin_vma_locked(struct drm_gem_object *obj, struct msm_gem_vma *vma); 126 void msm_gem_unpin_locked(struct drm_gem_object *obj); 127 struct msm_gem_vma *msm_gem_get_vma_locked(struct drm_gem_object *obj, 129 int msm_gem_get_iova(struct drm_gem_object *obj, 131 int msm_gem_set_iova(struct drm_gem_object *obj, 133 int msm_gem_get_and_pin_iova_range(struct drm_gem_object *obj, 136 int msm_gem_get_and_pin_iova(struct drm_gem_object *obj, 138 void msm_gem_unpin_iova(struct drm_gem_object *obj, [all …]
|
D | msm_gem.c | 22 static void update_lru(struct drm_gem_object *obj); 24 static dma_addr_t physaddr(struct drm_gem_object *obj) in physaddr() 32 static bool use_pages(struct drm_gem_object *obj) in use_pages() 67 static struct page **get_pages_vram(struct drm_gem_object *obj, int npages) in get_pages_vram() 96 static struct page **get_pages(struct drm_gem_object *obj) in get_pages() 141 static void put_pages_vram(struct drm_gem_object *obj) in put_pages_vram() 153 static void put_pages(struct drm_gem_object *obj) in put_pages() 181 static struct page **msm_gem_pin_pages_locked(struct drm_gem_object *obj) in msm_gem_pin_pages_locked() 201 struct page **msm_gem_pin_pages(struct drm_gem_object *obj) in msm_gem_pin_pages() 212 void msm_gem_unpin_pages(struct drm_gem_object *obj) in msm_gem_unpin_pages() [all …]
|
D | msm_gem_prime.c | 14 int msm_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma) in msm_gem_prime_mmap() 29 struct sg_table *msm_gem_prime_get_sg_table(struct drm_gem_object *obj) in msm_gem_prime_get_sg_table() 40 int msm_gem_prime_vmap(struct drm_gem_object *obj, struct iosys_map *map) in msm_gem_prime_vmap() 52 void msm_gem_prime_vunmap(struct drm_gem_object *obj, struct iosys_map *map) in msm_gem_prime_vunmap() 57 struct drm_gem_object *msm_gem_prime_import_sg_table(struct drm_device *dev, in msm_gem_prime_import_sg_table() 63 int msm_gem_prime_pin(struct drm_gem_object *obj) in msm_gem_prime_pin() 70 void msm_gem_prime_unpin(struct drm_gem_object *obj) in msm_gem_prime_unpin()
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_gem.c | 126 struct drm_gem_object *obj, size_t size) in drm_gem_object_init() 153 struct drm_gem_object *obj, size_t size) in drm_gem_private_object_init() 182 static void drm_gem_object_handle_free(struct drm_gem_object *obj) in drm_gem_object_handle_free() 193 static void drm_gem_object_exported_dma_buf_free(struct drm_gem_object *obj) in drm_gem_object_exported_dma_buf_free() 203 drm_gem_object_handle_put_unlocked(struct drm_gem_object *obj) in drm_gem_object_handle_put_unlocked() 237 struct drm_gem_object *obj = ptr; in drm_gem_object_release_handle() 262 struct drm_gem_object *obj; in drm_gem_handle_delete() 300 struct drm_gem_object *obj; in drm_gem_dumb_map_offset() 348 struct drm_gem_object *obj, in drm_gem_handle_create_tail() 415 struct drm_gem_object *obj, in drm_gem_handle_create() [all …]
|
/linux-6.1.9/drivers/gpu/drm/xen/ |
D | xen_drm_front_gem.h | 17 struct drm_gem_object; 20 struct drm_gem_object *xen_drm_front_gem_create(struct drm_device *dev, 23 struct drm_gem_object * 28 struct sg_table *xen_drm_front_gem_get_sg_table(struct drm_gem_object *gem_obj); 30 struct page **xen_drm_front_gem_get_pages(struct drm_gem_object *obj); 32 void xen_drm_front_gem_free_object_unlocked(struct drm_gem_object *gem_obj); 34 int xen_drm_front_gem_prime_vmap(struct drm_gem_object *gem_obj, 37 void xen_drm_front_gem_prime_vunmap(struct drm_gem_object *gem_obj,
|
D | xen_drm_front_gem.c | 27 struct drm_gem_object base; 40 to_xen_gem_obj(struct drm_gem_object *gem_obj) in to_xen_gem_obj() 60 static int xen_drm_front_gem_object_mmap(struct drm_gem_object *gem_obj, in xen_drm_front_gem_object_mmap() 191 struct drm_gem_object *xen_drm_front_gem_create(struct drm_device *dev, in xen_drm_front_gem_create() 203 void xen_drm_front_gem_free_object_unlocked(struct drm_gem_object *gem_obj) in xen_drm_front_gem_free_object_unlocked() 226 struct page **xen_drm_front_gem_get_pages(struct drm_gem_object *gem_obj) in xen_drm_front_gem_get_pages() 233 struct sg_table *xen_drm_front_gem_get_sg_table(struct drm_gem_object *gem_obj) in xen_drm_front_gem_get_sg_table() 244 struct drm_gem_object * 283 int xen_drm_front_gem_prime_vmap(struct drm_gem_object *gem_obj, in xen_drm_front_gem_prime_vmap() 302 void xen_drm_front_gem_prime_vunmap(struct drm_gem_object *gem_obj, in xen_drm_front_gem_prime_vunmap()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/ |
D | nouveau_gem.h | 11 nouveau_gem_object(struct drm_gem_object *gem) in nouveau_gem_object() 20 extern void nouveau_gem_object_del(struct drm_gem_object *); 21 extern int nouveau_gem_object_open(struct drm_gem_object *, struct drm_file *); 22 extern void nouveau_gem_object_close(struct drm_gem_object *, 35 extern int nouveau_gem_prime_pin(struct drm_gem_object *); 36 extern void nouveau_gem_prime_unpin(struct drm_gem_object *); 37 extern struct sg_table *nouveau_gem_prime_get_sg_table(struct drm_gem_object *); 38 extern struct drm_gem_object *nouveau_gem_prime_import_sg_table(
|
/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | radeon_prime.h | 29 struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj, 31 struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj); 32 int radeon_gem_prime_pin(struct drm_gem_object *obj); 33 void radeon_gem_prime_unpin(struct drm_gem_object *obj); 34 void *radeon_gem_prime_vmap(struct drm_gem_object *obj); 35 void radeon_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr); 36 struct drm_gem_object *radeon_gem_prime_import_sg_table(struct drm_device *dev,
|
/linux-6.1.9/drivers/gpu/drm/etnaviv/ |
D | etnaviv_drv.h | 50 int etnaviv_gem_mmap_offset(struct drm_gem_object *obj, u64 *offset); 51 struct sg_table *etnaviv_gem_prime_get_sg_table(struct drm_gem_object *obj); 52 int etnaviv_gem_prime_vmap(struct drm_gem_object *obj, struct iosys_map *map); 53 struct drm_gem_object *etnaviv_gem_prime_import_sg_table(struct drm_device *dev, 55 int etnaviv_gem_prime_pin(struct drm_gem_object *obj); 56 void etnaviv_gem_prime_unpin(struct drm_gem_object *obj); 57 void *etnaviv_gem_vmap(struct drm_gem_object *obj); 58 int etnaviv_gem_cpu_prep(struct drm_gem_object *obj, u32 op, 60 int etnaviv_gem_cpu_fini(struct drm_gem_object *obj); 61 void etnaviv_gem_free_object(struct drm_gem_object *obj);
|
/linux-6.1.9/drivers/gpu/drm/mediatek/ |
D | mtk_drm_gem.h | 26 struct drm_gem_object base; 37 void mtk_drm_gem_free_object(struct drm_gem_object *gem); 42 struct sg_table *mtk_gem_prime_get_sg_table(struct drm_gem_object *obj); 43 struct drm_gem_object *mtk_gem_prime_import_sg_table(struct drm_device *dev, 45 int mtk_drm_gem_prime_vmap(struct drm_gem_object *obj, struct iosys_map *map); 46 void mtk_drm_gem_prime_vunmap(struct drm_gem_object *obj,
|
/linux-6.1.9/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_gem.h | 13 struct drm_gem_object base; 29 struct sg_table *rockchip_gem_prime_get_sg_table(struct drm_gem_object *obj); 30 struct drm_gem_object * 34 int rockchip_gem_prime_vmap(struct drm_gem_object *obj, struct iosys_map *map); 35 void rockchip_gem_prime_vunmap(struct drm_gem_object *obj, 42 void rockchip_gem_free_object(struct drm_gem_object *obj);
|
/linux-6.1.9/drivers/gpu/drm/qxl/ |
D | qxl_prime.c | 31 int qxl_gem_prime_pin(struct drm_gem_object *obj) in qxl_gem_prime_pin() 38 void qxl_gem_prime_unpin(struct drm_gem_object *obj) in qxl_gem_prime_unpin() 45 struct sg_table *qxl_gem_prime_get_sg_table(struct drm_gem_object *obj) in qxl_gem_prime_get_sg_table() 50 struct drm_gem_object *qxl_gem_prime_import_sg_table( in qxl_gem_prime_import_sg_table() 57 int qxl_gem_prime_vmap(struct drm_gem_object *obj, struct iosys_map *map) in qxl_gem_prime_vmap() 69 void qxl_gem_prime_vunmap(struct drm_gem_object *obj, in qxl_gem_prime_vunmap()
|
/linux-6.1.9/drivers/gpu/drm/tegra/ |
D | gem.h | 36 struct drm_gem_object gem; 52 static inline struct tegra_bo *to_tegra_bo(struct drm_gem_object *gem) in to_tegra_bo() 69 void tegra_bo_free_object(struct drm_gem_object *gem); 75 int __tegra_gem_mmap(struct drm_gem_object *gem, struct vm_area_struct *vma); 78 struct dma_buf *tegra_gem_prime_export(struct drm_gem_object *gem, 80 struct drm_gem_object *tegra_gem_prime_import(struct drm_device *drm,
|
/linux-6.1.9/drivers/gpu/drm/armada/ |
D | armada_gem.h | 12 struct drm_gem_object obj; 26 void armada_gem_free_object(struct drm_gem_object *); 33 struct dma_buf *armada_gem_prime_export(struct drm_gem_object *obj, int flags); 34 struct drm_gem_object *armada_gem_prime_import(struct drm_device *, 41 struct drm_gem_object *obj = drm_gem_object_lookup(dfile, handle); in armada_gem_object_lookup()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_dma_buf.c | 56 struct drm_gem_object *obj = dmabuf->priv; in amdgpu_dma_buf_attach() 86 struct drm_gem_object *obj = dmabuf->priv; in amdgpu_dma_buf_detach() 103 struct drm_gem_object *obj = attach->dmabuf->priv; in amdgpu_dma_buf_pin() 119 struct drm_gem_object *obj = attach->dmabuf->priv; in amdgpu_dma_buf_unpin() 142 struct drm_gem_object *obj = dma_buf->priv; in amdgpu_dma_buf_map() 287 struct dma_buf *amdgpu_gem_prime_export(struct drm_gem_object *gobj, in amdgpu_gem_prime_export() 316 static struct drm_gem_object * 321 struct drm_gem_object *gobj; in amdgpu_dma_buf_create_obj() 363 struct drm_gem_object *obj = attach->importer_priv; in amdgpu_dma_buf_move_notify() 430 struct drm_gem_object *amdgpu_gem_prime_import(struct drm_device *dev, in amdgpu_gem_prime_import() [all …]
|
/linux-6.1.9/drivers/gpu/drm/exynos/ |
D | exynos_drm_gem.h | 39 struct drm_gem_object base; 92 void exynos_drm_gem_free_object(struct drm_gem_object *obj); 100 struct drm_gem_object *exynos_drm_gem_prime_import(struct drm_device *dev, 102 struct sg_table *exynos_drm_gem_prime_get_sg_table(struct drm_gem_object *obj); 103 struct drm_gem_object *
|
/linux-6.1.9/drivers/gpu/drm/panfrost/ |
D | panfrost_gem.h | 53 struct panfrost_gem_object *to_panfrost_bo(struct drm_gem_object *obj) in to_panfrost_bo() 64 struct drm_gem_object *panfrost_gem_create_object(struct drm_device *dev, size_t size); 66 struct drm_gem_object * 74 int panfrost_gem_open(struct drm_gem_object *obj, struct drm_file *file_priv); 75 void panfrost_gem_close(struct drm_gem_object *obj,
|
/linux-6.1.9/drivers/gpu/drm/virtio/ |
D | virtgpu_prime.c | 33 struct drm_gem_object *obj = buf->priv; in virtgpu_virtio_get_uuid() 50 struct drm_gem_object *obj = attach->dmabuf->priv; in virtgpu_gem_map_dma_buf() 63 struct drm_gem_object *obj = attach->dmabuf->priv; in virtgpu_gem_unmap_dma_buf() 104 struct dma_buf *virtgpu_gem_prime_export(struct drm_gem_object *obj, in virtgpu_gem_prime_export() 145 struct drm_gem_object *virtgpu_gem_prime_import(struct drm_device *dev, in virtgpu_gem_prime_import() 148 struct drm_gem_object *obj; in virtgpu_gem_prime_import() 165 struct drm_gem_object *virtgpu_gem_prime_import_sg_table( in virtgpu_gem_prime_import_sg_table()
|