Lines Matching refs:num_pages
81 bo, bo->mem.num_pages, bo->mem.size >> 10, in ttm_bo_mem_space_debug()
386 bo->ttm = bdev->driver->ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT, in ttm_bo_add_ttm()
392 bo->ttm = bdev->driver->ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT, in ttm_bo_add_ttm()
1125 mem.num_pages = bo->num_pages; in ttm_bo_move_buffer()
1126 mem.size = mem.num_pages << PAGE_SHIFT; in ttm_bo_move_buffer()
1152 mem->start + mem->num_pages > placement->lpfn)) in ttm_bo_mem_compat()
1176 (placement->lpfn - placement->fpfn) < bo->num_pages) in ttm_bo_validate()
1210 (bo->mem.num_pages > (placement->lpfn - placement->fpfn)))); in ttm_bo_check_placement()
1228 unsigned long num_pages; in ttm_bo_init() local
1241 num_pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; in ttm_bo_init()
1242 if (num_pages == 0) { in ttm_bo_init()
1264 bo->num_pages = num_pages; in ttm_bo_init()
1265 bo->mem.size = num_pages << PAGE_SHIFT; in ttm_bo_init()
1267 bo->mem.num_pages = bo->num_pages; in ttm_bo_init()
1692 bo->mem.num_pages, 0, 0); in ttm_bo_setup_vm()
1700 bo->mem.num_pages, 0); in ttm_bo_setup_vm()