/Linux-v6.6/include/drm/ |
D | drm_gem.h | 45 struct drm_gem_object; 77 void (*free)(struct drm_gem_object *obj); 86 int (*open)(struct drm_gem_object *obj, struct drm_file *file); 95 void (*close)(struct drm_gem_object *obj, struct drm_file *file); 111 const struct drm_gem_object *obj); 121 struct dma_buf *(*export)(struct drm_gem_object *obj, int flags); 130 int (*pin)(struct drm_gem_object *obj); 139 void (*unpin)(struct drm_gem_object *obj); 153 struct sg_table *(*get_sg_table)(struct drm_gem_object *obj); 163 int (*vmap)(struct drm_gem_object *obj, struct iosys_map *map); [all …]
|
D | drm_exec.h | 12 struct drm_gem_object; 41 struct drm_gem_object **objects; 46 struct drm_gem_object *contended; 51 struct drm_gem_object *prelocked; 62 static inline struct drm_gem_object * 141 int drm_exec_lock_obj(struct drm_exec *exec, struct drm_gem_object *obj); 142 void drm_exec_unlock_obj(struct drm_exec *exec, struct drm_gem_object *obj); 143 int drm_exec_prepare_obj(struct drm_exec *exec, struct drm_gem_object *obj, 146 struct drm_gem_object **objects,
|
D | drm_gem_shmem_helper.h | 27 struct drm_gem_object base; 141 static inline void drm_gem_shmem_object_free(struct drm_gem_object *obj) in drm_gem_shmem_object_free() 158 const struct drm_gem_object *obj) in drm_gem_shmem_object_print_info() 172 static inline int drm_gem_shmem_object_pin(struct drm_gem_object *obj) in drm_gem_shmem_object_pin() 186 static inline void drm_gem_shmem_object_unpin(struct drm_gem_object *obj) in drm_gem_shmem_object_unpin() 203 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() 221 static inline int drm_gem_shmem_object_vmap(struct drm_gem_object *obj, in drm_gem_shmem_object_vmap() 237 static inline void drm_gem_shmem_object_vunmap(struct drm_gem_object *obj, in drm_gem_shmem_object_vunmap() 256 static inline int drm_gem_shmem_object_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma) in drm_gem_shmem_object_mmap() 267 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 * 225 struct drm_gem_object *
|
D | drm_prime.h | 62 struct drm_gem_object; 82 int drm_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma); 87 struct dma_buf *drm_gem_prime_export(struct drm_gem_object *obj, 93 struct drm_gem_object *drm_gem_prime_import_dev(struct drm_device *dev, 96 struct drm_gem_object *drm_gem_prime_import(struct drm_device *dev, 99 void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg);
|
/Linux-v6.6/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); 60 u64 omap_gem_mmap_offset(struct drm_gem_object *obj); 61 size_t omap_gem_mmap_size(struct drm_gem_object *obj); 64 struct dma_buf *omap_gem_prime_export(struct drm_gem_object *obj, int flags); 65 struct drm_gem_object *omap_gem_prime_import(struct drm_device *dev, 68 int omap_gem_roll(struct drm_gem_object *obj, u32 roll); [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() 80 struct dma_buf *omap_gem_prime_export(struct drm_gem_object *obj, int flags) in omap_gem_prime_export() 97 struct drm_gem_object *omap_gem_prime_import(struct drm_device *dev, in omap_gem_prime_import() 101 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-v6.6/drivers/gpu/drm/msm/ |
D | msm_gem.h | 76 struct drm_gem_object base; 120 uint64_t msm_gem_mmap_offset(struct drm_gem_object *obj); 121 int msm_gem_pin_vma_locked(struct drm_gem_object *obj, struct msm_gem_vma *vma); 122 void msm_gem_unpin_locked(struct drm_gem_object *obj); 123 void msm_gem_unpin_active(struct drm_gem_object *obj); 124 struct msm_gem_vma *msm_gem_get_vma_locked(struct drm_gem_object *obj, 126 int msm_gem_get_iova(struct drm_gem_object *obj, 128 int msm_gem_set_iova(struct drm_gem_object *obj, 130 int msm_gem_get_and_pin_iova_range(struct drm_gem_object *obj, 133 int msm_gem_get_and_pin_iova(struct drm_gem_object *obj, [all …]
|
D | msm_gem.c | 22 static dma_addr_t physaddr(struct drm_gem_object *obj) in physaddr() 30 static bool use_pages(struct drm_gem_object *obj) in use_pages() 64 static void update_lru_active(struct drm_gem_object *obj) in update_lru_active() 82 static void update_lru_locked(struct drm_gem_object *obj) in update_lru_locked() 98 static void update_lru(struct drm_gem_object *obj) in update_lru() 108 static struct page **get_pages_vram(struct drm_gem_object *obj, int npages) in get_pages_vram() 137 static struct page **get_pages(struct drm_gem_object *obj) in get_pages() 182 static void put_pages_vram(struct drm_gem_object *obj) in put_pages_vram() 194 static void put_pages(struct drm_gem_object *obj) in put_pages() 222 static struct page **msm_gem_pin_pages_locked(struct drm_gem_object *obj, in msm_gem_pin_pages_locked() [all …]
|
D | msm_gem_prime.c | 14 struct sg_table *msm_gem_prime_get_sg_table(struct drm_gem_object *obj) in msm_gem_prime_get_sg_table() 25 int msm_gem_prime_vmap(struct drm_gem_object *obj, struct iosys_map *map) in msm_gem_prime_vmap() 37 void msm_gem_prime_vunmap(struct drm_gem_object *obj, struct iosys_map *map) in msm_gem_prime_vunmap() 42 struct drm_gem_object *msm_gem_prime_import_sg_table(struct drm_device *dev, in msm_gem_prime_import_sg_table() 48 int msm_gem_prime_pin(struct drm_gem_object *obj) in msm_gem_prime_pin() 55 void msm_gem_prime_unpin(struct drm_gem_object *obj) in msm_gem_prime_unpin()
|
/Linux-v6.6/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() 181 void drm_gem_private_object_fini(struct drm_gem_object *obj) in drm_gem_private_object_fini() 199 static void drm_gem_object_handle_free(struct drm_gem_object *obj) in drm_gem_object_handle_free() 210 static void drm_gem_object_exported_dma_buf_free(struct drm_gem_object *obj) in drm_gem_object_exported_dma_buf_free() 220 drm_gem_object_handle_put_unlocked(struct drm_gem_object *obj) in drm_gem_object_handle_put_unlocked() 254 struct drm_gem_object *obj = ptr; in drm_gem_object_release_handle() 279 struct drm_gem_object *obj; in drm_gem_handle_delete() 317 struct drm_gem_object *obj; in drm_gem_dumb_map_offset() 358 struct drm_gem_object *obj, in drm_gem_handle_create_tail() [all …]
|
/Linux-v6.6/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( 40 struct dma_buf *nouveau_gem_prime_export(struct drm_gem_object *gobj,
|
D | nouveau_prime.c | 31 struct sg_table *nouveau_gem_prime_get_sg_table(struct drm_gem_object *obj) in nouveau_gem_prime_get_sg_table() 39 struct drm_gem_object *nouveau_gem_prime_import_sg_table(struct drm_device *dev, in nouveau_gem_prime_import_sg_table() 44 struct drm_gem_object *obj; in nouveau_gem_prime_import_sg_table() 86 int nouveau_gem_prime_pin(struct drm_gem_object *obj) in nouveau_gem_prime_pin() 99 void nouveau_gem_prime_unpin(struct drm_gem_object *obj) in nouveau_gem_prime_unpin() 106 struct dma_buf *nouveau_gem_prime_export(struct drm_gem_object *gobj, in nouveau_gem_prime_export()
|
/Linux-v6.6/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 | 26 struct drm_gem_object base; 39 to_xen_gem_obj(struct drm_gem_object *gem_obj) in to_xen_gem_obj() 59 static int xen_drm_front_gem_object_mmap(struct drm_gem_object *gem_obj, in xen_drm_front_gem_object_mmap() 189 struct drm_gem_object *xen_drm_front_gem_create(struct drm_device *dev, in xen_drm_front_gem_create() 201 void xen_drm_front_gem_free_object_unlocked(struct drm_gem_object *gem_obj) in xen_drm_front_gem_free_object_unlocked() 224 struct page **xen_drm_front_gem_get_pages(struct drm_gem_object *gem_obj) in xen_drm_front_gem_get_pages() 231 struct sg_table *xen_drm_front_gem_get_sg_table(struct drm_gem_object *gem_obj) in xen_drm_front_gem_get_sg_table() 242 struct drm_gem_object * 281 int xen_drm_front_gem_prime_vmap(struct drm_gem_object *gem_obj, in xen_drm_front_gem_prime_vmap() 300 void xen_drm_front_gem_prime_vunmap(struct drm_gem_object *gem_obj, in xen_drm_front_gem_prime_vunmap()
|
/Linux-v6.6/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-v6.6/drivers/gpu/drm/etnaviv/ |
D | etnaviv_drv.h | 56 int etnaviv_gem_mmap_offset(struct drm_gem_object *obj, u64 *offset); 57 struct sg_table *etnaviv_gem_prime_get_sg_table(struct drm_gem_object *obj); 58 int etnaviv_gem_prime_vmap(struct drm_gem_object *obj, struct iosys_map *map); 59 struct drm_gem_object *etnaviv_gem_prime_import_sg_table(struct drm_device *dev, 61 int etnaviv_gem_prime_pin(struct drm_gem_object *obj); 62 void etnaviv_gem_prime_unpin(struct drm_gem_object *obj); 63 void *etnaviv_gem_vmap(struct drm_gem_object *obj); 64 int etnaviv_gem_cpu_prep(struct drm_gem_object *obj, u32 op, 66 int etnaviv_gem_cpu_fini(struct drm_gem_object *obj); 67 void etnaviv_gem_free_object(struct drm_gem_object *obj);
|
/Linux-v6.6/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-v6.6/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-v6.6/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()
|
D | qxl_gem.c | 31 void qxl_gem_object_free(struct drm_gem_object *gobj) in qxl_gem_object_free() 49 struct drm_gem_object **obj) in qxl_gem_object_create() 86 struct drm_gem_object **gobj, in qxl_gem_object_create_with_handle() 90 struct drm_gem_object *local_gobj; in qxl_gem_object_create_with_handle() 113 int qxl_gem_object_open(struct drm_gem_object *obj, struct drm_file *file_priv) in qxl_gem_object_open() 118 void qxl_gem_object_close(struct drm_gem_object *obj, in qxl_gem_object_close()
|
/Linux-v6.6/drivers/gpu/drm/loongson/ |
D | lsdc_gem.c | 17 static int lsdc_gem_prime_pin(struct drm_gem_object *obj) in lsdc_gem_prime_pin() 35 static void lsdc_gem_prime_unpin(struct drm_gem_object *obj) in lsdc_gem_prime_unpin() 51 static struct sg_table *lsdc_gem_prime_get_sg_table(struct drm_gem_object *obj) in lsdc_gem_prime_get_sg_table() 64 static void lsdc_gem_object_free(struct drm_gem_object *obj) in lsdc_gem_object_free() 72 static int lsdc_gem_object_vmap(struct drm_gem_object *obj, struct iosys_map *map) in lsdc_gem_object_vmap() 104 static void lsdc_gem_object_vunmap(struct drm_gem_object *obj, struct iosys_map *map) in lsdc_gem_object_vunmap() 122 static int lsdc_gem_object_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma) in lsdc_gem_object_mmap() 149 struct drm_gem_object *lsdc_gem_object_create(struct drm_device *ddev, in lsdc_gem_object_create() 157 struct drm_gem_object *gobj; in lsdc_gem_object_create() 183 struct drm_gem_object * [all …]
|
/Linux-v6.6/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-v6.6/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()
|