Lines Matching full:overlap
397 * count for the overlapping mappings. For now, the overlap tracking
427 int overlap = 0, i; in active_cacheline_read_overlap() local
431 overlap |= 1 << i; in active_cacheline_read_overlap()
432 return overlap; in active_cacheline_read_overlap()
435 static int active_cacheline_set_overlap(phys_addr_t cln, int overlap) in active_cacheline_set_overlap() argument
439 if (overlap > ACTIVE_CACHELINE_MAX_OVERLAP || overlap < 0) in active_cacheline_set_overlap()
440 return overlap; in active_cacheline_set_overlap()
443 if (overlap & 1 << i) in active_cacheline_set_overlap()
448 return overlap; in active_cacheline_set_overlap()
453 int overlap = active_cacheline_read_overlap(cln); in active_cacheline_inc_overlap() local
455 overlap = active_cacheline_set_overlap(cln, ++overlap); in active_cacheline_inc_overlap()
457 /* If we overflowed the overlap counter then we're potentially in active_cacheline_inc_overlap()
460 WARN_ONCE(overlap > ACTIVE_CACHELINE_MAX_OVERLAP, in active_cacheline_inc_overlap()
467 int overlap = active_cacheline_read_overlap(cln); in active_cacheline_dec_overlap() local
469 return active_cacheline_set_overlap(cln, --overlap); in active_cacheline_dec_overlap()
505 * cacheline will occur when the overlap count is 0. in active_cacheline_remove()