Home
last modified time | relevance | path

Searched refs:robj (Results 1 – 25 of 33) sorted by relevance

12

/linux/drivers/gpu/drm/radeon/
H A Dradeon_gem.c85 struct radeon_bo *robj = gem_to_radeon_bo(gobj); in radeon_gem_object_free() local
87 if (robj) { in radeon_gem_object_free()
88 radeon_mn_unregister(robj); in radeon_gem_object_free()
89 ttm_bo_put(&robj->tbo); in radeon_gem_object_free()
98 struct radeon_bo *robj; in radeon_gem_object_create() local
120 flags, NULL, NULL, &robj); in radeon_gem_object_create()
132 *obj = &robj->tbo.base; in radeon_gem_object_create()
133 robj->pid = task_pid_nr(current); in radeon_gem_object_create()
136 list_add_tail(&robj->list, &rdev->gem.objects); in radeon_gem_object_create()
145 struct radeon_bo *robj; in radeon_gem_set_domain() local
[all …]
H A Dradeon_gart.c132 if (rdev->gart.robj == NULL) { in radeon_gart_table_vram_alloc()
135 0, NULL, NULL, &rdev->gart.robj); in radeon_gart_table_vram_alloc()
157 r = radeon_bo_reserve(rdev->gart.robj, false); in radeon_gart_table_vram_pin()
160 r = radeon_bo_pin(rdev->gart.robj, in radeon_gart_table_vram_pin()
163 radeon_bo_unreserve(rdev->gart.robj); in radeon_gart_table_vram_pin()
166 r = radeon_bo_kmap(rdev->gart.robj, &rdev->gart.ptr); in radeon_gart_table_vram_pin()
168 radeon_bo_unpin(rdev->gart.robj); in radeon_gart_table_vram_pin()
169 radeon_bo_unreserve(rdev->gart.robj); in radeon_gart_table_vram_pin()
199 if (!rdev->gart.robj) in radeon_gart_table_vram_unpin()
202 r = radeon_bo_reserve(rdev->gart.robj, false); in radeon_gart_table_vram_unpin()
[all …]
H A Devergreen_cs.c1223 track->db_z_read_bo = reloc->robj; in evergreen_cs_handle_reg()
1235 track->db_z_write_bo = reloc->robj; in evergreen_cs_handle_reg()
1247 track->db_s_read_bo = reloc->robj; in evergreen_cs_handle_reg()
1259 track->db_s_write_bo = reloc->robj; in evergreen_cs_handle_reg()
1283 track->vgt_strmout_bo[tmp] = reloc->robj; in evergreen_cs_handle_reg()
1507 track->cb_color_fmask_bo[tmp] = reloc->robj; in evergreen_cs_handle_reg()
1524 track->cb_color_cmask_bo[tmp] = reloc->robj; in evergreen_cs_handle_reg()
1565 track->cb_color_bo[tmp] = reloc->robj; in evergreen_cs_handle_reg()
1581 track->cb_color_bo[tmp] = reloc->robj; in evergreen_cs_handle_reg()
1593 track->htile_bo = reloc->robj; in evergreen_cs_handle_reg()
[all …]
H A Dr100_track.h16 struct radeon_bo *robj; member
23 struct radeon_bo *robj; member
28 struct radeon_bo *robj; member
39 struct radeon_bo *robj; member
H A Dradeon_cursor.c287 struct radeon_bo *robj; in radeon_crtc_cursor_set2() local
309 robj = gem_to_radeon_bo(obj); in radeon_crtc_cursor_set2()
310 ret = radeon_bo_reserve(robj, false); in radeon_crtc_cursor_set2()
316 ret = radeon_bo_pin_restricted(robj, RADEON_GEM_DOMAIN_VRAM, in radeon_crtc_cursor_set2()
319 radeon_bo_unreserve(robj); in radeon_crtc_cursor_set2()
351 struct radeon_bo *robj = gem_to_radeon_bo(radeon_crtc->cursor_bo); in radeon_crtc_cursor_set2() local
352 ret = radeon_bo_reserve(robj, false); in radeon_crtc_cursor_set2()
354 radeon_bo_unpin(robj); in radeon_crtc_cursor_set2()
355 radeon_bo_unreserve(robj); in radeon_crtc_cursor_set2()
H A Dr600_cs.c1083 track->vgt_strmout_bo[tmp] = reloc->robj; in r600_cs_check_reg()
1210 track->cb_color_frag_bo[tmp] = reloc->robj; in r600_cs_check_reg()
1241 track->cb_color_tile_bo[tmp] = reloc->robj; in r600_cs_check_reg()
1281 track->cb_color_bo[tmp] = reloc->robj; in r600_cs_check_reg()
1294 track->db_bo = reloc->robj; in r600_cs_check_reg()
1307 track->htile_bo = reloc->robj; in r600_cs_check_reg()
1808 if ((tmp + size) > radeon_bo_size(reloc->robj)) { in r600_packet3_check()
1810 tmp + size, radeon_bo_size(reloc->robj)); in r600_packet3_check()
1838 if ((tmp + size) > radeon_bo_size(reloc->robj)) { in r600_packet3_check()
1840 tmp + size, radeon_bo_size(reloc->robj)); in r600_packet3_check()
[all …]
H A Dr200.c188 track->zb.robj = reloc->robj; in r200_packet0_check()
201 track->cb[0].robj = reloc->robj; in r200_packet0_check()
231 track->textures[i].robj = reloc->robj; in r200_packet0_check()
275 track->textures[i].cube_info[face - 1].robj = reloc->robj; in r200_packet0_check()
H A Dr100.c1363 track->arrays[i + 0].robj = reloc->robj; in r100_packet3_load_vbpntr()
1373 track->arrays[i + 1].robj = reloc->robj; in r100_packet3_load_vbpntr()
1387 track->arrays[i + 0].robj = reloc->robj; in r100_packet3_load_vbpntr()
1624 track->zb.robj = reloc->robj; in r100_packet0_check()
1637 track->cb[0].robj = reloc->robj; in r100_packet0_check()
1664 track->textures[i].robj = reloc->robj; in r100_packet0_check()
1682 track->textures[0].cube_info[i].robj = reloc->robj; in r100_packet0_check()
1700 track->textures[1].cube_info[i].robj = reloc->robj; in r100_packet0_check()
1718 track->textures[2].cube_info[i].robj = reloc->robj; in r100_packet0_check()
1923 struct radeon_bo *robj) in r100_cs_track_check_pkt3_indx_buffer() argument
[all …]
H A Dradeon_cs.c116 p->relocs[i].robj = gem_to_radeon_bo(gobj); in radeon_cs_parser_relocs()
162 if (radeon_ttm_tt_has_userptr(p->rdev, p->relocs[i].robj->tbo.ttm)) { in radeon_cs_parser_relocs()
176 if (p->relocs[i].robj->prime_shared_count) { in radeon_cs_parser_relocs()
185 p->relocs[i].tv.bo = &p->relocs[i].robj->tbo; in radeon_cs_parser_relocs()
259 resv = reloc->robj->tbo.base.resv; in radeon_cs_sync_rings()
404 if (la->robj->tbo.base.size > lb->robj->tbo.base.size) in cmp_size_smaller_first()
406 if (la->robj->tbo.base.size < lb->robj->tbo.base.size) in cmp_size_smaller_first()
447 struct radeon_bo *bo = parser->relocs[i].robj; in radeon_cs_parser_fini()
530 bo = p->relocs[i].robj; in radeon_bo_vm_update_pte()
H A Dradeon_device.c1577 struct radeon_bo *robj; in radeon_suspend_kms() local
1580 struct radeon_bo *robj = gem_to_radeon_bo(radeon_crtc->cursor_bo); in radeon_suspend_kms() local
1581 r = radeon_bo_reserve(robj, false); in radeon_suspend_kms()
1583 radeon_bo_unpin(robj); in radeon_suspend_kms()
1584 radeon_bo_unreserve(robj); in radeon_suspend_kms()
1591 robj = gem_to_radeon_bo(fb->obj[0]); in radeon_suspend_kms()
1593 if (!radeon_fbdev_robj_is_fb(rdev, robj)) { in radeon_suspend_kms()
1594 r = radeon_bo_reserve(robj, false); in radeon_suspend_kms()
1596 radeon_bo_unpin(robj); in radeon_suspend_kms()
1597 radeon_bo_unreserve(robj); in radeon_suspend_kms()
[all …]
H A Dr300.c134 if (rdev->gart.robj) { in rv370_pcie_gart_init()
157 if (rdev->gart.robj == NULL) { in rv370_pcie_gart_enable()
671 track->cb[i].robj = reloc->robj; in r300_packet0_check()
684 track->zb.robj = reloc->robj; in r300_packet0_check()
729 track->textures[i].robj = reloc->robj; in r300_packet0_check()
1128 track->aa.robj = reloc->robj; in r300_packet0_check()
1198 r = r100_cs_track_check_pkt3_indx_buffer(p, pkt, reloc->robj); in r300_packet3_check()
H A Dradeon_fbdev.c291 bool radeon_fbdev_robj_is_fb(struct radeon_device *rdev, struct radeon_bo *robj) in radeon_fbdev_robj_is_fb() argument
302 if (gobj != &robj->tbo.base) in radeon_fbdev_robj_is_fb()
H A Dradeon_object.c484 struct radeon_bo *bo = lobj->robj; in radeon_bo_list_validate()
531 lobj->gpu_offset = radeon_bo_gpu_offset(lobj->robj); in radeon_bo_list_validate()
532 lobj->tiling_flags = lobj->robj->tiling_flags; in radeon_bo_list_validate()
H A Dr600.c1116 if (rdev->gart.robj) { in r600_pcie_gart_init()
1133 if (rdev->gart.robj == NULL) { in r600_pcie_gart_enable()
1511 if (rdev->vram_scratch.robj == NULL) { in r600_vram_scratch_init()
1514 0, NULL, NULL, &rdev->vram_scratch.robj); in r600_vram_scratch_init()
1520 r = radeon_bo_reserve(rdev->vram_scratch.robj, false); in r600_vram_scratch_init()
1523 r = radeon_bo_pin(rdev->vram_scratch.robj, in r600_vram_scratch_init()
1526 radeon_bo_unreserve(rdev->vram_scratch.robj); in r600_vram_scratch_init()
1529 r = radeon_bo_kmap(rdev->vram_scratch.robj, in r600_vram_scratch_init()
1532 radeon_bo_unpin(rdev->vram_scratch.robj); in r600_vram_scratch_init()
1533 radeon_bo_unreserve(rdev->vram_scratch.robj); in r600_vram_scratch_init()
[all …]
H A Dradeon_vm.c142 list[0].robj = vm->page_directory; in radeon_vm_get_bos()
154 list[idx].robj = vm->page_tables[i].bo; in radeon_vm_get_bos()
157 list[idx].tv.bo = &list[idx].robj->tbo; in radeon_vm_get_bos()
H A Dradeon_mode.h945 bool radeon_fbdev_robj_is_fb(struct radeon_device *rdev, struct radeon_bo *robj);
949 static inline bool radeon_fbdev_robj_is_fb(struct radeon_device *rdev, struct radeon_bo *robj) in radeon_fbdev_robj_is_fb() argument
H A Dradeon_uvd.c582 end = start + radeon_bo_size(reloc->robj); in radeon_uvd_cs_reloc()
626 r = radeon_uvd_cs_msg(p, reloc->robj, offset, buf_sizes); in radeon_uvd_cs_reloc()
H A Drs600.c549 if (rdev->gart.robj) { in rs600_gart_init()
567 if (rdev->gart.robj == NULL) { in rs600_gart_enable()
H A Dradeon_vce.c489 end = start + radeon_bo_size(reloc->robj); in radeon_vce_cs_reloc()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gem.c499 struct amdgpu_bo *robj; in amdgpu_mode_dumb_mmap() local
505 robj = gem_to_amdgpu_bo(gobj); in amdgpu_mode_dumb_mmap()
506 if (amdgpu_ttm_tt_get_usermm(robj->tbo.ttm) || in amdgpu_mode_dumb_mmap()
507 (robj->flags & AMDGPU_GEM_CREATE_NO_CPU_ACCESS)) { in amdgpu_mode_dumb_mmap()
511 *offset_p = amdgpu_bo_mmap_offset(robj); in amdgpu_mode_dumb_mmap()
559 struct amdgpu_bo *robj; in amdgpu_gem_wait_idle_ioctl() local
569 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_wait_idle_ioctl()
570 ret = dma_resv_wait_timeout(robj->tbo.base.resv, DMA_RESV_USAGE_READ, in amdgpu_gem_wait_idle_ioctl()
592 struct amdgpu_bo *robj; in amdgpu_gem_metadata_ioctl() local
599 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_metadata_ioctl()
[all …]
H A Damdgpu_display.c1683 amdgpu_display_robj_is_fb(struct amdgpu_device *adev, struct amdgpu_bo *robj) in amdgpu_display_robj_is_fb() argument
1691 if (gem_to_amdgpu_bo(fb_helper->buffer->gem) != robj) in amdgpu_display_robj_is_fb()
1719 struct amdgpu_bo *robj; in amdgpu_display_suspend_helper() local
1734 robj = gem_to_amdgpu_bo(fb->obj[0]); in amdgpu_display_suspend_helper()
1735 if (!amdgpu_display_robj_is_fb(adev, robj)) { in amdgpu_display_suspend_helper()
1736 r = amdgpu_bo_reserve(robj, true); in amdgpu_display_suspend_helper()
1738 amdgpu_bo_unpin(robj); in amdgpu_display_suspend_helper()
1739 amdgpu_bo_unreserve(robj); in amdgpu_display_suspend_helper()
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_prime.c46 struct dma_resv *robj = attach->dmabuf->resv; in nouveau_gem_prime_import_sg_table() local
51 dma_resv_lock(robj, NULL); in nouveau_gem_prime_import_sg_table()
74 sg, robj); in nouveau_gem_prime_import_sg_table()
83 dma_resv_unlock(robj); in nouveau_gem_prime_import_sg_table()
H A Dnouveau_bo.h68 struct sg_table *sg, struct dma_resv *robj);
71 struct dma_resv *robj,
H A Dnouveau_bo.c343 struct sg_table *sg, struct dma_resv *robj) in nouveau_bo_init() argument
350 .resv = robj, in nouveau_bo_init()
358 sg, robj, nouveau_bo_del_ttm); in nouveau_bo_init()
364 if (!robj) in nouveau_bo_init()
373 struct sg_table *sg, struct dma_resv *robj, in nouveau_bo_new() argument
393 ret = nouveau_bo_init(nvbo, size, align, domain, sg, robj); in nouveau_bo_new()
/linux/drivers/gpu/drm/msm/
H A Dmsm_gem.c961 struct dma_resv *robj = obj->resv; in msm_gem_describe() local
1035 dma_resv_describe(robj, m); in msm_gem_describe()

12