Lines Matching refs:pdev

54 static int uli_init_one (struct pci_dev *pdev, const struct pci_device_id *ent);
147 struct pci_dev *pdev = to_pci_dev(ap->host_set->dev); in uli_scr_cfg_read() local
151 pci_read_config_dword(pdev, cfg_addr, &val); in uli_scr_cfg_read()
157 struct pci_dev *pdev = to_pci_dev(ap->host_set->dev); in uli_scr_cfg_write() local
160 pci_write_config_dword(pdev, cfg_addr, val); in uli_scr_cfg_write()
179 static int uli_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) in uli_init_one() argument
189 pdev_printk(KERN_INFO, pdev, "version " DRV_VERSION "\n"); in uli_init_one()
191 rc = pci_enable_device(pdev); in uli_init_one()
195 rc = pci_request_regions(pdev, DRV_NAME); in uli_init_one()
201 rc = pci_set_dma_mask(pdev, ATA_DMA_MASK); in uli_init_one()
204 rc = pci_set_consistent_dma_mask(pdev, ATA_DMA_MASK); in uli_init_one()
209 probe_ent = ata_pci_init_native_mode(pdev, &ppi, ATA_PORT_PRIMARY | ATA_PORT_SECONDARY); in uli_init_one()
221 probe_ent->port[2].cmd_addr = pci_resource_start(pdev, 0) + 8; in uli_init_one()
224 (pci_resource_start(pdev, 1) | ATA_PCI_CTL_OFS) + 4; in uli_init_one()
225 probe_ent->port[2].bmdma_addr = pci_resource_start(pdev, 4) + 16; in uli_init_one()
228 probe_ent->port[3].cmd_addr = pci_resource_start(pdev, 2) + 8; in uli_init_one()
231 (pci_resource_start(pdev, 3) | ATA_PCI_CTL_OFS) + 4; in uli_init_one()
232 probe_ent->port[3].bmdma_addr = pci_resource_start(pdev, 4) + 24; in uli_init_one()
254 pci_set_master(pdev); in uli_init_one()
255 pci_intx(pdev, 1); in uli_init_one()
262 pci_release_regions(pdev); in uli_init_one()
266 pci_disable_device(pdev); in uli_init_one()