Lines Matching refs:pagemap
101 struct dev_pagemap pagemap; member
198 return container_of(page->pgmap, struct dmirror_chunk, pagemap); in dmirror_page_to_chunk()
514 devmem->pagemap.range.start = res->start; in dmirror_allocate_chunk()
515 devmem->pagemap.range.end = res->end; in dmirror_allocate_chunk()
516 devmem->pagemap.type = MEMORY_DEVICE_PRIVATE; in dmirror_allocate_chunk()
519 devmem->pagemap.range.start = (MINOR(mdevice->cdevice.dev) - 2) ? in dmirror_allocate_chunk()
522 devmem->pagemap.range.end = devmem->pagemap.range.start + in dmirror_allocate_chunk()
524 devmem->pagemap.type = MEMORY_DEVICE_COHERENT; in dmirror_allocate_chunk()
531 devmem->pagemap.nr_range = 1; in dmirror_allocate_chunk()
532 devmem->pagemap.ops = &dmirror_devmem_ops; in dmirror_allocate_chunk()
533 devmem->pagemap.owner = mdevice; in dmirror_allocate_chunk()
551 ptr = memremap_pages(&devmem->pagemap, numa_node_id()); in dmirror_allocate_chunk()
561 pfn_first = devmem->pagemap.range.start >> PAGE_SHIFT; in dmirror_allocate_chunk()
562 pfn_last = pfn_first + (range_len(&devmem->pagemap.range) >> PAGE_SHIFT); in dmirror_allocate_chunk()
591 if (res && devmem->pagemap.type == MEMORY_DEVICE_PRIVATE) in dmirror_allocate_chunk()
592 release_mem_region(devmem->pagemap.range.start, in dmirror_allocate_chunk()
593 range_len(&devmem->pagemap.range)); in dmirror_allocate_chunk()
1222 unsigned long start_pfn = chunk->pagemap.range.start >> PAGE_SHIFT; in dmirror_device_evict_chunk()
1223 unsigned long end_pfn = chunk->pagemap.range.end >> PAGE_SHIFT; in dmirror_device_evict_chunk()
1284 memunmap_pages(&devmem->pagemap); in dmirror_device_remove_chunks()
1285 if (devmem->pagemap.type == MEMORY_DEVICE_PRIVATE) in dmirror_device_remove_chunks()
1286 release_mem_region(devmem->pagemap.range.start, in dmirror_device_remove_chunks()
1287 range_len(&devmem->pagemap.range)); in dmirror_device_remove_chunks()