Lines Matching refs:cln
463 static int active_cacheline_read_overlap(phys_addr_t cln) in active_cacheline_read_overlap() argument
468 if (radix_tree_tag_get(&dma_active_cacheline, cln, i)) in active_cacheline_read_overlap()
473 static int active_cacheline_set_overlap(phys_addr_t cln, int overlap) in active_cacheline_set_overlap() argument
482 radix_tree_tag_set(&dma_active_cacheline, cln, i); in active_cacheline_set_overlap()
484 radix_tree_tag_clear(&dma_active_cacheline, cln, i); in active_cacheline_set_overlap()
489 static void active_cacheline_inc_overlap(phys_addr_t cln) in active_cacheline_inc_overlap() argument
491 int overlap = active_cacheline_read_overlap(cln); in active_cacheline_inc_overlap()
493 overlap = active_cacheline_set_overlap(cln, ++overlap); in active_cacheline_inc_overlap()
500 ACTIVE_CACHELINE_MAX_OVERLAP, &cln); in active_cacheline_inc_overlap()
503 static int active_cacheline_dec_overlap(phys_addr_t cln) in active_cacheline_dec_overlap() argument
505 int overlap = active_cacheline_read_overlap(cln); in active_cacheline_dec_overlap()
507 return active_cacheline_set_overlap(cln, --overlap); in active_cacheline_dec_overlap()
512 phys_addr_t cln = to_cacheline_number(entry); in active_cacheline_insert() local
524 rc = radix_tree_insert(&dma_active_cacheline, cln, entry); in active_cacheline_insert()
526 active_cacheline_inc_overlap(cln); in active_cacheline_insert()
534 phys_addr_t cln = to_cacheline_number(entry); in active_cacheline_remove() local
546 if (active_cacheline_dec_overlap(cln) < 0) in active_cacheline_remove()
547 radix_tree_delete(&dma_active_cacheline, cln); in active_cacheline_remove()