Lines Matching refs:victim
234 int i, victim; in cache_valid_mem() local
235 victim = lga_victim; in cache_valid_mem()
237 if (last_good_addr[victim] == 0) { in cache_valid_mem()
238 last_good_addr[victim] = addr; in cache_valid_mem()
241 victim = (victim + 1) % NLGA; in cache_valid_mem()
245 last_good_addr[victim] = addr; in cache_valid_mem()
246 victim = (victim + 1) % NLGA; in cache_valid_mem()
247 lga_victim = victim; in cache_valid_mem()
270 int i, victim; in cache_valid_mem() local
271 victim = atomic_load(&lga_victim); in cache_valid_mem()
274 if (atomic_compare_exchange_strong(&last_good_addr[victim], &zero, addr)) { in cache_valid_mem()
277 victim = (victim + 1) % NLGA; in cache_valid_mem()
281 atomic_store(&last_good_addr[victim], addr); in cache_valid_mem()
282 victim = (victim + 1) % NLGA; in cache_valid_mem()
283 atomic_store(&lga_victim, victim); in cache_valid_mem()