Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/radeon/
A Dradeon_gem.c341 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 Dradeon_fb.c114 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 Dradeon_prime.c113 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 Dradeon_prime.h29 struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj,
A Dradeon_cs.c106 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 Damdgpu_gem.c144 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 Damdgpu_fb.c108 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 Damdgpu_dma_buf.c302 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 Damdgpu_bo_list.c94 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 Damdgpu_gem.h34 #define gem_to_amdgpu_bo(gobj) container_of((gobj), struct amdgpu_bo, tbo.base) argument
A Damdgpu_amdkfd_gpuvm.c605 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 Damdgpu_dma_buf.h28 struct dma_buf *amdgpu_gem_prime_export(struct drm_gem_object *gobj,
A Damdgpu_cs.c45 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 Damdgpu_ttm.c642 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 Damdgpu_vm.c1901 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 Dqxl_gem.c31 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 Dqxl_ioctl.c117 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 Dqxl_drv.h98 #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 Dqxl_display.c1185 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 Dmedia-entity.h376 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 Dmc-entity.c97 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 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()
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 Dvirtgpu_ioctl.c372 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 Dvirtgpu_drv.h98 #define gem_to_virtio_gpu_obj(gobj) \ argument
99 container_of((gobj), struct virtio_gpu_object, base.base)
/linux/drivers/gpu/drm/armada/
A Darmada_gem.c22 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()

Completed in 69 milliseconds

12