Lines Matching refs:pagemap
72 struct dev_pagemap pagemap; member
92 return container_of(page->pgmap, struct nouveau_dmem_chunk, pagemap); in nouveau_page_to_chunk()
106 chunk->pagemap.range.start; in nouveau_dmem_page_addr()
252 chunk->pagemap.type = MEMORY_DEVICE_PRIVATE; in nouveau_dmem_chunk_alloc()
253 chunk->pagemap.range.start = res->start; in nouveau_dmem_chunk_alloc()
254 chunk->pagemap.range.end = res->end; in nouveau_dmem_chunk_alloc()
255 chunk->pagemap.nr_range = 1; in nouveau_dmem_chunk_alloc()
256 chunk->pagemap.ops = &nouveau_dmem_pagemap_ops; in nouveau_dmem_chunk_alloc()
257 chunk->pagemap.owner = drm->dev; in nouveau_dmem_chunk_alloc()
269 ptr = memremap_pages(&chunk->pagemap, numa_node_id()); in nouveau_dmem_chunk_alloc()
279 pfn_first = chunk->pagemap.range.start >> PAGE_SHIFT; in nouveau_dmem_chunk_alloc()
300 release_mem_region(chunk->pagemap.range.start, range_len(&chunk->pagemap.range)); in nouveau_dmem_chunk_alloc()
377 unsigned long i, npages = range_len(&chunk->pagemap.range) >> PAGE_SHIFT; in nouveau_dmem_evict_chunk()
386 migrate_device_range(src_pfns, chunk->pagemap.range.start >> PAGE_SHIFT, in nouveau_dmem_evict_chunk()
433 memunmap_pages(&chunk->pagemap); in nouveau_dmem_fini()
434 release_mem_region(chunk->pagemap.range.start, in nouveau_dmem_fini()
435 range_len(&chunk->pagemap.range)); in nouveau_dmem_fini()