Searched refs:cpuaddr (Results 1 – 1 of 1) sorted by relevance
81 void *cpuaddr; in sn_dma_alloc_coherent() local97 cpuaddr = page_address(p); in sn_dma_alloc_coherent()101 cpuaddr = (void *)__get_free_pages(flags, get_order(size)); in sn_dma_alloc_coherent()103 if (unlikely(!cpuaddr)) in sn_dma_alloc_coherent()106 memset(cpuaddr, 0x0, size); in sn_dma_alloc_coherent()109 phys_addr = __pa(cpuaddr); in sn_dma_alloc_coherent()121 free_pages((unsigned long)cpuaddr, get_order(size)); in sn_dma_alloc_coherent()125 return cpuaddr; in sn_dma_alloc_coherent()