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()
1186 hba->u.mv.internal_req = dma_alloc_coherent(&hba->pcidev->dev, in hptiop_internal_memalloc_mv()
1215 p = dma_alloc_coherent(&hba->pcidev->dev, in hptiop_internal_memalloc_mvfrey()
1254 dma_free_coherent(&hba->pcidev->dev, 0x800, in hptiop_internal_memfree_mv()
1264 dma_free_coherent(&hba->pcidev->dev, in hptiop_internal_memfree_mvfrey()
1274 static int hptiop_probe(struct pci_dev *pcidev, const struct pci_device_id *id) in hptiop_probe() argument
1286 dprintk("hptiop_probe(%p)\n", pcidev); in hptiop_probe()
1288 if (pci_enable_device(pcidev)) { in hptiop_probe()
1294 pcidev->bus->number, pcidev->devfn >> 3, pcidev->devfn & 7, in hptiop_probe()
1295 pcidev->irq); in hptiop_probe()
1297 pci_set_master(pcidev); in hptiop_probe()
1301 rc = dma_set_mask(&pcidev->dev, in hptiop_probe()
1304 rc = dma_set_mask(&pcidev->dev, DMA_BIT_MASK(32)); in hptiop_probe()
1311 if (pci_request_regions(pcidev, driver_name)) { in hptiop_probe()
1326 hba->pcidev = pcidev; in hptiop_probe()
1341 host->irq = pcidev->irq; in hptiop_probe()
1415 pci_set_drvdata(pcidev, host); in hptiop_probe()
1417 if (request_irq(pcidev->irq, hptiop_intr, IRQF_SHARED, in hptiop_probe()
1420 hba->host->host_no, pcidev->irq); in hptiop_probe()
1432 start_virt = dma_alloc_coherent(&pcidev->dev, in hptiop_probe()
1462 if (scsi_add_host(host, &pcidev->dev)) { in hptiop_probe()
1476 dma_free_coherent(&hba->pcidev->dev, in hptiop_probe()
1484 free_irq(hba->pcidev->irq, hba); in hptiop_probe()
1495 pci_release_regions(pcidev); in hptiop_probe()
1498 pci_disable_device(pcidev); in hptiop_probe()
1504 static void hptiop_shutdown(struct pci_dev *pcidev) in hptiop_shutdown() argument
1506 struct Scsi_Host *host = pci_get_drvdata(pcidev); in hptiop_shutdown()
1547 static void hptiop_remove(struct pci_dev *pcidev) in hptiop_remove() argument
1549 struct Scsi_Host *host = pci_get_drvdata(pcidev); in hptiop_remove()
1557 hptiop_shutdown(pcidev); in hptiop_remove()
1559 free_irq(hba->pcidev->irq, hba); in hptiop_remove()
1563 dma_free_coherent(&hba->pcidev->dev, in hptiop_remove()
1575 pci_release_regions(hba->pcidev); in hptiop_remove()
1576 pci_set_drvdata(hba->pcidev, NULL); in hptiop_remove()
1577 pci_disable_device(hba->pcidev); in hptiop_remove()