Lines Matching refs:premap
1068 static int lba_to_arena(struct btt *btt, sector_t sector, __u32 *premap, in lba_to_arena() argument
1077 *premap = lba; in lba_to_arena()
1090 static void lock_map(struct arena_info *arena, u32 premap) in lock_map() argument
1093 u32 idx = (premap * MAP_ENT_SIZE / L1_CACHE_BYTES) % arena->nfree; in lock_map()
1098 static void unlock_map(struct arena_info *arena, u32 premap) in unlock_map() argument
1101 u32 idx = (premap * MAP_ENT_SIZE / L1_CACHE_BYTES) % arena->nfree; in unlock_map()
1202 u32 lane = 0, premap, postmap; in btt_read_pg() local
1209 ret = lba_to_arena(btt, sector, &premap, &arena); in btt_read_pg()
1215 ret = btt_map_read(arena, premap, &postmap, &t_flag, &e_flag, in btt_read_pg()
1246 ret = btt_map_read(arena, premap, &new_map, &new_t, in btt_read_pg()
1263 if (btt_map_write(arena, premap, postmap, 0, 1, NVDIMM_IO_ATOMIC)) in btt_read_pg()
1266 premap); in btt_read_pg()
1314 u32 premap = 0, old_postmap, new_postmap, lane = 0, i; in btt_write_pg() local
1325 ret = lba_to_arena(btt, sector, &premap, &arena); in btt_write_pg()
1374 lock_map(arena, premap); in btt_write_pg()
1375 ret = btt_map_read(arena, premap, &old_postmap, NULL, &e_flag, in btt_write_pg()
1386 log.lba = cpu_to_le32(premap); in btt_write_pg()
1395 ret = btt_map_write(arena, premap, new_postmap, 0, 0, in btt_write_pg()
1400 unlock_map(arena, premap); in btt_write_pg()
1417 unlock_map(arena, premap); in btt_write_pg()