/linux-5.19.10/drivers/gpu/drm/ |
D | drm_gem_cma_helper.c | 67 struct drm_gem_object *gem_obj; in __drm_gem_cma_create() local 71 gem_obj = drm->driver->gem_create_object(drm, size); in __drm_gem_cma_create() 72 if (IS_ERR(gem_obj)) in __drm_gem_cma_create() 73 return ERR_CAST(gem_obj); in __drm_gem_cma_create() 74 cma_obj = to_drm_gem_cma_obj(gem_obj); in __drm_gem_cma_create() 79 gem_obj = &cma_obj->base; in __drm_gem_cma_create() 82 if (!gem_obj->funcs) in __drm_gem_cma_create() 83 gem_obj->funcs = &drm_gem_cma_default_funcs; in __drm_gem_cma_create() 86 drm_gem_private_object_init(drm, gem_obj, size); in __drm_gem_cma_create() 91 ret = drm_gem_object_init(drm, gem_obj, size); in __drm_gem_cma_create() [all …]
|
/linux-5.19.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() 60 static int xen_drm_front_gem_object_mmap(struct drm_gem_object *gem_obj, in xen_drm_front_gem_object_mmap() argument 63 struct xen_gem_object *xen_obj = to_xen_gem_obj(gem_obj); in xen_drm_front_gem_object_mmap() 66 vma->vm_ops = gem_obj->funcs->vm_ops; in xen_drm_front_gem_object_mmap() 203 void xen_drm_front_gem_free_object_unlocked(struct drm_gem_object *gem_obj) in xen_drm_front_gem_free_object_unlocked() argument 205 struct xen_gem_object *xen_obj = to_xen_gem_obj(gem_obj); in xen_drm_front_gem_free_object_unlocked() 222 drm_gem_object_release(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() argument 228 struct xen_gem_object *xen_obj = to_xen_gem_obj(gem_obj); in xen_drm_front_gem_get_pages() [all …]
|
D | xen_drm_front_gem.h | 28 struct sg_table *xen_drm_front_gem_get_sg_table(struct drm_gem_object *gem_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.h | 128 static inline u64 xen_drm_front_dbuf_to_cookie(struct drm_gem_object *gem_obj) in xen_drm_front_dbuf_to_cookie() argument 130 return (uintptr_t)gem_obj; in xen_drm_front_dbuf_to_cookie()
|
D | xen_drm_front_kms.c | 60 struct drm_gem_object *gem_obj; in fb_create() local 67 gem_obj = fb->obj[0]; in fb_create() 70 xen_drm_front_dbuf_to_cookie(gem_obj), in fb_create()
|
/linux-5.19.10/drivers/gpu/drm/v3d/ |
D | v3d_bo.c | 198 struct drm_gem_object *gem_obj; in v3d_mmap_bo_ioctl() local 205 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in v3d_mmap_bo_ioctl() 206 if (!gem_obj) { in v3d_mmap_bo_ioctl() 211 args->offset = drm_vma_node_offset_addr(&gem_obj->vma_node); in v3d_mmap_bo_ioctl() 212 drm_gem_object_put(gem_obj); in v3d_mmap_bo_ioctl() 221 struct drm_gem_object *gem_obj; in v3d_get_bo_offset_ioctl() local 224 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in v3d_get_bo_offset_ioctl() 225 if (!gem_obj) { in v3d_get_bo_offset_ioctl() 229 bo = to_v3d_bo(gem_obj); in v3d_get_bo_offset_ioctl() 233 drm_gem_object_put(gem_obj); in v3d_get_bo_offset_ioctl()
|
D | v3d_drv.h | 352 void v3d_free_object(struct drm_gem_object *gem_obj);
|
/linux-5.19.10/drivers/gpu/drm/panfrost/ |
D | panfrost_drv.c | 310 struct drm_gem_object *gem_obj; in panfrost_ioctl_wait_bo() local 316 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in panfrost_ioctl_wait_bo() 317 if (!gem_obj) in panfrost_ioctl_wait_bo() 320 ret = dma_resv_wait_timeout(gem_obj->resv, DMA_RESV_USAGE_READ, in panfrost_ioctl_wait_bo() 325 drm_gem_object_put(gem_obj); in panfrost_ioctl_wait_bo() 334 struct drm_gem_object *gem_obj; in panfrost_ioctl_mmap_bo() local 342 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in panfrost_ioctl_mmap_bo() 343 if (!gem_obj) { in panfrost_ioctl_mmap_bo() 349 if (to_panfrost_bo(gem_obj)->is_heap) { in panfrost_ioctl_mmap_bo() 354 ret = drm_gem_create_mmap_offset(gem_obj); in panfrost_ioctl_mmap_bo() [all …]
|
/linux-5.19.10/drivers/gpu/drm/vc4/ |
D | vc4_bo.c | 130 static void vc4_bo_set_label(struct drm_gem_object *gem_obj, int label) in vc4_bo_set_label() argument 132 struct vc4_bo *bo = to_vc4_bo(gem_obj); in vc4_bo_set_label() 133 struct vc4_dev *vc4 = to_vc4_dev(gem_obj->dev); in vc4_bo_set_label() 139 vc4->bo_labels[label].size_allocated += gem_obj->size; in vc4_bo_set_label() 143 vc4->bo_labels[bo->label].size_allocated -= gem_obj->size; in vc4_bo_set_label() 809 struct drm_gem_object *gem_obj; in vc4_mmap_bo_ioctl() local 814 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in vc4_mmap_bo_ioctl() 815 if (!gem_obj) { in vc4_mmap_bo_ioctl() 821 args->offset = drm_vma_node_offset_addr(&gem_obj->vma_node); in vc4_mmap_bo_ioctl() 823 drm_gem_object_put(gem_obj); in vc4_mmap_bo_ioctl() [all …]
|
D | vc4_gem.c | 1124 struct drm_gem_object *gem_obj; in vc4_wait_bo_ioctl() local 1133 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in vc4_wait_bo_ioctl() 1134 if (!gem_obj) { in vc4_wait_bo_ioctl() 1138 bo = to_vc4_bo(gem_obj); in vc4_wait_bo_ioctl() 1143 drm_gem_object_put(gem_obj); in vc4_wait_bo_ioctl() 1362 struct drm_gem_object *gem_obj; in vc4_gem_madvise_ioctl() local 1380 gem_obj = drm_gem_object_lookup(file_priv, args->handle); in vc4_gem_madvise_ioctl() 1381 if (!gem_obj) { in vc4_gem_madvise_ioctl() 1386 bo = to_vc4_bo(gem_obj); in vc4_gem_madvise_ioctl() 1398 if (gem_obj->import_attach) { in vc4_gem_madvise_ioctl() [all …]
|
D | vc4_kms.c | 492 struct drm_gem_object *gem_obj; in vc4_fb_create() local 495 gem_obj = drm_gem_object_lookup(file_priv, in vc4_fb_create() 497 if (!gem_obj) { in vc4_fb_create() 502 bo = to_vc4_bo(gem_obj); in vc4_fb_create() 513 drm_gem_object_put(gem_obj); in vc4_fb_create()
|
/linux-5.19.10/include/drm/ |
D | drm_gem_ttm_helper.h | 15 #define drm_gem_ttm_of_gem(gem_obj) \ argument 16 container_of(gem_obj, struct ttm_buffer_object, base)
|
D | drm_gem_cma_helper.h | 32 #define to_drm_gem_cma_obj(gem_obj) \ argument 33 container_of(gem_obj, struct drm_gem_cma_object, base)
|
/linux-5.19.10/drivers/gpu/drm/i915/gem/ |
D | i915_gem_dmabuf.c | 216 struct dma_buf *i915_gem_prime_export(struct drm_gem_object *gem_obj, int flags) in i915_gem_prime_export() argument 218 struct drm_i915_gem_object *obj = to_intel_bo(gem_obj); in i915_gem_prime_export() 222 exp_info.size = gem_obj->size; in i915_gem_prime_export() 224 exp_info.priv = gem_obj; in i915_gem_prime_export() 233 return drm_gem_dmabuf_export(gem_obj->dev, &exp_info); in i915_gem_prime_export()
|
D | i915_gem_dmabuf.h | 16 struct dma_buf *i915_gem_prime_export(struct drm_gem_object *gem_obj, int flags);
|
D | i915_gem_object.c | 359 static void i915_gem_free_object(struct drm_gem_object *gem_obj) in i915_gem_free_object() argument 361 struct drm_i915_gem_object *obj = to_intel_bo(gem_obj); in i915_gem_free_object()
|
/linux-5.19.10/drivers/gpu/drm/rcar-du/ |
D | rcar_du_kms.c | 344 struct drm_gem_object *gem_obj; in rcar_du_gem_prime_import_sg_table() local 355 gem_obj = &cma_obj->base; in rcar_du_gem_prime_import_sg_table() 356 gem_obj->funcs = &rcar_du_gem_funcs; in rcar_du_gem_prime_import_sg_table() 358 drm_gem_private_object_init(dev, gem_obj, attach->dmabuf->size); in rcar_du_gem_prime_import_sg_table() 361 ret = drm_gem_create_mmap_offset(gem_obj); in rcar_du_gem_prime_import_sg_table() 363 drm_gem_object_release(gem_obj); in rcar_du_gem_prime_import_sg_table() 371 return gem_obj; in rcar_du_gem_prime_import_sg_table()
|
/linux-5.19.10/drivers/gpu/drm/vkms/ |
D | vkms_composer.c | 178 struct drm_gem_object *gem_obj = drm_gem_fb_get_obj(fb, 0); in compose_active_planes() local 183 *vaddr_out = kzalloc(gem_obj->size, GFP_KERNEL); in compose_active_planes() 195 memcpy(*vaddr_out, vaddr, gem_obj->size); in compose_active_planes()
|
/linux-5.19.10/drivers/gpu/drm/i915/gvt/ |
D | dmabuf.c | 167 static void vgpu_gem_release(struct drm_i915_gem_object *gem_obj) in vgpu_gem_release() argument 170 struct intel_vgpu_fb_info *fb_info = gem_obj->gvt_info; in vgpu_gem_release() 176 gem_obj->base.dma_buf = NULL; in vgpu_gem_release() 181 gem_obj->base.dma_buf = NULL; in vgpu_gem_release()
|