Lines Matching refs:memory_map
147 void *memory_map; member
287 &wc->memory_map, &pfn); in persistent_memory_claim()
289 wc->memory_map = NULL; in persistent_memory_claim()
294 wc->memory_map = NULL; in persistent_memory_claim()
301 wc->memory_map = NULL; in persistent_memory_claim()
328 wc->memory_map = vmap(pages, p, VM_MAP, PAGE_KERNEL); in persistent_memory_claim()
329 if (!wc->memory_map) { in persistent_memory_claim()
339 wc->memory_map += (size_t)wc->start_sector << SECTOR_SHIFT; in persistent_memory_claim()
360 vunmap(wc->memory_map - ((size_t)wc->start_sector << SECTOR_SHIFT)); in persistent_memory_release()
390 return wc->memory_map; in sb()
466 __set_bit(((char *)ptr - (char *)wc->memory_map) / BITMAP_GRANULARITY, in writecache_flush_region()
528 req.mem.ptr.vma = (char *)wc->memory_map + (size_t)i * BITMAP_GRANULARITY; in ssd_commit_flushed()
566 req.mem.ptr.vma = (char *)wc->memory_map; in ssd_commit_superblock()
952 persistent_memory_flush_cache(wc->memory_map, wc->memory_map_size); in writecache_suspend()
989 req.mem.ptr.vma = (char *)wc->memory_map; in writecache_read_metadata()
1009 persistent_memory_invalidate_cache(wc->memory_map, wc->memory_map_size); in writecache_resume()
1017 memset((char *)wc->memory_map + sb_entries_offset, -1, in writecache_resume()
2211 if (wc->memory_map) { in writecache_dtr()
2215 vfree(wc->memory_map); in writecache_dtr()
2550 wc->memory_map = vmalloc(n_metadata_blocks << wc->block_size_bits); in writecache_ctr()
2551 if (!wc->memory_map) { in writecache_ctr()
2668 persistent_memory_flush_cache(wc->memory_map, wc->memory_map_size); in writecache_ctr()