Lines Matching defs:pdev
5459 if (ioc->pdev->subsystem_vendor == PCI_VENDOR_ID_IBM)
6484 if ((ioc->pdev->subsystem_vendor == PCI_VENDOR_ID_IBM) &&
10121 * @pdev: PCI device struct
10128 _scsih_get_shost_and_ioc(struct pci_dev *pdev,
10131 *shost = pci_get_drvdata(pdev);
10133 dev_err(&pdev->dev, "pdev's driver data is null\n");
10139 dev_err(&pdev->dev, "shost's private data is null\n");
10148 * @pdev: PCI device struct
10152 static void scsih_remove(struct pci_dev *pdev)
10164 if (_scsih_get_shost_and_ioc(pdev, &shost, &ioc))
10169 if (!pci_device_is_present(pdev))
10241 * @pdev: PCI device struct
10244 scsih_shutdown(struct pci_dev *pdev)
10252 if (_scsih_get_shost_and_ioc(pdev, &shost, &ioc))
10257 if (!pci_device_is_present(pdev))
10764 * @pdev: PCI device struct
10771 _scsih_determine_hba_mpi_version(struct pci_dev *pdev)
10774 switch (pdev->device) {
10835 * @pdev: PCI device struct
10841 _scsih_probe(struct pci_dev *pdev, const struct pci_device_id *id)
10849 hba_mpi_version = _scsih_determine_hba_mpi_version(pdev);
10868 pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S |
10880 switch (pdev->device) {
10906 switch (pdev->device) {
10919 dev_err(&pdev->dev,
10921 pdev->device, pdev->subsystem_vendor,
10922 pdev->subsystem_device);
10926 dev_err(&pdev->dev,
10928 pdev->device, pdev->subsystem_vendor,
10929 pdev->subsystem_device);
10933 dev_info(&pdev->dev,
10944 pdev->revision >= SAS3_PCI_DEVICE_C0_REVISION) ||
10964 ioc->pdev = pdev;
11089 rv = scsi_add_host(shost, &pdev->dev);
11114 * @pdev: PCI device struct
11120 scsih_suspend(struct pci_dev *pdev, pm_message_t state)
11127 rc = _scsih_get_shost_and_ioc(pdev, &shost, &ioc);
11135 device_state = pci_choose_state(pdev, state);
11136 ioc_info(ioc, "pdev=0x%p, slot=%s, entering operating state [D%d]\n",
11137 pdev, pci_name(pdev), device_state);
11139 pci_save_state(pdev);
11141 pci_set_power_state(pdev, device_state);
11147 * @pdev: PCI device struct
11152 scsih_resume(struct pci_dev *pdev)
11156 pci_power_t device_state = pdev->current_state;
11159 r = _scsih_get_shost_and_ioc(pdev, &shost, &ioc);
11163 ioc_info(ioc, "pdev=0x%p, slot=%s, previous operating state [D%d]\n",
11164 pdev, pci_name(pdev), device_state);
11166 pci_set_power_state(pdev, PCI_D0);
11167 pci_enable_wake(pdev, PCI_D0, 0);
11168 pci_restore_state(pdev);
11169 ioc->pdev = pdev;
11183 * @pdev: PCI device struct
11191 scsih_pci_error_detected(struct pci_dev *pdev, pci_channel_state_t state)
11196 if (_scsih_get_shost_and_ioc(pdev, &shost, &ioc))
11223 * @pdev: PCI device struct
11230 scsih_pci_slot_reset(struct pci_dev *pdev)
11236 if (_scsih_get_shost_and_ioc(pdev, &shost, &ioc))
11242 ioc->pdev = pdev;
11243 pci_restore_state(pdev);
11262 * @pdev: pointer to PCI device
11269 scsih_pci_resume(struct pci_dev *pdev)
11274 if (_scsih_get_shost_and_ioc(pdev, &shost, &ioc))
11285 * @pdev: pointer to PCI device
11288 scsih_pci_mmio_enabled(struct pci_dev *pdev)
11293 if (_scsih_get_shost_and_ioc(pdev, &shost, &ioc))