Lines Matching refs:pdev
49 static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent);
102 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
107 switch (pdev->device) {
110 pci_read_config_byte(pdev, SIS_PMR, &pmr);
131 struct pci_dev *pdev = to_pci_dev(link->ap->host->dev);
137 pci_read_config_dword(pdev, cfg_addr, val);
144 struct pci_dev *pdev = to_pci_dev(link->ap->host->dev);
147 pci_write_config_dword(pdev, cfg_addr, val);
181 static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
191 ata_print_version_once(&pdev->dev, DRV_VERSION);
193 rc = pcim_enable_device(pdev);
198 pci_read_config_dword(pdev, SIS_GENCTL, &genctl);
206 ((pci_resource_start(pdev, SIS_SCR_PCI_BAR) == 0) ||
207 (pci_resource_len(pdev, SIS_SCR_PCI_BAR) < 128))) {
209 pci_write_config_dword(pdev, SIS_GENCTL, genctl);
213 pci_read_config_byte(pdev, SIS_PMR, &pmr);
229 dev_info(&pdev->dev,
233 dev_info(&pdev->dev,
242 pci_read_config_dword(pdev, 0x6C, &val);
244 dev_info(&pdev->dev, "Detected SiS 182/965 chipset\n");
247 dev_info(&pdev->dev, "Detected SiS 182/965L chipset\n");
252 dev_info(&pdev->dev,
258 dev_info(&pdev->dev,
265 rc = ata_pci_bmdma_prepare_host(pdev, ppi, &host);
283 rc = pcim_iomap_regions(pdev, 1 << SIS_SCR_PCI_BAR, DRV_NAME);
292 pci_set_master(pdev);
293 pci_intx(pdev, 1);
294 return ata_host_activate(host, pdev->irq, ata_bmdma_interrupt,