Lines Matching defs:pdev

5655 	if (ioc->pdev->subsystem_vendor == PCI_VENDOR_ID_IBM)
7454 if ((ioc->pdev->subsystem_vendor == PCI_VENDOR_ID_IBM) &&
11230 * @pdev: PCI device struct
11237 _scsih_get_shost_and_ioc(struct pci_dev *pdev,
11240 *shost = pci_get_drvdata(pdev);
11242 dev_err(&pdev->dev, "pdev's driver data is null\n");
11248 dev_err(&pdev->dev, "shost's private data is null\n");
11257 * @pdev: PCI device struct
11261 static void scsih_remove(struct pci_dev *pdev)
11274 if (_scsih_get_shost_and_ioc(pdev, &shost, &ioc))
11279 if (!pci_device_is_present(pdev)) {
11361 * @pdev: PCI device struct
11364 scsih_shutdown(struct pci_dev *pdev)
11372 if (_scsih_get_shost_and_ioc(pdev, &shost, &ioc))
11377 if (!pci_device_is_present(pdev)) {
11919 blk_mq_pci_map_queues(map, ioc->pdev, offset);
12009 * @pdev: PCI device struct
12016 _scsih_determine_hba_mpi_version(struct pci_dev *pdev)
12019 switch (pdev->device) {
12080 * @pdev: PCI device struct
12086 _scsih_probe(struct pci_dev *pdev, const struct pci_device_id *id)
12095 hba_mpi_version = _scsih_determine_hba_mpi_version(pdev);
12114 pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S |
12126 switch (pdev->device) {
12158 switch (pdev->device) {
12171 dev_err(&pdev->dev,
12173 pdev->device, pdev->subsystem_vendor,
12174 pdev->subsystem_device);
12178 dev_err(&pdev->dev,
12180 pdev->device, pdev->subsystem_vendor,
12181 pdev->subsystem_device);
12185 dev_info(&pdev->dev,
12196 pdev->revision >= SAS3_PCI_DEVICE_C0_REVISION) ||
12234 ioc->pdev = pdev;
12378 dev_info(&ioc->pdev->dev,
12383 rv = scsi_add_host(shost, &pdev->dev);
12414 struct pci_dev *pdev = to_pci_dev(dev);
12419 rc = _scsih_get_shost_and_ioc(pdev, &shost, &ioc);
12426 ioc_info(ioc, "pdev=0x%p, slot=%s, entering operating state\n",
12427 pdev, pci_name(pdev));
12442 struct pci_dev *pdev = to_pci_dev(dev);
12445 pci_power_t device_state = pdev->current_state;
12448 r = _scsih_get_shost_and_ioc(pdev, &shost, &ioc);
12452 ioc_info(ioc, "pdev=0x%p, slot=%s, previous operating state [D%d]\n",
12453 pdev, pci_name(pdev), device_state);
12455 ioc->pdev = pdev;
12468 * @pdev: PCI device struct
12476 scsih_pci_error_detected(struct pci_dev *pdev, pci_channel_state_t state)
12481 if (_scsih_get_shost_and_ioc(pdev, &shost, &ioc))
12509 * @pdev: PCI device struct
12516 scsih_pci_slot_reset(struct pci_dev *pdev)
12522 if (_scsih_get_shost_and_ioc(pdev, &shost, &ioc))
12528 ioc->pdev = pdev;
12529 pci_restore_state(pdev);
12548 * @pdev: pointer to PCI device
12555 scsih_pci_resume(struct pci_dev *pdev)
12560 if (_scsih_get_shost_and_ioc(pdev, &shost, &ioc))
12571 * @pdev: pointer to PCI device
12574 scsih_pci_mmio_enabled(struct pci_dev *pdev)
12579 if (_scsih_get_shost_and_ioc(pdev, &shost, &ioc))