| /linux/drivers/gpu/drm/qxl/ |
| H A D | qxl_dumb.c | 37 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 D | qxl_drv.h | 94 #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);
|
| H A D | qxl_display.c | 1220 struct drm_gem_object *gobj; in qxl_create_monitors_object() local 1227 false, false, NULL, &gobj); in qxl_create_monitors_object() 1232 qdev->monitors_config_bo = gem_to_qxl_bo(gobj); in qxl_create_monitors_object()
|
| /linux/drivers/media/mc/ |
| H A D | mc-entity.c | 93 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/accel/amdxdna/ |
| H A D | amdxdna_ctx.c | 379 struct drm_gem_object *gobj; in amdxdna_hwctx_sync_debug_bo() local 385 gobj = drm_gem_object_lookup(client->filp, debug_bo_hdl); in amdxdna_hwctx_sync_debug_bo() 386 if (!gobj) in amdxdna_hwctx_sync_debug_bo() 389 abo = to_xdna_obj(gobj); in amdxdna_hwctx_sync_debug_bo() 400 drm_gem_object_put(gobj); in amdxdna_hwctx_sync_debug_bo() 421 struct drm_gem_object *gobj; in amdxdna_arg_bos_lookup() local 428 gobj = drm_gem_object_lookup(client->filp, bo_hdls[i]); in amdxdna_arg_bos_lookup() 429 if (!gobj) { in amdxdna_arg_bos_lookup() 433 abo = to_xdna_obj(gobj); in amdxdna_arg_bos_lookup() 438 job->bos[i] = gobj; in amdxdna_arg_bos_lookup() [all …]
|
| H A D | aie2_message.c | 521 struct drm_gem_object *gobj; in aie2_config_cu() local 542 gobj = drm_gem_object_lookup(hwctx->client->filp, cu->cu_bo); in aie2_config_cu() 543 if (!gobj) { in aie2_config_cu() 547 abo = to_xdna_obj(gobj); in aie2_config_cu() 550 drm_gem_object_put(gobj); in aie2_config_cu() 560 drm_gem_object_put(gobj); in aie2_config_cu()
|
| H A D | aie2_ctx.c | 1126 struct drm_gem_object *gobj = to_gobj(abo); in aie2_hmm_invalidate() local 1129 ret = dma_resv_wait_timeout(gobj->resv, DMA_RESV_USAGE_BOOKKEEP, in aie2_hmm_invalidate()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_prime.c | 94 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 D | radeon_prime.h | 29 struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj,
|
| H A D | radeon_cs.c | 105 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/amd/amdgpu/ |
| H A D | amdgpu_bo_list.c | 91 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 D | amdgpu_amdkfd_gpuvm.c | 841 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 D | amdgpu_dma_buf.h | 28 struct dma_buf *amdgpu_gem_prime_export(struct drm_gem_object *gobj,
|
| H A D | amdgpu_ttm.c | 705 struct drm_gem_object *gobj; member 928 attach = gtt->gobj->import_attach; in amdgpu_ttm_backend_bind() 1046 } else if (ttm->sg && drm_gem_is_imported(gtt->gobj)) { in amdgpu_ttm_backend_unbind() 1049 attach = gtt->gobj->import_attach; in amdgpu_ttm_backend_unbind() 1177 gtt->gobj = &bo->base; in amdgpu_ttm_tt_create()
|
| /linux/drivers/gpu/drm/virtio/ |
| H A D | virtgpu_ioctl.c | 205 struct drm_gem_object *gobj = NULL; in virtio_gpu_resource_info_ioctl() local 208 gobj = drm_gem_object_lookup(file, ri->bo_handle); in virtio_gpu_resource_info_ioctl() 209 if (gobj == NULL) in virtio_gpu_resource_info_ioctl() 212 qobj = gem_to_virtio_gpu_obj(gobj); in virtio_gpu_resource_info_ioctl() 219 drm_gem_object_put(gobj); in virtio_gpu_resource_info_ioctl()
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_gem.h | 40 struct dma_buf *nouveau_gem_prime_export(struct drm_gem_object *gobj,
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_bo.c | 645 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 D | armada_gem.c | 23 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()
|