dma_64 =1;if(pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { mutex_unlock(&mem_lock);return-ENOMEM; } } addr->virt = dma_alloc_coherent(dev, len, &addr->phys, GFP_KERNEL);if((sizeof(dma_addr_t) >4) && dma_64)if(pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) ; mutex_un...
(unsignedint)dma_mask_to_engine_type(mask)); }return0; } 开发者ID:openube,项目名称:android_kernel_sony_c2305,代码行数:38,代码来源:dma.c 示例15: dwc3_pci_probe ▲点赞 1▼ staticintdwc3_pci_probe(struct pci_dev *pci,conststruct pci_device_id *id){structresourceres[2];structplatform...
pci_set_master(pdev); ret=dma_set_mask(&pdev->dev,DMA_BIT_MASK(32)); ret=dma_set_mask(&pdev->dev,DMA_BIT_MASK(36)); if(ret) returnret; ret=dma_set_coherent_mask(&pdev->dev,DMA_BIT_MASK(32)); if(ret) returnret;
A future change will convert the DMA API implementation from the architecture specific arch/s390/pci/pci_dma.c to using the common code drivers/iommu/dma-iommu.c which the utilizes the same IOMMU hardware through the s390-iommu driver. Unlike the s390 specific DMA API this requires devices to...
示例1: aq_pci_func_init ▲点赞 7▼ intaq_pci_func_init(struct pci_dev *pdev){interr; err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));if(!err) { err =pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); }if(err) { ...