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()
1204 u32 lane = 0, premap, postmap; in btt_read_pg() local
1211 ret = lba_to_arena(btt, sector, &premap, &arena); in btt_read_pg()
1217 ret = btt_map_read(arena, premap, &postmap, &t_flag, &e_flag, in btt_read_pg()
1248 ret = btt_map_read(arena, premap, &new_map, &new_t, in btt_read_pg()
1265 if (btt_map_write(arena, premap, postmap, 0, 1, NVDIMM_IO_ATOMIC)) in btt_read_pg()
1268 premap); in btt_read_pg()
1316 u32 premap = 0, old_postmap, new_postmap, lane = 0, i; in btt_write_pg() local
1327 ret = lba_to_arena(btt, sector, &premap, &arena); in btt_write_pg()
1376 lock_map(arena, premap); in btt_write_pg()
1377 ret = btt_map_read(arena, premap, &old_postmap, NULL, &e_flag, in btt_write_pg()
1388 log.lba = cpu_to_le32(premap); in btt_write_pg()
1397 ret = btt_map_write(arena, premap, new_postmap, 0, 0, in btt_write_pg()
1402 unlock_map(arena, premap); in btt_write_pg()
1419 unlock_map(arena, premap); in btt_write_pg()