Lines Matching refs:pdev
39 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in hpt3x3_set_piomode() local
43 pci_read_config_dword(pdev, 0x44, &r1); in hpt3x3_set_piomode()
44 pci_read_config_dword(pdev, 0x48, &r2); in hpt3x3_set_piomode()
50 pci_write_config_dword(pdev, 0x44, r1); in hpt3x3_set_piomode()
51 pci_write_config_dword(pdev, 0x48, r2); in hpt3x3_set_piomode()
69 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in hpt3x3_set_dmamode() local
74 pci_read_config_dword(pdev, 0x44, &r1); in hpt3x3_set_dmamode()
75 pci_read_config_dword(pdev, 0x48, &r2); in hpt3x3_set_dmamode()
86 pci_write_config_dword(pdev, 0x44, r1); in hpt3x3_set_dmamode()
87 pci_write_config_dword(pdev, 0x48, r2); in hpt3x3_set_dmamode()
185 static int hpt3x3_init_one(struct pci_dev *pdev, const struct pci_device_id *id) in hpt3x3_init_one() argument
205 hpt3x3_init_chipset(pdev); in hpt3x3_init_one()
207 ata_print_version_once(&pdev->dev, DRV_VERSION); in hpt3x3_init_one()
209 host = ata_host_alloc_pinfo(&pdev->dev, ppi, 2); in hpt3x3_init_one()
213 rc = pcim_enable_device(pdev); in hpt3x3_init_one()
218 rc = pcim_iomap_regions(pdev, 1 << 4, DRV_NAME); in hpt3x3_init_one()
220 pcim_pin_device(pdev); in hpt3x3_init_one()
223 host->iomap = pcim_iomap_table(pdev); in hpt3x3_init_one()
224 rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); in hpt3x3_init_one()
227 rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); in hpt3x3_init_one()
247 pci_set_master(pdev); in hpt3x3_init_one()
248 return ata_host_activate(host, pdev->irq, ata_bmdma_interrupt, in hpt3x3_init_one()