/drivers/gpu/drm/radeon/ |
D | radeon_gem.c | 32 void radeon_gem_object_free(struct drm_gem_object *gobj) in radeon_gem_object_free() argument 34 struct radeon_bo *robj = gem_to_radeon_bo(gobj); in radeon_gem_object_free() 92 static int radeon_gem_set_domain(struct drm_gem_object *gobj, in radeon_gem_set_domain() argument 100 robj = gem_to_radeon_bo(gobj); in radeon_gem_set_domain() 252 struct drm_gem_object *gobj; in radeon_gem_create_ioctl() local 261 false, &gobj); in radeon_gem_create_ioctl() 267 r = drm_gem_handle_create(filp, gobj, &handle); in radeon_gem_create_ioctl() 269 drm_gem_object_unreference_unlocked(gobj); in radeon_gem_create_ioctl() 285 struct drm_gem_object *gobj; in radeon_gem_userptr_ioctl() local 317 false, &gobj); in radeon_gem_userptr_ioctl() [all …]
|
D | radeon_fb.c | 90 static void radeonfb_destroy_pinned_object(struct drm_gem_object *gobj) in radeonfb_destroy_pinned_object() argument 92 struct radeon_bo *rbo = gem_to_radeon_bo(gobj); in radeonfb_destroy_pinned_object() 101 drm_gem_object_unreference_unlocked(gobj); in radeonfb_destroy_pinned_object() 109 struct drm_gem_object *gobj = NULL; in radeonfb_create_pinned_object() local 130 0, true, &gobj); in radeonfb_create_pinned_object() 136 rbo = gem_to_radeon_bo(gobj); in radeonfb_create_pinned_object() 181 *gobj_p = gobj; in radeonfb_create_pinned_object() 184 radeonfb_destroy_pinned_object(gobj); in radeonfb_create_pinned_object() 198 struct drm_gem_object *gobj = NULL; in radeonfb_create() local 214 ret = radeonfb_create_pinned_object(rfbdev, &mode_cmd, &gobj); in radeonfb_create() [all …]
|
D | radeon_prime.c | 120 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(dev, gobj, flags); in radeon_gem_prime_export()
|
D | radeon_cs.c | 120 p->relocs[i].gobj = drm_gem_object_lookup(ddev, p->filp, in radeon_cs_parser_relocs() 122 if (p->relocs[i].gobj == NULL) { in radeon_cs_parser_relocs() 128 p->relocs[i].robj = gem_to_radeon_bo(p->relocs[i].gobj); in radeon_cs_parser_relocs() 445 if (parser->relocs[i].gobj) in radeon_cs_parser_fini() 446 drm_gem_object_unreference_unlocked(parser->relocs[i].gobj); in radeon_cs_parser_fini()
|
D | radeon_vm.c | 141 list[0].gobj = NULL; in radeon_vm_get_bos() 155 list[idx].gobj = NULL; in radeon_vm_get_bos()
|
D | radeon_drv.c | 120 struct drm_gem_object *gobj,
|
D | radeon.h | 502 #define gem_to_radeon_bo(gobj) container_of((gobj), struct radeon_bo, gem_base) argument 1031 struct drm_gem_object *gobj; member
|
/drivers/gpu/drm/qxl/ |
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() 77 struct drm_gem_object *gobj; in qxl_gem_object_create_with_handle() local 86 &gobj); in qxl_gem_object_create_with_handle() 89 r = drm_gem_handle_create(file_priv, gobj, handle); in qxl_gem_object_create_with_handle() 93 *qobj = gem_to_qxl_bo(gobj); in qxl_gem_object_create_with_handle() 94 drm_gem_object_unreference_unlocked(gobj); in qxl_gem_object_create_with_handle()
|
D | qxl_dumb.c | 75 struct drm_gem_object *gobj; in qxl_mode_dumb_mmap() local 79 gobj = drm_gem_object_lookup(dev, file_priv, handle); in qxl_mode_dumb_mmap() 80 if (gobj == NULL) in qxl_mode_dumb_mmap() 82 qobj = gem_to_qxl_bo(gobj); in qxl_mode_dumb_mmap() 84 drm_gem_object_unreference_unlocked(gobj); in qxl_mode_dumb_mmap()
|
D | qxl_fb.c | 415 static void qxlfb_destroy_pinned_object(struct drm_gem_object *gobj) in qxlfb_destroy_pinned_object() argument 417 struct qxl_bo *qbo = gem_to_qxl_bo(gobj); in qxlfb_destroy_pinned_object() 426 drm_gem_object_unreference_unlocked(gobj); in qxlfb_destroy_pinned_object() 434 struct drm_gem_object *gobj = qdev->fbdev_qfb->obj; in qxl_get_handle_for_primary_fb() local 436 BUG_ON(!gobj); in qxl_get_handle_for_primary_fb() 438 r = drm_gem_handle_create(file_priv, gobj, handle); in qxl_get_handle_for_primary_fb() 449 struct drm_gem_object *gobj = NULL; in qxlfb_create_pinned_object() local 468 &gobj); in qxlfb_create_pinned_object() 474 qbo = gem_to_qxl_bo(gobj); in qxlfb_create_pinned_object() 493 *gobj_p = gobj; in qxlfb_create_pinned_object() [all …]
|
D | qxl_ioctl.c | 114 struct drm_gem_object *gobj; in qxlhw_handle_to_bo() local 118 gobj = drm_gem_object_lookup(qdev->ddev, file_priv, handle); in qxlhw_handle_to_bo() 119 if (!gobj) in qxlhw_handle_to_bo() 122 qobj = gem_to_qxl_bo(gobj); in qxlhw_handle_to_bo() 126 drm_gem_object_unreference_unlocked(gobj); in qxlhw_handle_to_bo() 324 struct drm_gem_object *gobj = NULL; in qxl_update_area_ioctl() local 331 gobj = drm_gem_object_lookup(dev, file, update_area->handle); in qxl_update_area_ioctl() 332 if (gobj == NULL) in qxl_update_area_ioctl() 335 qobj = gem_to_qxl_bo(gobj); in qxl_update_area_ioctl() 360 drm_gem_object_unreference_unlocked(gobj); in qxl_update_area_ioctl()
|
D | qxl_drv.h | 121 #define gem_to_qxl_bo(gobj) container_of((gobj), struct qxl_bo, gem_base) argument 421 void qxl_gem_object_free(struct drm_gem_object *gobj);
|
D | qxl_display.c | 1011 struct drm_gem_object *gobj; in qxl_create_monitors_object() local 1018 false, false, NULL, &gobj); in qxl_create_monitors_object() 1023 qdev->monitors_config_bo = gem_to_qxl_bo(gobj); in qxl_create_monitors_object()
|
/drivers/gpu/drm/bochs/ |
D | bochs_fbdev.c | 29 struct drm_gem_object *gobj; in bochsfb_create_object() local 34 ret = bochs_gem_create(dev, size, true, &gobj); in bochsfb_create_object() 38 *gobj_p = gobj; in bochsfb_create_object() 52 struct drm_gem_object *gobj = NULL; in bochsfb_create() local 67 ret = bochsfb_create_object(bochs, &mode_cmd, &gobj); in bochsfb_create() 73 bo = gem_to_bochs_bo(gobj); in bochsfb_create() 103 ret = bochs_framebuffer_init(bochs->dev, &bochs->fb.gfb, &mode_cmd, gobj); in bochsfb_create()
|
D | bochs_mm.c | 413 struct drm_gem_object *gobj; in bochs_dumb_create() local 421 &gobj); in bochs_dumb_create() 425 ret = drm_gem_handle_create(file, gobj, &handle); in bochs_dumb_create() 426 drm_gem_object_unreference_unlocked(gobj); in bochs_dumb_create()
|
/drivers/gpu/drm/mgag200/ |
D | mgag200_fb.c | 146 struct drm_gem_object *gobj; in mgag200fb_create_object() local 150 ret = mgag200_gem_create(dev, size, true, &gobj); in mgag200fb_create_object() 154 *gobj_p = gobj; in mgag200fb_create_object() 168 struct drm_gem_object *gobj = NULL; in mgag200fb_create() local 183 ret = mgag200fb_create_object(mfbdev, &mode_cmd, &gobj); in mgag200fb_create() 188 bo = gem_to_mga_bo(gobj); in mgag200fb_create() 200 ret = mgag200_framebuffer_init(dev, &mfbdev->mfb, &mode_cmd, gobj); in mgag200fb_create()
|
D | mgag200_main.c | 298 struct drm_gem_object *gobj; in mgag200_dumb_create() local 305 &gobj); in mgag200_dumb_create() 309 ret = drm_gem_handle_create(file, gobj, &handle); in mgag200_dumb_create() 310 drm_gem_object_unreference_unlocked(gobj); in mgag200_dumb_create()
|
D | mgag200_drv.h | 230 #define gem_to_mga_bo(gobj) container_of((gobj), struct mgag200_bo, gem) argument
|
/drivers/gpu/drm/cirrus/ |
D | cirrus_fbdev.c | 144 struct drm_gem_object *gobj; in cirrusfb_create_object() local 152 ret = cirrus_gem_create(dev, size, true, &gobj); in cirrusfb_create_object() 156 *gobj_p = gobj; in cirrusfb_create_object() 172 struct drm_gem_object *gobj = NULL; in cirrusfb_create() local 183 ret = cirrusfb_create_object(gfbdev, &mode_cmd, &gobj); in cirrusfb_create() 189 bo = gem_to_cirrus_bo(gobj); in cirrusfb_create() 201 ret = cirrus_framebuffer_init(cdev->dev, &gfbdev->gfb, &mode_cmd, gobj); in cirrusfb_create()
|
D | cirrus_main.c | 238 struct drm_gem_object *gobj; in cirrus_dumb_create() local 245 &gobj); in cirrus_dumb_create() 249 ret = drm_gem_handle_create(file, gobj, &handle); in cirrus_dumb_create() 250 drm_gem_object_unreference_unlocked(gobj); in cirrus_dumb_create()
|
D | cirrus_drv.h | 171 #define gem_to_cirrus_bo(gobj) container_of((gobj), struct cirrus_bo, gem) argument
|
/drivers/gpu/drm/ast/ |
D | ast_fb.c | 172 struct drm_gem_object *gobj; in astfb_create_object() local 178 ret = ast_gem_create(dev, size, true, &gobj); in astfb_create_object() 182 *gobj_p = gobj; in astfb_create_object() 198 struct drm_gem_object *gobj = NULL; in astfb_create() local 209 ret = astfb_create_object(afbdev, &mode_cmd, &gobj); in astfb_create() 214 bo = gem_to_ast_bo(gobj); in astfb_create() 227 ret = ast_framebuffer_init(dev, &afbdev->afb, &mode_cmd, gobj); in astfb_create()
|
D | ast_main.c | 526 struct drm_gem_object *gobj; in ast_dumb_create() local 533 &gobj); in ast_dumb_create() 537 ret = drm_gem_handle_create(file, gobj, &handle); in ast_dumb_create() 538 drm_gem_object_unreference_unlocked(gobj); in ast_dumb_create()
|
D | ast_drv.h | 327 #define gem_to_ast_bo(gobj) container_of((gobj), struct ast_bo, gem) argument
|
/drivers/gpu/drm/udl/ |
D | udl_gem.c | 196 struct udl_gem_object *gobj; in udl_gem_mmap() local 206 gobj = to_udl_bo(obj); in udl_gem_mmap() 208 ret = udl_gem_get_pages(gobj); in udl_gem_mmap() 215 *offset = drm_vma_node_offset_addr(&gobj->base.vma_node); in udl_gem_mmap() 218 drm_gem_object_unreference(&gobj->base); in udl_gem_mmap()
|