Lines Matching refs:pcidev
590 struct pci_dev *pcidev = hba->pcidev; in hptiop_map_pci_bar() local
593 if (!(pci_resource_flags(pcidev, index) & IORESOURCE_MEM)) { in hptiop_map_pci_bar()
599 mem_base_phy = pci_resource_start(pcidev, index); in hptiop_map_pci_bar()
600 length = pci_resource_len(pcidev, index); in hptiop_map_pci_bar()
613 struct pci_dev *pcidev = hba->pcidev; in hptiop_map_pci_bar_itl() local
617 if ((pcidev->device & 0xff00) == 0x4400) { in hptiop_map_pci_bar_itl()
1188 hba->u.mv.internal_req = dma_alloc_coherent(&hba->pcidev->dev, in hptiop_internal_memalloc_mv()
1217 p = dma_alloc_coherent(&hba->pcidev->dev, in hptiop_internal_memalloc_mvfrey()
1256 dma_free_coherent(&hba->pcidev->dev, 0x800, in hptiop_internal_memfree_mv()
1266 dma_free_coherent(&hba->pcidev->dev, in hptiop_internal_memfree_mvfrey()
1276 static int hptiop_probe(struct pci_dev *pcidev, const struct pci_device_id *id) in hptiop_probe() argument
1288 dprintk("hptiop_probe(%p)\n", pcidev); in hptiop_probe()
1290 if (pci_enable_device(pcidev)) { in hptiop_probe()
1296 pcidev->bus->number, pcidev->devfn >> 3, pcidev->devfn & 7, in hptiop_probe()
1297 pcidev->irq); in hptiop_probe()
1299 pci_set_master(pcidev); in hptiop_probe()
1303 rc = dma_set_mask(&pcidev->dev, in hptiop_probe()
1306 rc = dma_set_mask(&pcidev->dev, DMA_BIT_MASK(32)); in hptiop_probe()
1313 if (pci_request_regions(pcidev, driver_name)) { in hptiop_probe()
1328 hba->pcidev = pcidev; in hptiop_probe()
1343 host->irq = pcidev->irq; in hptiop_probe()
1417 pci_set_drvdata(pcidev, host); in hptiop_probe()
1419 if (request_irq(pcidev->irq, hptiop_intr, IRQF_SHARED, in hptiop_probe()
1422 hba->host->host_no, pcidev->irq); in hptiop_probe()
1434 start_virt = dma_alloc_coherent(&pcidev->dev, in hptiop_probe()
1464 if (scsi_add_host(host, &pcidev->dev)) { in hptiop_probe()
1478 dma_free_coherent(&hba->pcidev->dev, in hptiop_probe()
1486 free_irq(hba->pcidev->irq, hba); in hptiop_probe()
1497 pci_release_regions(pcidev); in hptiop_probe()
1500 pci_disable_device(pcidev); in hptiop_probe()
1506 static void hptiop_shutdown(struct pci_dev *pcidev) in hptiop_shutdown() argument
1508 struct Scsi_Host *host = pci_get_drvdata(pcidev); in hptiop_shutdown()
1549 static void hptiop_remove(struct pci_dev *pcidev) in hptiop_remove() argument
1551 struct Scsi_Host *host = pci_get_drvdata(pcidev); in hptiop_remove()
1559 hptiop_shutdown(pcidev); in hptiop_remove()
1561 free_irq(hba->pcidev->irq, hba); in hptiop_remove()
1565 dma_free_coherent(&hba->pcidev->dev, in hptiop_remove()
1577 pci_release_regions(hba->pcidev); in hptiop_remove()
1578 pci_set_drvdata(hba->pcidev, NULL); in hptiop_remove()
1579 pci_disable_device(hba->pcidev); in hptiop_remove()