Home
last modified time | relevance | path

Searched refs:gem_obj (Results 1 – 19 of 19) sorted by relevance

/linux-5.19.10/drivers/gpu/drm/
Ddrm_gem_cma_helper.c67 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/
Dxen_drm_front_gem.c40 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 …]
Dxen_drm_front_gem.h28 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,
Dxen_drm_front.h128 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()
Dxen_drm_front_kms.c60 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/
Dv3d_bo.c198 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()
Dv3d_drv.h352 void v3d_free_object(struct drm_gem_object *gem_obj);
/linux-5.19.10/drivers/gpu/drm/panfrost/
Dpanfrost_drv.c310 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/
Dvc4_bo.c130 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 …]
Dvc4_gem.c1124 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 …]
Dvc4_kms.c492 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/
Ddrm_gem_ttm_helper.h15 #define drm_gem_ttm_of_gem(gem_obj) \ argument
16 container_of(gem_obj, struct ttm_buffer_object, base)
Ddrm_gem_cma_helper.h32 #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/
Di915_gem_dmabuf.c216 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()
Di915_gem_dmabuf.h16 struct dma_buf *i915_gem_prime_export(struct drm_gem_object *gem_obj, int flags);
Di915_gem_object.c359 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/
Drcar_du_kms.c344 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/
Dvkms_composer.c178 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/
Ddmabuf.c167 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()