Home
last modified time | relevance | path

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

12

/Linux-v5.10/drivers/gpu/drm/radeon/
Dradeon_gem.c38 void radeon_gem_object_free(struct drm_gem_object *gobj) in radeon_gem_object_free() argument
40 struct radeon_bo *robj = gem_to_radeon_bo(gobj); in radeon_gem_object_free()
97 static int radeon_gem_set_domain(struct drm_gem_object *gobj, in radeon_gem_set_domain() argument
105 robj = gem_to_radeon_bo(gobj); in radeon_gem_set_domain()
261 struct drm_gem_object *gobj; in radeon_gem_create_ioctl() local
270 false, &gobj); in radeon_gem_create_ioctl()
276 r = drm_gem_handle_create(filp, gobj, &handle); in radeon_gem_create_ioctl()
278 drm_gem_object_put(gobj); in radeon_gem_create_ioctl()
295 struct drm_gem_object *gobj; in radeon_gem_userptr_ioctl() local
329 false, &gobj); in radeon_gem_userptr_ioctl()
[all …]
Dradeon_fb.c111 static void radeonfb_destroy_pinned_object(struct drm_gem_object *gobj) in radeonfb_destroy_pinned_object() argument
113 struct radeon_bo *rbo = gem_to_radeon_bo(gobj); in radeonfb_destroy_pinned_object()
122 drm_gem_object_put(gobj); in radeonfb_destroy_pinned_object()
131 struct drm_gem_object *gobj = NULL; in radeonfb_create_pinned_object() local
153 0, true, &gobj); in radeonfb_create_pinned_object()
158 rbo = gem_to_radeon_bo(gobj); in radeonfb_create_pinned_object()
203 *gobj_p = gobj; in radeonfb_create_pinned_object()
206 radeonfb_destroy_pinned_object(gobj); in radeonfb_create_pinned_object()
220 struct drm_gem_object *gobj = NULL; in radeonfb_create() local
235 ret = radeonfb_create_pinned_object(rfbdev, &mode_cmd, &gobj); in radeonfb_create()
[all …]
Dradeon_prime.c120 struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj, in radeon_gem_prime_export() argument
123 struct radeon_bo *bo = gem_to_radeon_bo(gobj); in radeon_gem_prime_export()
126 return drm_gem_prime_export(gobj, flags); in radeon_gem_prime_export()
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()
Dradeon_drv.c132 struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj,
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gem.c41 void amdgpu_gem_object_free(struct drm_gem_object *gobj) in amdgpu_gem_object_free() argument
43 struct amdgpu_bo *robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_object_free()
88 struct drm_gem_object *gobj; in amdgpu_gem_force_release() local
93 idr_for_each_entry(&file->object_idr, gobj, handle) { in amdgpu_gem_force_release()
95 drm_gem_object_put(gobj); in amdgpu_gem_force_release()
213 struct drm_gem_object *gobj; in amdgpu_gem_create_ioctl() local
262 flags, ttm_bo_type_device, resv, &gobj); in amdgpu_gem_create_ioctl()
282 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl()
291 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_create_ioctl()
293 drm_gem_object_put(gobj); in amdgpu_gem_create_ioctl()
[all …]
Damdgpu_fb.c106 static void amdgpufb_destroy_pinned_object(struct drm_gem_object *gobj) in amdgpufb_destroy_pinned_object() argument
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_kernel, 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
219 ret = amdgpufb_create_pinned_object(rfbdev, &mode_cmd, &gobj); in amdgpufb_create()
[all …]
Damdgpu_dma_buf.c426 struct dma_buf *amdgpu_gem_prime_export(struct drm_gem_object *gobj, in amdgpu_gem_prime_export() argument
429 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_prime_export()
436 buf = drm_gem_prime_export(gobj, flags); in amdgpu_gem_prime_export()
462 struct drm_gem_object *gobj; in amdgpu_dma_buf_create_obj() local
475 0, ttm_bo_type_sg, resv, &gobj); in amdgpu_dma_buf_create_obj()
479 bo = gem_to_amdgpu_bo(gobj); in amdgpu_dma_buf_create_obj()
486 return gobj; in amdgpu_dma_buf_create_obj()
618 struct drm_gem_object *gobj; in amdgpu_dmabuf_is_xgmi_accessible() local
627 gobj = dma_buf->priv; in amdgpu_dmabuf_is_xgmi_accessible()
628 bo = gem_to_amdgpu_bo(gobj); in amdgpu_dmabuf_is_xgmi_accessible()
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()
Damdgpu_gem.h34 #define gem_to_amdgpu_bo(gobj) container_of((gobj), struct amdgpu_bo, tbo.base) argument
Damdgpu_dma_buf.h28 struct dma_buf *amdgpu_gem_prime_export(struct drm_gem_object *gobj,
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()
Damdgpu_ttm.c815 struct drm_gem_object *gobj; member
1305 gtt->gobj = &bo->base; in amdgpu_ttm_tt_create()
1344 attach = gtt->gobj->import_attach; in amdgpu_ttm_tt_populate()
1388 if (ttm->sg && gtt->gobj->import_attach) { in amdgpu_ttm_tt_unpopulate()
1391 attach = gtt->gobj->import_attach; in amdgpu_ttm_tt_unpopulate()
Damdgpu_vm.c1798 struct drm_gem_object *gobj = dma_buf->priv; in amdgpu_vm_bo_update() local
1799 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_vm_bo_update()
1802 bo = gem_to_amdgpu_bo(gobj); in amdgpu_vm_bo_update()
/Linux-v5.10/drivers/gpu/drm/qxl/
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()
Dqxl_dumb.c77 struct drm_gem_object *gobj; in qxl_mode_dumb_mmap() local
81 gobj = drm_gem_object_lookup(file_priv, handle); in qxl_mode_dumb_mmap()
82 if (gobj == NULL) in qxl_mode_dumb_mmap()
84 qobj = gem_to_qxl_bo(gobj); in qxl_mode_dumb_mmap()
86 drm_gem_object_put(gobj); in qxl_mode_dumb_mmap()
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()
311 struct drm_gem_object *gobj = NULL; in qxl_update_area_ioctl() local
319 gobj = drm_gem_object_lookup(file, update_area->handle); in qxl_update_area_ioctl()
320 if (gobj == NULL) in qxl_update_area_ioctl()
323 qobj = gem_to_qxl_bo(gobj); in qxl_update_area_ioctl()
347 drm_gem_object_put(gobj); in qxl_update_area_ioctl()
Dqxl_drv.h97 #define gem_to_qxl_bo(gobj) container_of((gobj), struct qxl_bo, tbo.base) argument
334 void qxl_gem_object_free(struct drm_gem_object *gobj);
Dqxl_display.c1140 struct drm_gem_object *gobj; in qxl_create_monitors_object() local
1146 false, false, NULL, &gobj); in qxl_create_monitors_object()
1151 qdev->monitors_config_bo = gem_to_qxl_bo(gobj); in qxl_create_monitors_object()
/Linux-v5.10/include/media/
Dmedia-entity.h373 static inline enum media_gobj_type media_type(struct media_gobj *gobj) in media_type() argument
375 return gobj->id >> MEDIA_BITS_PER_ID; in media_type()
383 static inline u32 media_id(struct media_gobj *gobj) in media_id() argument
385 return gobj->id & MEDIA_ID_MASK; in media_id()
561 #define gobj_to_entity(gobj) \ argument
562 container_of(gobj, struct media_entity, graph_obj)
570 #define gobj_to_pad(gobj) \ argument
571 container_of(gobj, struct media_pad, graph_obj)
579 #define gobj_to_link(gobj) \ argument
580 container_of(gobj, struct media_link, graph_obj)
[all …]
/Linux-v5.10/drivers/media/mc/
Dmc-entity.c94 static void dev_dbg_obj(const char *event_name, struct media_gobj *gobj) in dev_dbg_obj() argument
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()
102 gobj_to_entity(gobj)->name); in dev_dbg_obj()
106 struct media_link *link = gobj_to_link(gobj); in dev_dbg_obj()
108 dev_dbg(gobj->mdev->dev, in dev_dbg_obj()
110 event_name, media_id(gobj), in dev_dbg_obj()
119 struct media_pad *pad = gobj_to_pad(gobj); in dev_dbg_obj()
121 dev_dbg(gobj->mdev->dev, in dev_dbg_obj()
[all …]
/Linux-v5.10/drivers/gpu/drm/virtio/
Dvirtgpu_gem.c68 struct drm_gem_object *gobj; in virtio_gpu_mode_dumb_create() local
85 ret = virtio_gpu_gem_create(file_priv, dev, &params, &gobj, in virtio_gpu_mode_dumb_create()
101 struct drm_gem_object *gobj; in virtio_gpu_mode_dumb_mmap() local
104 gobj = drm_gem_object_lookup(file_priv, handle); in virtio_gpu_mode_dumb_mmap()
105 if (gobj == NULL) in virtio_gpu_mode_dumb_mmap()
107 *offset_p = drm_vma_node_offset_addr(&gobj->vma_node); in virtio_gpu_mode_dumb_mmap()
108 drm_gem_object_put(gobj); in virtio_gpu_mode_dumb_mmap()
Dvirtgpu_ioctl.c293 struct drm_gem_object *gobj = NULL; in virtio_gpu_resource_info_ioctl() local
296 gobj = drm_gem_object_lookup(file, ri->bo_handle); in virtio_gpu_resource_info_ioctl()
297 if (gobj == NULL) in virtio_gpu_resource_info_ioctl()
300 qobj = gem_to_virtio_gpu_obj(gobj); in virtio_gpu_resource_info_ioctl()
304 drm_gem_object_put(gobj); in virtio_gpu_resource_info_ioctl()
Dvirtgpu_drv.h82 #define gem_to_virtio_gpu_obj(gobj) \ argument
83 container_of((gobj), struct virtio_gpu_object, base.base)
/Linux-v5.10/drivers/gpu/drm/armada/
Darmada_gem.c20 struct drm_gem_object *gobj = vmf->vma->vm_private_data; in armada_gem_vm_fault() local
21 struct armada_gem_object *obj = drm_to_armada_gem(gobj); in armada_gem_vm_fault()

12