/linux/drivers/gpu/drm/radeon/ |
A D | radeon_gem.c | 341 false, &gobj); in radeon_gem_create_ioctl() 400 false, &gobj); in radeon_gem_userptr_ioctl() 468 if (gobj == NULL) { in radeon_gem_set_domain_ioctl() 490 if (gobj == NULL) { in radeon_mode_dumb_mmap() 521 if (gobj == NULL) { in radeon_gem_busy_ioctl() 550 if (gobj == NULL) { in radeon_gem_wait_idle_ioctl() 581 if (gobj == NULL) in radeon_gem_set_tiling_ioctl() 599 if (gobj == NULL) in radeon_gem_get_tiling_ioctl() 734 if (gobj == NULL) { in radeon_gem_va_ioctl() 789 if (gobj == NULL) { in radeon_gem_op_ioctl() [all …]
|
A D | radeon_fb.c | 114 struct radeon_bo *rbo = gem_to_radeon_bo(gobj); in radeonfb_destroy_pinned_object() 123 drm_gem_object_put(gobj); in radeonfb_destroy_pinned_object() 132 struct drm_gem_object *gobj = NULL; in radeonfb_create_pinned_object() local 154 0, true, &gobj); in radeonfb_create_pinned_object() 159 rbo = gem_to_radeon_bo(gobj); in radeonfb_create_pinned_object() 204 *gobj_p = gobj; in radeonfb_create_pinned_object() 207 radeonfb_destroy_pinned_object(gobj); in radeonfb_create_pinned_object() 221 struct drm_gem_object *gobj = NULL; in radeonfb_create() local 236 ret = radeonfb_create_pinned_object(rfbdev, &mode_cmd, &gobj); in radeonfb_create() 242 rbo = gem_to_radeon_bo(gobj); in radeonfb_create() [all …]
|
A D | radeon_prime.c | 113 struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj, in radeon_gem_prime_export() argument 116 struct radeon_bo *bo = gem_to_radeon_bo(gobj); in radeon_gem_prime_export() 119 return drm_gem_prime_export(gobj, flags); in radeon_gem_prime_export()
|
A D | radeon_prime.h | 29 struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj,
|
A D | radeon_cs.c | 106 struct drm_gem_object *gobj; in radeon_cs_parser_relocs() local 110 gobj = drm_gem_object_lookup(p->filp, r->handle); in radeon_cs_parser_relocs() 111 if (gobj == NULL) { in radeon_cs_parser_relocs() 116 p->relocs[i].robj = gem_to_radeon_bo(gobj); in radeon_cs_parser_relocs()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_gem.c | 144 drm_gem_object_put(gobj); in amdgpu_gem_force_release() 371 drm_gem_object_put(gobj); in amdgpu_gem_create_ioctl() 455 drm_gem_object_put(gobj); in amdgpu_gem_userptr_ioctl() 468 if (gobj == NULL) { in amdgpu_mode_dumb_mmap() 478 drm_gem_object_put(gobj); in amdgpu_mode_dumb_mmap() 531 if (gobj == NULL) { in amdgpu_gem_wait_idle_ioctl() 547 drm_gem_object_put(gobj); in amdgpu_gem_wait_idle_ioctl() 561 if (gobj == NULL) in amdgpu_gem_metadata_ioctl() 734 if (gobj == NULL) in amdgpu_gem_va_ioctl() 744 gobj = NULL; in amdgpu_gem_va_ioctl() [all …]
|
A D | amdgpu_fb.c | 108 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpufb_destroy_pinned_object() 117 drm_gem_object_put(gobj); in amdgpufb_destroy_pinned_object() 126 struct drm_gem_object *gobj = NULL; in amdgpufb_create_pinned_object() local 149 ttm_bo_type_device, NULL, &gobj); in amdgpufb_create_pinned_object() 154 abo = gem_to_amdgpu_bo(gobj); in amdgpufb_create_pinned_object() 189 *gobj_p = gobj; in amdgpufb_create_pinned_object() 192 amdgpufb_destroy_pinned_object(gobj); in amdgpufb_create_pinned_object() 205 struct drm_gem_object *gobj = NULL; in amdgpufb_create() local 225 abo = gem_to_amdgpu_bo(gobj); in amdgpufb_create() 235 &mode_cmd, gobj); in amdgpufb_create() [all …]
|
A D | amdgpu_dma_buf.c | 302 struct dma_buf *amdgpu_gem_prime_export(struct drm_gem_object *gobj, in amdgpu_gem_prime_export() argument 305 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_prime_export() 312 buf = drm_gem_prime_export(gobj, flags); in amdgpu_gem_prime_export() 336 struct drm_gem_object *gobj; in amdgpu_dma_buf_create_obj() local 351 ttm_bo_type_sg, resv, &gobj); in amdgpu_dma_buf_create_obj() 355 bo = gem_to_amdgpu_bo(gobj); in amdgpu_dma_buf_create_obj() 360 return gobj; in amdgpu_dma_buf_create_obj() 492 struct drm_gem_object *gobj; in amdgpu_dmabuf_is_xgmi_accessible() local 501 gobj = dma_buf->priv; in amdgpu_dmabuf_is_xgmi_accessible() 502 bo = gem_to_amdgpu_bo(gobj); in amdgpu_dmabuf_is_xgmi_accessible()
|
A D | amdgpu_bo_list.c | 94 struct drm_gem_object *gobj; in amdgpu_bo_list_create() local 98 gobj = drm_gem_object_lookup(filp, info[i].bo_handle); in amdgpu_bo_list_create() 99 if (!gobj) { in amdgpu_bo_list_create() 104 bo = amdgpu_bo_ref(gem_to_amdgpu_bo(gobj)); in amdgpu_bo_list_create() 105 drm_gem_object_put(gobj); in amdgpu_bo_list_create()
|
A D | amdgpu_gem.h | 34 #define gem_to_amdgpu_bo(gobj) container_of((gobj), struct amdgpu_bo, tbo.base) argument
|
A D | amdgpu_amdkfd_gpuvm.c | 605 struct drm_gem_object *gobj; in kfd_mem_attach_userptr() local 616 &gobj); in kfd_mem_attach_userptr() 621 *bo = gem_to_amdgpu_bo(gobj); in kfd_mem_attach_userptr() 631 struct drm_gem_object *gobj; in kfd_mem_attach_dmabuf() local 646 if (IS_ERR(gobj)) in kfd_mem_attach_dmabuf() 647 return PTR_ERR(gobj); in kfd_mem_attach_dmabuf() 649 *bo = gem_to_amdgpu_bo(gobj); in kfd_mem_attach_dmabuf() 1467 bo_type, NULL, &gobj); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() 1478 bo = gem_to_amdgpu_bo(gobj); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() 1515 if (gobj) in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() [all …]
|
A D | amdgpu_dma_buf.h | 28 struct dma_buf *amdgpu_gem_prime_export(struct drm_gem_object *gobj,
|
A D | amdgpu_cs.c | 45 struct drm_gem_object *gobj; in amdgpu_cs_user_fence_chunk() local 50 gobj = drm_gem_object_lookup(p->filp, data->handle); in amdgpu_cs_user_fence_chunk() 51 if (gobj == NULL) in amdgpu_cs_user_fence_chunk() 54 bo = amdgpu_bo_ref(gem_to_amdgpu_bo(gobj)); in amdgpu_cs_user_fence_chunk() 60 drm_gem_object_put(gobj); in amdgpu_cs_user_fence_chunk()
|
A D | amdgpu_ttm.c | 642 struct drm_gem_object *gobj; member 908 attach = gtt->gobj->import_attach; in amdgpu_ttm_backend_bind() 1048 } else if (ttm->sg && gtt->gobj->import_attach) { in amdgpu_ttm_backend_unbind() 1051 attach = gtt->gobj->import_attach; in amdgpu_ttm_backend_unbind() 1101 gtt->gobj = &bo->base; in amdgpu_ttm_tt_create()
|
A D | amdgpu_vm.c | 1901 struct drm_gem_object *gobj = dma_buf->priv; in amdgpu_vm_bo_update() local 1902 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_vm_bo_update() 1905 bo = gem_to_amdgpu_bo(gobj); in amdgpu_vm_bo_update()
|
/linux/drivers/gpu/drm/qxl/ |
A D | qxl_gem.c | 31 void qxl_gem_object_free(struct drm_gem_object *gobj) in qxl_gem_object_free() argument 33 struct qxl_bo *qobj = gem_to_qxl_bo(gobj); in qxl_gem_object_free() 37 qdev = to_qxl(gobj->dev); in qxl_gem_object_free() 83 struct drm_gem_object *gobj; in qxl_gem_object_create_with_handle() local 92 &gobj); in qxl_gem_object_create_with_handle() 95 r = drm_gem_handle_create(file_priv, gobj, handle); in qxl_gem_object_create_with_handle() 99 *qobj = gem_to_qxl_bo(gobj); in qxl_gem_object_create_with_handle() 100 drm_gem_object_put(gobj); in qxl_gem_object_create_with_handle()
|
A D | qxl_ioctl.c | 117 struct drm_gem_object *gobj; in qxlhw_handle_to_bo() local 121 gobj = drm_gem_object_lookup(file_priv, handle); in qxlhw_handle_to_bo() 122 if (!gobj) in qxlhw_handle_to_bo() 125 qobj = gem_to_qxl_bo(gobj); in qxlhw_handle_to_bo() 128 drm_gem_object_put(gobj); in qxlhw_handle_to_bo() 310 struct drm_gem_object *gobj = NULL; in qxl_update_area_ioctl() local 318 gobj = drm_gem_object_lookup(file, update_area->handle); in qxl_update_area_ioctl() 319 if (gobj == NULL) in qxl_update_area_ioctl() 322 qobj = gem_to_qxl_bo(gobj); in qxl_update_area_ioctl() 346 drm_gem_object_put(gobj); in qxl_update_area_ioctl()
|
A D | qxl_drv.h | 98 #define gem_to_qxl_bo(gobj) container_of((gobj), struct qxl_bo, tbo.base) argument 323 void qxl_gem_object_free(struct drm_gem_object *gobj);
|
A D | qxl_display.c | 1185 struct drm_gem_object *gobj; in qxl_create_monitors_object() local 1192 false, false, NULL, &gobj); in qxl_create_monitors_object() 1197 qdev->monitors_config_bo = gem_to_qxl_bo(gobj); in qxl_create_monitors_object()
|
/linux/include/media/ |
A D | media-entity.h | 376 return gobj->id >> MEDIA_BITS_PER_ID; in media_type() 384 static inline u32 media_id(struct media_gobj *gobj) in media_id() argument 386 return gobj->id & MEDIA_ID_MASK; in media_id() 562 #define gobj_to_entity(gobj) \ argument 571 #define gobj_to_pad(gobj) \ argument 572 container_of(gobj, struct media_pad, graph_obj) 580 #define gobj_to_link(gobj) \ argument 581 container_of(gobj, struct media_link, graph_obj) 589 #define gobj_to_intf(gobj) \ argument 616 struct media_gobj *gobj); [all …]
|
/linux/drivers/media/mc/ |
A D | mc-entity.c | 97 switch (media_type(gobj)) { in dev_dbg_obj() 99 dev_dbg(gobj->mdev->dev, in dev_dbg_obj() 101 event_name, media_id(gobj), in dev_dbg_obj() 108 dev_dbg(gobj->mdev->dev, in dev_dbg_obj() 121 dev_dbg(gobj->mdev->dev, in dev_dbg_obj() 134 dev_dbg(gobj->mdev->dev, in dev_dbg_obj() 151 gobj->mdev = mdev; in media_gobj_create() 173 dev_dbg_obj(__func__, gobj); in media_gobj_create() 179 if (gobj->mdev == NULL) in media_gobj_destroy() 187 list_del(&gobj->list); in media_gobj_destroy() [all …]
|
/linux/drivers/gpu/drm/virtio/ |
A D | virtgpu_gem.c | 65 struct drm_gem_object *gobj; in virtio_gpu_mode_dumb_create() local 90 ret = virtio_gpu_gem_create(file_priv, dev, ¶ms, &gobj, in virtio_gpu_mode_dumb_create() 106 struct drm_gem_object *gobj; in virtio_gpu_mode_dumb_mmap() local 109 gobj = drm_gem_object_lookup(file_priv, handle); in virtio_gpu_mode_dumb_mmap() 110 if (gobj == NULL) in virtio_gpu_mode_dumb_mmap() 112 *offset_p = drm_vma_node_offset_addr(&gobj->vma_node); in virtio_gpu_mode_dumb_mmap() 113 drm_gem_object_put(gobj); in virtio_gpu_mode_dumb_mmap()
|
A D | virtgpu_ioctl.c | 372 struct drm_gem_object *gobj = NULL; in virtio_gpu_resource_info_ioctl() local 375 gobj = drm_gem_object_lookup(file, ri->bo_handle); in virtio_gpu_resource_info_ioctl() 376 if (gobj == NULL) in virtio_gpu_resource_info_ioctl() 379 qobj = gem_to_virtio_gpu_obj(gobj); in virtio_gpu_resource_info_ioctl() 386 drm_gem_object_put(gobj); in virtio_gpu_resource_info_ioctl()
|
A D | virtgpu_drv.h | 98 #define gem_to_virtio_gpu_obj(gobj) \ argument 99 container_of((gobj), struct virtio_gpu_object, base.base)
|
/linux/drivers/gpu/drm/armada/ |
A D | armada_gem.c | 22 struct drm_gem_object *gobj = vmf->vma->vm_private_data; in armada_gem_vm_fault() local 23 struct armada_gem_object *obj = drm_to_armada_gem(gobj); in armada_gem_vm_fault()
|