Lines Matching refs:dma_coherent
504 void *dma_coherent; in arcmsr_alloc_ccb_pool() local
529 dma_coherent = dma_alloc_coherent(&pdev->dev, acb->uncache_size, &dma_coherent_handle, GFP_KERNEL); in arcmsr_alloc_ccb_pool()
530 if(!dma_coherent){ in arcmsr_alloc_ccb_pool()
534 acb->dma_coherent = dma_coherent; in arcmsr_alloc_ccb_pool()
536 memset(dma_coherent, 0, acb->uncache_size); in arcmsr_alloc_ccb_pool()
537 ccb_tmp = dma_coherent; in arcmsr_alloc_ccb_pool()
538 acb->vir2phy_offset = (unsigned long)dma_coherent - (unsigned long)dma_coherent_handle; in arcmsr_alloc_ccb_pool()
1541 dma_free_coherent(&acb->pdev->dev, acb->uncache_size, acb->dma_coherent, acb->dma_coherent_handle); in arcmsr_free_ccb_pool()
2629 void *dma_coherent; in arcmsr_hbaB_get_config() local
2643 dma_coherent = dma_alloc_coherent(&pdev->dev, acb->roundup_ccbsize, in arcmsr_hbaB_get_config()
2645 if (!dma_coherent){ in arcmsr_hbaB_get_config()
2652 acb->dma_coherent2 = dma_coherent; in arcmsr_hbaB_get_config()
2653 reg = (struct MessageUnit_B *)dma_coherent; in arcmsr_hbaB_get_config()