Lines Matching refs:cc_shared

366 		io_tlb_default_mem.cc_shared = true;  in swiotlb_update_mem_attributes()
368 io_tlb_default_mem.cc_shared = false; in swiotlb_update_mem_attributes()
374 if (io_tlb_default_mem.cc_shared) { in swiotlb_update_mem_attributes()
628 if (io_tlb_default_mem.cc_shared) { in swiotlb_init_late()
673 if (io_tlb_default_mem.cc_shared) { in swiotlb_exit()
715 bool cc_shared = attrs & __DMA_ATTR_ALLOC_CC_SHARED; in alloc_dma_pages() local
731 if (cc_shared && set_memory_decrypted((unsigned long)vaddr, PFN_UP(bytes))) in alloc_dma_pages()
737 if (cc_shared && !set_memory_encrypted((unsigned long)vaddr, PFN_UP(bytes))) in alloc_dma_pages()
758 unsigned long attrs = mem->cc_shared ? __DMA_ATTR_ALLOC_CC_SHARED : 0; in swiotlb_alloc_tlb()
765 if (!gfpflags_allow_blocking(gfp) && dev && mem->cc_shared) { in swiotlb_alloc_tlb()
804 static void swiotlb_free_tlb(void *vaddr, size_t bytes, bool cc_shared) in swiotlb_free_tlb() argument
811 if (!cc_shared || in swiotlb_free_tlb()
854 pool->cc_shared = mem->cc_shared; in swiotlb_alloc_pool()
877 swiotlb_free_tlb(tlb_vaddr, tlb_size, mem->cc_shared); in swiotlb_alloc_pool()
912 swiotlb_free_tlb(pool->vaddr, tlb_size, pool->cc_shared); in swiotlb_dyn_free_work()
1300 if (mem->cc_shared) in swiotlb_search_area()
1367 if (mem->cc_shared) in swiotlb_find_slots()
1424 if (mem->cc_shared) in swiotlb_find_slots()
1555 if (unlikely(mem->cc_shared != force_dma_unencrypted(dev))) in swiotlb_tbl_map_single()
1566 if (unlikely(!mem->cc_shared)) in swiotlb_tbl_map_single()
1571 if (mem->cc_shared) in swiotlb_tbl_map_single()
1952 if (mem->cc_shared != !!(attrs & __DMA_ATTR_ALLOC_CC_SHARED)) in swiotlb_alloc()
2037 mem->cc_shared = true; in rmem_swiotlb_device_init()
2048 mem->cc_shared = false; in rmem_swiotlb_device_init()