/openbmc/linux/include/drm/ |
H A D | drm_gem.h | 45 struct drm_gem_object; 77 void (*free)(struct drm_gem_object *obj); 111 const struct drm_gem_object *obj); 130 int (*pin)(struct drm_gem_object *obj); 139 void (*unpin)(struct drm_gem_object *obj); 196 int (*evict)(struct drm_gem_object *obj); 264 struct drm_gem_object { struct 465 struct drm_gem_object *obj, size_t size); 467 struct drm_gem_object *obj, size_t size); 501 drm_gem_object_put(struct drm_gem_object *obj) in drm_gem_object_put() [all …]
|
H A 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,
|
H A 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 *
|
H A 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 *
|
H A 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);
|
/openbmc/linux/drivers/gpu/drm/omapdrm/ |
H A D | omap_gem.h | 20 struct drm_gem_object; 45 struct drm_gem_object *omap_gem_new(struct drm_device *dev, 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); 68 int omap_gem_roll(struct drm_gem_object *obj, u32 roll); 70 void omap_gem_dma_sync_buffer(struct drm_gem_object *obj, 73 void omap_gem_unpin(struct drm_gem_object *obj); 76 int omap_gem_put_pages(struct drm_gem_object *obj); 78 u32 omap_gem_flags(struct drm_gem_object *obj); [all …]
|
H A 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()
|
/openbmc/linux/drivers/gpu/drm/msm/ |
H A D | msm_gem.h | 76 struct drm_gem_object base; 126 int msm_gem_get_iova(struct drm_gem_object *obj, 128 int msm_gem_set_iova(struct drm_gem_object *obj, 150 bool msm_gem_active(struct drm_gem_object *obj); 159 struct drm_gem_object **bo, uint64_t *iova); 181 msm_gem_lock(struct drm_gem_object *obj) in msm_gem_lock() 193 msm_gem_unlock(struct drm_gem_object *obj) in msm_gem_unlock() 242 void msm_gem_purge(struct drm_gem_object *obj); 243 void msm_gem_evict(struct drm_gem_object *obj); 244 void msm_gem_vunmap(struct drm_gem_object *obj); [all …]
|
H A 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() 432 put_iova_vmas(struct drm_gem_object *obj) in put_iova_vmas() 677 struct drm_gem_object *obj; in msm_gem_dumb_map_offset() 811 void msm_gem_purge(struct drm_gem_object *obj) in msm_gem_purge() 852 void msm_gem_evict(struct drm_gem_object *obj) in msm_gem_evict() 1079 struct drm_gem_object *obj; in msm_gem_new_handle() 1132 struct drm_gem_object **obj) in msm_gem_new_impl() 1171 struct drm_gem_object *obj = NULL; in msm_gem_new() 1258 struct drm_gem_object *obj; in msm_gem_import() [all …]
|
H A 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()
|
/openbmc/linux/drivers/gpu/drm/nouveau/ |
H A 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,
|
H A 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() 87 int nouveau_gem_prime_pin(struct drm_gem_object *obj) in nouveau_gem_prime_pin() 100 void nouveau_gem_prime_unpin(struct drm_gem_object *obj) in nouveau_gem_prime_unpin() 107 struct dma_buf *nouveau_gem_prime_export(struct drm_gem_object *gobj, in nouveau_gem_prime_export()
|
/openbmc/linux/drivers/gpu/drm/xen/ |
H A 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,
|
H A 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()
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_gem.c | 279 struct drm_gem_object *obj; in drm_gem_handle_delete() 317 struct drm_gem_object *obj; in drm_gem_dumb_map_offset() 425 struct drm_gem_object *obj, in drm_gem_handle_create() 660 struct drm_gem_object *obj; in objects_lookup() 703 struct drm_gem_object **objs; in drm_gem_objects_lookup() 747 struct drm_gem_object * 774 struct drm_gem_object *obj; in drm_gem_dma_resv_wait() 834 struct drm_gem_object *obj; in drm_gem_flink_ioctl() 884 struct drm_gem_object *obj; in drm_gem_open_ioctl() 976 struct drm_gem_object *obj = in drm_gem_object_free() [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A 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,
|
/openbmc/linux/drivers/gpu/drm/etnaviv/ |
H A 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);
|
/openbmc/linux/drivers/gpu/drm/mediatek/ |
H A 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,
|
/openbmc/linux/drivers/gpu/drm/rockchip/ |
H A 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);
|
/openbmc/linux/drivers/gpu/drm/qxl/ |
H A 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()
|
H A 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()
|
/openbmc/linux/drivers/gpu/drm/tegra/ |
H A 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,
|
/openbmc/linux/drivers/gpu/drm/loongson/ |
H A 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() 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 * 190 struct drm_gem_object *gobj; in lsdc_prime_import_sg_table() 215 struct drm_gem_object *gobj; in lsdc_dumb_create() [all …]
|
/openbmc/linux/drivers/gpu/drm/armada/ |
H A 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()
|
/openbmc/linux/drivers/gpu/drm/exynos/ |
H A 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 *
|