Lines Matching refs:dma_coherent
504 void *dma_coherent; in arcmsr_alloc_io_queue() local
512 dma_coherent = dma_zalloc_coherent(&pdev->dev, acb->roundup_ccbsize, in arcmsr_alloc_io_queue()
514 if (!dma_coherent) { in arcmsr_alloc_io_queue()
519 acb->dma_coherent2 = dma_coherent; in arcmsr_alloc_io_queue()
520 reg = (struct MessageUnit_B *)dma_coherent; in arcmsr_alloc_io_queue()
542 dma_coherent = dma_zalloc_coherent(&pdev->dev, acb->roundup_ccbsize, in arcmsr_alloc_io_queue()
544 if (!dma_coherent) { in arcmsr_alloc_io_queue()
549 acb->dma_coherent2 = dma_coherent; in arcmsr_alloc_io_queue()
550 reg = (struct MessageUnit_D *)dma_coherent; in arcmsr_alloc_io_queue()
589 void *dma_coherent; in arcmsr_alloc_ccb_pool() local
614 dma_coherent = dma_alloc_coherent(&pdev->dev, acb->uncache_size, &dma_coherent_handle, GFP_KERNEL); in arcmsr_alloc_ccb_pool()
615 if(!dma_coherent){ in arcmsr_alloc_ccb_pool()
619 acb->dma_coherent = dma_coherent; in arcmsr_alloc_ccb_pool()
621 memset(dma_coherent, 0, acb->uncache_size); in arcmsr_alloc_ccb_pool()
622 ccb_tmp = dma_coherent; in arcmsr_alloc_ccb_pool()
623 acb->vir2phy_offset = (unsigned long)dma_coherent - (unsigned long)dma_coherent_handle; in arcmsr_alloc_ccb_pool()
1611 dma_free_coherent(&acb->pdev->dev, acb->uncache_size, acb->dma_coherent, acb->dma_coherent_handle); in arcmsr_free_ccb_pool()