Lines Matching refs:num_pages
146 unsigned num_pages; in radeon_move_blit() local
183 num_pages = PFN_UP(new_mem->size) * (PAGE_SIZE / RADEON_GPU_PAGE_SIZE); in radeon_move_blit()
184 fence = radeon_copy(rdev, old_start, new_start, num_pages, bo->base.resv); in radeon_move_blit()
348 unsigned long end = gtt->userptr + (u64)ttm->num_pages * PAGE_SIZE; in radeon_ttm_tt_pin_userptr()
356 unsigned num_pages = ttm->num_pages - pinned; in radeon_ttm_tt_pin_userptr() local
360 r = get_user_pages(userptr, num_pages, write ? FOLL_WRITE : 0, in radeon_ttm_tt_pin_userptr()
367 } while (pinned < ttm->num_pages); in radeon_ttm_tt_pin_userptr()
369 r = sg_alloc_table_from_pages(ttm->sg, ttm->pages, ttm->num_pages, 0, in radeon_ttm_tt_pin_userptr()
370 (u64)ttm->num_pages << PAGE_SHIFT, in radeon_ttm_tt_pin_userptr()
380 ttm->num_pages); in radeon_ttm_tt_pin_userptr()
447 if (!ttm->num_pages) { in radeon_ttm_backend_bind()
449 ttm->num_pages, bo_mem, ttm); in radeon_ttm_backend_bind()
453 r = radeon_gart_bind(rdev, gtt->offset, ttm->num_pages, in radeon_ttm_backend_bind()
457 ttm->num_pages, (unsigned)gtt->offset); in radeon_ttm_backend_bind()
475 radeon_gart_unbind(rdev, gtt->offset, ttm->num_pages); in radeon_ttm_backend_unbind()
554 ttm->num_pages); in radeon_ttm_tt_populate()