Lines Matching defs:pdev
543 static int be_ctrl_init(struct beiscsi_hba *phba, struct pci_dev *pdev)
550 ctrl->pdev = pdev;
551 status = beiscsi_map_pci_bars(phba, pdev);
555 mbox_mem_alloc->va = dma_alloc_coherent(&pdev->dev,
761 (PCI_FUNC(ctrl->pdev->devfn) * CEV_ISR_SIZE));
3477 dma_free_coherent(&ctrl->pdev->dev,
4829 nonemb_cmd.va = dma_alloc_coherent(&phba->ctrl.pdev->dev,
4844 dma_free_coherent(&phba->ctrl.pdev->dev, nonemb_cmd.size,
4858 dma_free_coherent(&phba->ctrl.pdev->dev, nonemb_cmd.size,
4875 dma_free_coherent(&phba->ctrl.pdev->dev, nonemb_cmd.size,
5439 static pci_ers_result_t beiscsi_eeh_err_detected(struct pci_dev *pdev,
5444 phba = (struct beiscsi_hba *)pci_get_drvdata(pdev);
5464 pci_disable_device(pdev);
5472 if (pdev->devfn == 0)
5478 static pci_ers_result_t beiscsi_eeh_reset(struct pci_dev *pdev)
5483 phba = (struct beiscsi_hba *)pci_get_drvdata(pdev);
5488 status = pci_enable_device(pdev);
5492 pci_set_master(pdev);
5493 pci_set_power_state(pdev, PCI_D0);
5494 pci_restore_state(pdev);
5509 static void beiscsi_eeh_resume(struct pci_dev *pdev)
5514 phba = (struct beiscsi_hba *)pci_get_drvdata(pdev);
5515 pci_save_state(pdev);