Home
last modified time | relevance | path

Searched refs:gobj (Results 1 – 24 of 24) sorted by relevance

/linux/drivers/gpu/drm/tests/
H A Ddrm_exec_test.c55 struct drm_gem_object gobj = { }; in test_lock() local
59 drm_gem_private_object_init(priv->drm, &gobj, PAGE_SIZE); in test_lock()
63 ret = drm_exec_lock_obj(&exec, &gobj); in test_lock()
75 struct drm_gem_object gobj = { }; in test_lock_unlock() local
79 drm_gem_private_object_init(priv->drm, &gobj, PAGE_SIZE); in test_lock_unlock()
83 ret = drm_exec_lock_obj(&exec, &gobj); in test_lock_unlock()
89 drm_exec_unlock_obj(&exec, &gobj); in test_lock_unlock()
90 ret = drm_exec_lock_obj(&exec, &gobj); in test_lock_unlock()
102 struct drm_gem_object gobj = { }; in test_duplicates() local
106 drm_gem_private_object_init(priv->drm, &gobj, PAGE_SIZE); in test_duplicates()
[all …]
/linux/drivers/accel/amdxdna/
H A Damdxdna_gem.c424 static void amdxdna_gem_dev_obj_free(struct drm_gem_object *gobj) in amdxdna_gem_dev_obj_free() argument
426 struct amdxdna_dev *xdna = to_xdna_dev(gobj->dev); in amdxdna_gem_dev_obj_free()
427 struct amdxdna_gem_obj *abo = to_xdna_obj(gobj); in amdxdna_gem_dev_obj_free()
435 drm_gem_object_release(gobj); in amdxdna_gem_dev_obj_free()
500 static int amdxdna_gem_obj_mmap(struct drm_gem_object *gobj, in amdxdna_gem_obj_mmap() argument
503 struct amdxdna_dev *xdna = to_xdna_dev(gobj->dev); in amdxdna_gem_obj_mmap()
504 struct amdxdna_gem_obj *abo = to_xdna_obj(gobj); in amdxdna_gem_obj_mmap()
518 drm_vma_node_offset_addr(&gobj->vma_node), abo->type, in amdxdna_gem_obj_mmap()
519 vma->vm_start, gobj->size); in amdxdna_gem_obj_mmap()
529 struct drm_gem_object *gobj = dma_buf->priv; in amdxdna_gem_dmabuf_mmap() local
[all …]
H A Damdxdna_ctx.c418 struct drm_gem_object *gobj; in amdxdna_hwctx_sync_debug_bo() local
424 gobj = drm_gem_object_lookup(client->filp, debug_bo_hdl); in amdxdna_hwctx_sync_debug_bo()
425 if (!gobj) in amdxdna_hwctx_sync_debug_bo()
434 abo = to_xdna_obj(gobj); in amdxdna_hwctx_sync_debug_bo()
450 drm_gem_object_put(gobj); in amdxdna_hwctx_sync_debug_bo()
533 struct drm_gem_object *gobj; in amdxdna_arg_bos_lookup() local
540 gobj = drm_gem_object_lookup(client->filp, bo_hdls[i]); in amdxdna_arg_bos_lookup()
541 if (!gobj) { in amdxdna_arg_bos_lookup()
545 abo = to_xdna_obj(gobj); in amdxdna_arg_bos_lookup()
550 job->bos[i] = gobj; in amdxdna_arg_bos_lookup()
[all …]
H A Damdxdna_gem.h65 static inline struct amdxdna_gem_obj *to_xdna_obj(struct drm_gem_object *gobj) in to_xdna_obj() argument
67 return container_of(gobj, struct amdxdna_gem_obj, base.base); in to_xdna_obj()
H A Daie2_message.c499 struct drm_gem_object *gobj; in aie2_config_cu() local
520 gobj = drm_gem_object_lookup(hwctx->client->filp, cu->cu_bo); in aie2_config_cu()
521 if (!gobj) { in aie2_config_cu()
525 abo = to_xdna_obj(gobj); in aie2_config_cu()
528 drm_gem_object_put(gobj); in aie2_config_cu()
538 drm_gem_object_put(gobj); in aie2_config_cu()
H A Daie2_ctx.c1233 struct drm_gem_object *gobj = to_gobj(abo); in aie2_hmm_invalidate() local
1236 ret = dma_resv_wait_timeout(gobj->resv, DMA_RESV_USAGE_BOOKKEEP, in aie2_hmm_invalidate()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gem.c159 static void amdgpu_gem_object_free(struct drm_gem_object *gobj) in amdgpu_gem_object_free() argument
161 struct amdgpu_bo *aobj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_object_free()
210 struct drm_gem_object *gobj; in amdgpu_gem_force_release() local
215 idr_for_each_entry(&file->object_idr, gobj, handle) { in amdgpu_gem_force_release()
217 drm_gem_object_put(gobj); in amdgpu_gem_force_release()
432 struct drm_gem_object *gobj; in amdgpu_gem_create_ioctl() local
479 flags, ttm_bo_type_device, resv, &gobj, fpriv->xcp_id + 1); in amdgpu_gem_create_ioctl()
496 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl()
505 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_create_ioctl()
507 drm_gem_object_put(gobj); in amdgpu_gem_create_ioctl()
[all …]
H A Damdgpu_bo_list.c91 struct drm_gem_object *gobj; in amdgpu_bo_list_create() local
95 gobj = drm_gem_object_lookup(filp, info[i].bo_handle); in amdgpu_bo_list_create()
96 if (!gobj) { in amdgpu_bo_list_create()
101 bo = amdgpu_bo_ref(gem_to_amdgpu_bo(gobj)); in amdgpu_bo_list_create()
102 drm_gem_object_put(gobj); in amdgpu_bo_list_create()
H A Damdgpu_dma_buf.h28 struct dma_buf *amdgpu_gem_prime_export(struct drm_gem_object *gobj,
H A Damdgpu_amdkfd_gpuvm.c841 struct drm_gem_object *gobj; in kfd_mem_attach_dmabuf() local
848 gobj = amdgpu_gem_prime_import(adev_to_drm(adev), mem->dmabuf); in kfd_mem_attach_dmabuf()
849 if (IS_ERR(gobj)) in kfd_mem_attach_dmabuf()
850 return PTR_ERR(gobj); in kfd_mem_attach_dmabuf()
852 *bo = gem_to_amdgpu_bo(gobj); in kfd_mem_attach_dmabuf()
1720 struct drm_gem_object *gobj = NULL; in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() local
1814 bo_type, NULL, &gobj, xcp_id + 1); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1820 ret = drm_vma_node_allow(&gobj->vma_node, drm_priv); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1825 ret = drm_gem_handle_create(adev->kfd.client.file, gobj, &(*mem)->gem_handle); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1828 bo = gem_to_amdgpu_bo(gobj); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
[all …]
H A Damdgpu_cs.c138 struct drm_gem_object *gobj; in amdgpu_cs_p1_user_fence() local
141 gobj = drm_gem_object_lookup(p->filp, data->handle); in amdgpu_cs_p1_user_fence()
142 if (gobj == NULL) in amdgpu_cs_p1_user_fence()
145 p->uf_bo = amdgpu_bo_ref(gem_to_amdgpu_bo(gobj)); in amdgpu_cs_p1_user_fence()
146 drm_gem_object_put(gobj); in amdgpu_cs_p1_user_fence()
1295 struct drm_gem_object *gobj; in amdgpu_cs_submit() local
1346 drm_exec_for_each_locked_object(&p->exec, gobj) { in amdgpu_cs_submit()
1348 ttm_bo_move_to_lru_tail_unlocked(&gem_to_amdgpu_bo(gobj)->tbo); in amdgpu_cs_submit()
1355 dma_resv_add_fence(gobj->resv, in amdgpu_cs_submit()
1361 dma_resv_add_fence(gobj->resv, p->fence, DMA_RESV_USAGE_WRITE); in amdgpu_cs_submit()
H A Damdgpu_userq.c440 struct drm_gem_object *gobj; in amdgpu_userq_get_doorbell_index() local
444 gobj = drm_gem_object_lookup(filp, db_info->doorbell_handle); in amdgpu_userq_get_doorbell_index()
445 if (gobj == NULL) { in amdgpu_userq_get_doorbell_index()
450 db_obj->obj = amdgpu_bo_ref(gem_to_amdgpu_bo(gobj)); in amdgpu_userq_get_doorbell_index()
451 drm_gem_object_put(gobj); in amdgpu_userq_get_doorbell_index()
H A Damdgpu_ttm.c724 struct drm_gem_object *gobj; member
947 attach = gtt->gobj->import_attach; in amdgpu_ttm_backend_bind()
1065 } else if (ttm->sg && drm_gem_is_imported(gtt->gobj)) { in amdgpu_ttm_backend_unbind()
1068 attach = gtt->gobj->import_attach; in amdgpu_ttm_backend_unbind()
1196 gtt->gobj = &bo->base; in amdgpu_ttm_tt_create()
H A Damdgpu_vm.c1304 struct drm_gem_object *gobj = dma_buf->priv; in amdgpu_vm_bo_update() local
1305 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_vm_bo_update()
1309 bo = gem_to_amdgpu_bo(gobj); in amdgpu_vm_bo_update()
/linux/drivers/gpu/drm/qxl/
H A Dqxl_dumb.c37 struct drm_gem_object *gobj; in qxl_mode_dumb_create() local
66 args->size, &surf, &gobj, in qxl_mode_dumb_create()
70 qobj = gem_to_qxl_bo(gobj); in qxl_mode_dumb_create()
72 drm_gem_object_put(gobj); in qxl_mode_dumb_create()
H A Dqxl_drv.h94 #define gem_to_qxl_bo(gobj) container_of((gobj), struct qxl_bo, tbo.base) argument
310 struct drm_gem_object **gobj,
312 void qxl_gem_object_free(struct drm_gem_object *gobj);
/linux/drivers/media/mc/
H A Dmc-entity.c93 static void dev_dbg_obj(const char *event_name, struct media_gobj *gobj) in dev_dbg_obj() argument
96 switch (media_type(gobj)) { in dev_dbg_obj()
98 dev_dbg(gobj->mdev->dev, in dev_dbg_obj()
100 event_name, media_id(gobj), in dev_dbg_obj()
101 gobj_to_entity(gobj)->name); in dev_dbg_obj()
105 struct media_link *link = gobj_to_link(gobj); in dev_dbg_obj()
107 dev_dbg(gobj->mdev->dev, in dev_dbg_obj()
109 event_name, media_id(gobj), link_type_name(link), in dev_dbg_obj()
116 struct media_pad *pad = gobj_to_pad(gobj); in dev_dbg_obj()
118 dev_dbg(gobj->mdev->dev, in dev_dbg_obj()
[all …]
/linux/drivers/gpu/drm/radeon/
H A Dradeon_prime.c94 struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj, in radeon_gem_prime_export() argument
97 struct radeon_bo *bo = gem_to_radeon_bo(gobj); in radeon_gem_prime_export()
100 return drm_gem_prime_export(gobj, flags); in radeon_gem_prime_export()
H A Dradeon_prime.h29 struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj,
H A Dradeon_cs.c105 struct drm_gem_object *gobj; in radeon_cs_parser_relocs() local
109 gobj = drm_gem_object_lookup(p->filp, r->handle); in radeon_cs_parser_relocs()
110 if (gobj == NULL) { in radeon_cs_parser_relocs()
115 p->relocs[i].robj = gem_to_radeon_bo(gobj); in radeon_cs_parser_relocs()
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_gem.h40 struct dma_buf *nouveau_gem_prime_export(struct drm_gem_object *gobj,
/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_gem.c65 struct drm_gem_object *gobj; in virtio_gpu_mode_dumb_create() local
90 ret = virtio_gpu_gem_create(file_priv, dev, &params, &gobj, in virtio_gpu_mode_dumb_create()
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_bo.c645 struct drm_gem_object *gobj; in vmw_user_bo_lookup() local
647 gobj = drm_gem_object_lookup(filp, handle); in vmw_user_bo_lookup()
648 if (!gobj) { in vmw_user_bo_lookup()
654 *out = to_vmw_bo(gobj); in vmw_user_bo_lookup()
/linux/drivers/gpu/drm/armada/
H A Darmada_gem.c23 struct drm_gem_object *gobj = vmf->vma->vm_private_data; in armada_gem_vm_fault() local
24 struct armada_gem_object *obj = drm_to_armada_gem(gobj); in armada_gem_vm_fault()