Lines Matching refs:gtt
671 struct radeon_ttm_backend *gtt;
673 gtt = container_of(backend, struct radeon_ttm_backend, backend);
674 gtt->pages = pages;
675 gtt->num_pages = num_pages;
676 gtt->dummy_read_page = dummy_read_page;
677 gtt->populated = true;
683 struct radeon_ttm_backend *gtt;
685 gtt = container_of(backend, struct radeon_ttm_backend, backend);
686 gtt->pages = NULL;
687 gtt->num_pages = 0;
688 gtt->dummy_read_page = NULL;
689 gtt->populated = false;
690 gtt->bound = false;
697 struct radeon_ttm_backend *gtt;
700 gtt = container_of(backend, struct radeon_ttm_backend, backend);
701 gtt->offset = bo_mem->mm_node->start << PAGE_SHIFT;
702 if (!gtt->num_pages) {
703 WARN(1, "nothing to bind %lu pages for mreg %p back %p!\n", gtt->num_pages, bo_mem, backend);
705 r = radeon_gart_bind(gtt->rdev, gtt->offset,
706 gtt->num_pages, gtt->pages);
709 gtt->num_pages, gtt->offset);
712 gtt->bound = true;
718 struct radeon_ttm_backend *gtt;
720 gtt = container_of(backend, struct radeon_ttm_backend, backend);
721 radeon_gart_unbind(gtt->rdev, gtt->offset, gtt->num_pages);
722 gtt->bound = false;
728 struct radeon_ttm_backend *gtt;
730 gtt = container_of(backend, struct radeon_ttm_backend, backend);
731 if (gtt->bound) {
734 kfree(gtt);
747 struct radeon_ttm_backend *gtt;
749 gtt = kzalloc(sizeof(struct radeon_ttm_backend), GFP_KERNEL);
750 if (gtt == NULL) {
753 gtt->backend.bdev = &rdev->mman.bdev;
754 gtt->backend.flags = 0;
755 gtt->backend.func = &radeon_backend_func;
756 gtt->rdev = rdev;
757 gtt->pages = NULL;
758 gtt->num_pages = 0;
759 gtt->dummy_read_page = NULL;
760 gtt->populated = false;
761 gtt->bound = false;
762 return >t->backend;