Lines Matching refs:dma_pdev
44 static struct pci_dev *dma_pdev; variable
258 chan->ring_virt = dma_alloc_coherent(&dma_pdev->dev, in pasemi_dma_alloc_ring()
280 dma_free_coherent(&dma_pdev->dev, chan->ring_size * sizeof(u64), in pasemi_dma_free_ring()
364 return dma_alloc_coherent(&dma_pdev->dev, size, handle, GFP_KERNEL); in pasemi_dma_alloc_buf()
378 dma_free_coherent(&dma_pdev->dev, size, handle, GFP_KERNEL); in pasemi_dma_free_buf()
528 if (dma_pdev) in pasemi_dma_init()
540 dma_pdev = pci_get_device(PCI_VENDOR_ID_PASEMI, 0xa007, NULL); in pasemi_dma_init()
541 if (!dma_pdev) { in pasemi_dma_init()
547 dma_regs = map_onedev(dma_pdev, 0); in pasemi_dma_init()
548 base_hw_irq = virq_to_hw(dma_pdev->irq); in pasemi_dma_init()
550 pci_read_config_dword(dma_pdev, PAS_DMA_CAP_TXCH, &tmp); in pasemi_dma_init()
553 pci_read_config_dword(dma_pdev, PAS_DMA_CAP_RXCH, &tmp); in pasemi_dma_init()