/kernel/linux/linux-5.10/drivers/gpu/drm/xen/ |
D | xen_drm_front_gem.c | 40 to_xen_gem_obj(struct drm_gem_object *gem_obj) in to_xen_gem_obj() argument 42 return container_of(gem_obj, struct xen_gem_object, base); in to_xen_gem_obj() 146 void xen_drm_front_gem_free_object_unlocked(struct drm_gem_object *gem_obj) in xen_drm_front_gem_free_object_unlocked() argument 148 struct xen_gem_object *xen_obj = to_xen_gem_obj(gem_obj); in xen_drm_front_gem_free_object_unlocked() 165 drm_gem_object_release(gem_obj); in xen_drm_front_gem_free_object_unlocked() 169 struct page **xen_drm_front_gem_get_pages(struct drm_gem_object *gem_obj) in xen_drm_front_gem_get_pages() argument 171 struct xen_gem_object *xen_obj = to_xen_gem_obj(gem_obj); in xen_drm_front_gem_get_pages() 176 struct sg_table *xen_drm_front_gem_get_sg_table(struct drm_gem_object *gem_obj) in xen_drm_front_gem_get_sg_table() argument 178 struct xen_gem_object *xen_obj = to_xen_gem_obj(gem_obj); in xen_drm_front_gem_get_sg_table() 183 return drm_prime_pages_to_sg(gem_obj->dev, in xen_drm_front_gem_get_sg_table() [all …]
|
D | xen_drm_front_gem.h | 29 struct sg_table *xen_drm_front_gem_get_sg_table(struct drm_gem_object *gem_obj); 33 void xen_drm_front_gem_free_object_unlocked(struct drm_gem_object *gem_obj); 37 void *xen_drm_front_gem_prime_vmap(struct drm_gem_object *gem_obj); 39 void xen_drm_front_gem_prime_vunmap(struct drm_gem_object *gem_obj, 42 int xen_drm_front_gem_prime_mmap(struct drm_gem_object *gem_obj,
|
D | xen_drm_front.h | 137 static inline u64 xen_drm_front_dbuf_to_cookie(struct drm_gem_object *gem_obj) in xen_drm_front_dbuf_to_cookie() argument 139 return (uintptr_t)gem_obj; in xen_drm_front_dbuf_to_cookie()
|
D | xen_drm_front_kms.c | 59 struct drm_gem_object *gem_obj; in fb_create() local 66 gem_obj = fb->obj[0]; in fb_create() 69 xen_drm_front_dbuf_to_cookie(gem_obj), in fb_create()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_gem_cma_helper.c | 52 struct drm_gem_object *gem_obj; in __drm_gem_cma_create() local 56 gem_obj = drm->driver->gem_create_object(drm, size); in __drm_gem_cma_create() 58 gem_obj = kzalloc(sizeof(*cma_obj), GFP_KERNEL); in __drm_gem_cma_create() 59 if (!gem_obj) in __drm_gem_cma_create() 61 cma_obj = container_of(gem_obj, struct drm_gem_cma_object, base); in __drm_gem_cma_create() 63 ret = drm_gem_object_init(drm, gem_obj, size); in __drm_gem_cma_create() 67 ret = drm_gem_create_mmap_offset(gem_obj); in __drm_gem_cma_create() 69 drm_gem_object_release(gem_obj); in __drm_gem_cma_create() 144 struct drm_gem_object *gem_obj; in drm_gem_cma_create_with_handle() local 151 gem_obj = &cma_obj->base; in drm_gem_cma_create_with_handle() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/v3d/ |
D | v3d_bo.c | 197 struct drm_gem_object *gem_obj; in v3d_mmap_bo_ioctl() local 204 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in v3d_mmap_bo_ioctl() 205 if (!gem_obj) { in v3d_mmap_bo_ioctl() 210 args->offset = drm_vma_node_offset_addr(&gem_obj->vma_node); in v3d_mmap_bo_ioctl() 211 drm_gem_object_put(gem_obj); in v3d_mmap_bo_ioctl() 220 struct drm_gem_object *gem_obj; in v3d_get_bo_offset_ioctl() local 223 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in v3d_get_bo_offset_ioctl() 224 if (!gem_obj) { in v3d_get_bo_offset_ioctl() 228 bo = to_v3d_bo(gem_obj); in v3d_get_bo_offset_ioctl() 232 drm_gem_object_put(gem_obj); in v3d_get_bo_offset_ioctl()
|
D | v3d_drv.h | 304 void v3d_free_object(struct drm_gem_object *gem_obj);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vkms/ |
D | vkms_writeback.c | 67 struct drm_gem_object *gem_obj; in vkms_wb_prepare_job() local 73 gem_obj = drm_gem_fb_get_obj(job->fb, 0); in vkms_wb_prepare_job() 74 ret = vkms_gem_vmap(gem_obj); in vkms_wb_prepare_job() 80 vkms_obj = drm_gem_to_vkms_gem(gem_obj); in vkms_wb_prepare_job() 89 struct drm_gem_object *gem_obj; in vkms_wb_cleanup_job() local 95 gem_obj = drm_gem_fb_get_obj(job->fb, 0); in vkms_wb_cleanup_job() 96 vkms_gem_vunmap(gem_obj); in vkms_wb_cleanup_job() 98 vkmsdev = drm_device_to_vkms_device(gem_obj->dev); in vkms_wb_cleanup_job()
|
D | vkms_gem.c | 125 struct drm_gem_object *gem_obj; in vkms_dumb_create() local 137 gem_obj = vkms_gem_create(dev, file, &args->handle, size); in vkms_dumb_create() 138 if (IS_ERR(gem_obj)) in vkms_dumb_create() 139 return PTR_ERR(gem_obj); in vkms_dumb_create() 141 args->size = gem_obj->size; in vkms_dumb_create() 144 drm_gem_object_put(gem_obj); in vkms_dumb_create() 153 struct drm_gem_object *gem_obj = &vkms_obj->gem; in _get_pages() local 156 struct page **pages = drm_gem_get_pages(gem_obj); in _get_pages() 162 drm_gem_put_pages(gem_obj, pages, false, true); in _get_pages()
|
D | vkms_plane.c | 147 struct drm_gem_object *gem_obj; in vkms_prepare_fb() local 153 gem_obj = drm_gem_fb_get_obj(state->fb, 0); in vkms_prepare_fb() 154 ret = vkms_gem_vmap(gem_obj); in vkms_prepare_fb() 164 struct drm_gem_object *gem_obj; in vkms_cleanup_fb() local 169 gem_obj = drm_gem_fb_get_obj(old_state->fb, 0); in vkms_cleanup_fb() 170 vkms_gem_vunmap(gem_obj); in vkms_cleanup_fb()
|
D | vkms_composer.c | 149 struct drm_gem_object *gem_obj = drm_gem_fb_get_obj(fb, 0); in compose_planes() local 150 struct vkms_gem_object *vkms_obj = drm_gem_to_vkms_gem(gem_obj); in compose_planes()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/panfrost/ |
D | panfrost_drv.c | 313 struct drm_gem_object *gem_obj; in panfrost_ioctl_wait_bo() local 319 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in panfrost_ioctl_wait_bo() 320 if (!gem_obj) in panfrost_ioctl_wait_bo() 323 ret = dma_resv_wait_timeout_rcu(gem_obj->resv, true, in panfrost_ioctl_wait_bo() 328 drm_gem_object_put(gem_obj); in panfrost_ioctl_wait_bo() 337 struct drm_gem_object *gem_obj; in panfrost_ioctl_mmap_bo() local 345 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in panfrost_ioctl_mmap_bo() 346 if (!gem_obj) { in panfrost_ioctl_mmap_bo() 352 if (to_panfrost_bo(gem_obj)->is_heap) { in panfrost_ioctl_mmap_bo() 357 ret = drm_gem_create_mmap_offset(gem_obj); in panfrost_ioctl_mmap_bo() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/ |
D | vc4_bo.c | 128 static void vc4_bo_set_label(struct drm_gem_object *gem_obj, int label) in vc4_bo_set_label() argument 130 struct vc4_bo *bo = to_vc4_bo(gem_obj); in vc4_bo_set_label() 131 struct vc4_dev *vc4 = to_vc4_dev(gem_obj->dev); in vc4_bo_set_label() 137 vc4->bo_labels[label].size_allocated += gem_obj->size; in vc4_bo_set_label() 141 vc4->bo_labels[bo->label].size_allocated -= gem_obj->size; in vc4_bo_set_label() 705 struct drm_gem_object *gem_obj; in vc4_mmap() local 714 gem_obj = vma->vm_private_data; in vc4_mmap() 715 bo = to_vc4_bo(gem_obj); in vc4_mmap() 846 struct drm_gem_object *gem_obj; in vc4_mmap_bo_ioctl() local 848 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in vc4_mmap_bo_ioctl() [all …]
|
D | vc4_gem.c | 1094 struct drm_gem_object *gem_obj; in vc4_wait_bo_ioctl() local 1100 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in vc4_wait_bo_ioctl() 1101 if (!gem_obj) { in vc4_wait_bo_ioctl() 1105 bo = to_vc4_bo(gem_obj); in vc4_wait_bo_ioctl() 1110 drm_gem_object_put(gem_obj); in vc4_wait_bo_ioctl() 1317 struct drm_gem_object *gem_obj; in vc4_gem_madvise_ioctl() local 1332 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in vc4_gem_madvise_ioctl() 1333 if (!gem_obj) { in vc4_gem_madvise_ioctl() 1338 bo = to_vc4_bo(gem_obj); in vc4_gem_madvise_ioctl() 1350 if (gem_obj->import_attach) { in vc4_gem_madvise_ioctl() [all …]
|
D | vc4_kms.c | 485 struct drm_gem_object *gem_obj; in vc4_fb_create() local 488 gem_obj = drm_gem_object_lookup(file_priv, in vc4_fb_create() 490 if (!gem_obj) { in vc4_fb_create() 495 bo = to_vc4_bo(gem_obj); in vc4_fb_create() 506 drm_gem_object_put(gem_obj); in vc4_fb_create()
|
D | vc4_drv.h | 787 void vc4_free_object(struct drm_gem_object *gem_obj);
|
/kernel/linux/linux-5.10/include/drm/ |
D | drm_gem_ttm_helper.h | 13 #define drm_gem_ttm_of_gem(gem_obj) \ argument 14 container_of(gem_obj, struct ttm_buffer_object, base)
|
D | drm_gem_cma_helper.h | 29 #define to_drm_gem_cma_obj(gem_obj) \ argument 30 container_of(gem_obj, struct drm_gem_cma_object, base) 67 void drm_gem_cma_free_object(struct drm_gem_object *gem_obj);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
D | i915_gem_dmabuf.c | 170 struct dma_buf *i915_gem_prime_export(struct drm_gem_object *gem_obj, int flags) in i915_gem_prime_export() argument 172 struct drm_i915_gem_object *obj = to_intel_bo(gem_obj); in i915_gem_prime_export() 176 exp_info.size = gem_obj->size; in i915_gem_prime_export() 178 exp_info.priv = gem_obj; in i915_gem_prime_export() 187 return drm_gem_dmabuf_export(gem_obj->dev, &exp_info); in i915_gem_prime_export()
|
D | i915_gem_object.c | 267 void i915_gem_free_object(struct drm_gem_object *gem_obj) in i915_gem_free_object() argument 269 struct drm_i915_gem_object *obj = to_intel_bo(gem_obj); in i915_gem_free_object()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/ |
D | dmabuf.c | 181 static void vgpu_gem_release(struct drm_i915_gem_object *gem_obj) in vgpu_gem_release() argument 184 struct intel_vgpu_fb_info *fb_info = gem_obj->gvt_info; in vgpu_gem_release() 190 gem_obj->base.dma_buf = NULL; in vgpu_gem_release() 195 gem_obj->base.dma_buf = NULL; in vgpu_gem_release()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | i915_drv.h | 1893 struct dma_buf *i915_gem_prime_export(struct drm_gem_object *gem_obj, int flags);
|
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/ |
D | 0038_linux_drivers_mxc.patch | 149283 +void viv_gem_free_object(struct drm_gem_object *gem_obj); 149284 +struct dma_buf *viv_gem_prime_export(struct drm_gem_object *gem_obj, int flags); 149293 +struct dma_buf *viv_gem_prime_export(struct drm_gem_object *gem_obj, 149296 + struct drm_device *drm = gem_obj->dev; 149299 + struct drm_gem_object *gem_obj, 149303 + struct viv_gem_object *viv_obj = container_of(gem_obj, struct viv_gem_object, base); 149320 + struct drm_gem_object *gem_obj = gcvNULL; 149349 + gem_obj = kzalloc(sizeof(struct viv_gem_object), GFP_KERNEL); 149350 + drm_gem_private_object_init(drm, gem_obj, dmabuf->size); 149352 + gem_obj->funcs = &viv_gem_object_funcs; [all …]
|
D | 0020_linux_drivers_gpu.patch | 16114 + struct drm_gem_object *gem_obj; 16135 + gem_obj = dcss_plane_gem_import(plane->dev, mdata->ts_dma_buf); 16136 + if (IS_ERR(gem_obj)) 16139 + caddr = to_drm_gem_cma_obj(gem_obj)->paddr; 16141 + /* release gem_obj */ 16142 + drm_gem_object_put(gem_obj); 21783 + struct drm_gem_object *gem_obj = NULL; 21793 + gem_obj = drm_gem_object_lookup(file, handle); 21794 + if (gem_obj == NULL) { 21798 + sgt = drm_gem_cma_prime_get_sg_table(gem_obj); [all …]
|
/kernel/linux/patches/linux-5.10/hispark_taurus_patch/ |
D | hispark_taurus.patch | 18612 + struct drm_gem_object *gem_obj = NULL; 18622 + gem_obj = drm_gem_object_lookup(file, handle); 18623 + if (gem_obj == NULL) { 18627 + sgt = drm_gem_cma_prime_get_sg_table(gem_obj); 18630 + drm_gem_object_put(gem_obj); 18635 + drm_gem_object_put(gem_obj); 18665 + struct drm_gem_object *gem_obj = NULL; 18682 + gem_obj = drm_gem_object_lookup(file_priv, args->handle); 18683 + if (gem_obj == NULL) { 18688 + sgt = drm_gem_cma_prime_get_sg_table(gem_obj); [all …]
|