Lines Matching full:overlap
407 * count for the overlapping mappings. For now, the overlap tracking
437 int overlap = 0, i; in active_cacheline_read_overlap() local
441 overlap |= 1 << i; in active_cacheline_read_overlap()
442 return overlap; in active_cacheline_read_overlap()
445 static int active_cacheline_set_overlap(phys_addr_t cln, int overlap) in active_cacheline_set_overlap() argument
449 if (overlap > ACTIVE_CACHELINE_MAX_OVERLAP || overlap < 0) in active_cacheline_set_overlap()
450 return overlap; in active_cacheline_set_overlap()
453 if (overlap & 1 << i) in active_cacheline_set_overlap()
458 return overlap; in active_cacheline_set_overlap()
463 int overlap = active_cacheline_read_overlap(cln); in active_cacheline_inc_overlap() local
465 overlap = active_cacheline_set_overlap(cln, ++overlap); in active_cacheline_inc_overlap()
467 /* If we overflowed the overlap counter then we're potentially in active_cacheline_inc_overlap()
470 WARN_ONCE(overlap > ACTIVE_CACHELINE_MAX_OVERLAP, in active_cacheline_inc_overlap()
477 int overlap = active_cacheline_read_overlap(cln); in active_cacheline_dec_overlap() local
479 return active_cacheline_set_overlap(cln, --overlap); in active_cacheline_dec_overlap()
515 * cacheline will occur when the overlap count is 0. in active_cacheline_remove()