Lines Matching refs:dma_coherent

583 	void *dma_coherent;  in arcmsr_alloc_io_queue()  local
591 dma_coherent = dma_zalloc_coherent(&pdev->dev, acb->roundup_ccbsize, in arcmsr_alloc_io_queue()
593 if (!dma_coherent) { in arcmsr_alloc_io_queue()
598 acb->dma_coherent2 = dma_coherent; in arcmsr_alloc_io_queue()
599 reg = (struct MessageUnit_B *)dma_coherent; in arcmsr_alloc_io_queue()
621 dma_coherent = dma_zalloc_coherent(&pdev->dev, acb->roundup_ccbsize, in arcmsr_alloc_io_queue()
623 if (!dma_coherent) { in arcmsr_alloc_io_queue()
628 acb->dma_coherent2 = dma_coherent; in arcmsr_alloc_io_queue()
629 reg = (struct MessageUnit_D *)dma_coherent; in arcmsr_alloc_io_queue()
663 dma_coherent = dma_zalloc_coherent(&pdev->dev, acb->roundup_ccbsize, in arcmsr_alloc_io_queue()
665 if (!dma_coherent){ in arcmsr_alloc_io_queue()
670 acb->dma_coherent2 = dma_coherent; in arcmsr_alloc_io_queue()
671 acb->pCompletionQ = dma_coherent; in arcmsr_alloc_io_queue()
685 void *dma_coherent; in arcmsr_alloc_ccb_pool() local
710 dma_coherent = dma_alloc_coherent(&pdev->dev, acb->uncache_size, &dma_coherent_handle, GFP_KERNEL); in arcmsr_alloc_ccb_pool()
711 if(!dma_coherent){ in arcmsr_alloc_ccb_pool()
715 acb->dma_coherent = dma_coherent; in arcmsr_alloc_ccb_pool()
717 memset(dma_coherent, 0, acb->uncache_size); in arcmsr_alloc_ccb_pool()
719 ccb_tmp = dma_coherent; in arcmsr_alloc_ccb_pool()
720 acb->vir2phy_offset = (unsigned long)dma_coherent - (unsigned long)dma_coherent_handle; in arcmsr_alloc_ccb_pool()
1885 dma_free_coherent(&acb->pdev->dev, acb->uncache_size, acb->dma_coherent, acb->dma_coherent_handle); in arcmsr_free_ccb_pool()