Lines Matching refs:victim
253 int i, victim; in cache_valid_mem() local
254 victim = lga_victim; in cache_valid_mem()
256 if (last_good_addr[victim] == 0) { in cache_valid_mem()
257 last_good_addr[victim] = addr; in cache_valid_mem()
260 victim = (victim + 1) % NLGA; in cache_valid_mem()
264 last_good_addr[victim] = addr; in cache_valid_mem()
265 victim = (victim + 1) % NLGA; in cache_valid_mem()
266 lga_victim = victim; in cache_valid_mem()
289 int i, victim; in cache_valid_mem() local
290 victim = atomic_load(&lga_victim); in cache_valid_mem()
293 if (atomic_compare_exchange_strong(&last_good_addr[victim], &zero, addr)) { in cache_valid_mem()
296 victim = (victim + 1) % NLGA; in cache_valid_mem()
300 atomic_store(&last_good_addr[victim], addr); in cache_valid_mem()
301 victim = (victim + 1) % NLGA; in cache_valid_mem()
302 atomic_store(&lga_victim, victim); in cache_valid_mem()