Lines Matching refs:pdev
797 static int amdgpu_kick_out_firmware_fb(struct pci_dev *pdev) in amdgpu_kick_out_firmware_fb() argument
807 ap->ranges[0].base = pci_resource_start(pdev, 0); in amdgpu_kick_out_firmware_fb()
808 ap->ranges[0].size = pci_resource_len(pdev, 0); in amdgpu_kick_out_firmware_fb()
811 primary = pdev->resource[PCI_ROM_RESOURCE].flags & IORESOURCE_ROM_SHADOW; in amdgpu_kick_out_firmware_fb()
821 static int amdgpu_pci_probe(struct pci_dev *pdev, in amdgpu_pci_probe() argument
857 dev_info(&pdev->dev, in amdgpu_pci_probe()
859 dev_info(&pdev->dev, in amdgpu_pci_probe()
874 dev_info(&pdev->dev, in amdgpu_pci_probe()
876 dev_info(&pdev->dev, in amdgpu_pci_probe()
885 ret = amdgpu_kick_out_firmware_fb(pdev); in amdgpu_pci_probe()
896 dev = drm_dev_alloc(&kms_driver, &pdev->dev); in amdgpu_pci_probe()
900 ret = pci_enable_device(pdev); in amdgpu_pci_probe()
904 dev->pdev = pdev; in amdgpu_pci_probe()
906 pci_set_drvdata(pdev, dev); in amdgpu_pci_probe()
921 pci_disable_device(pdev); in amdgpu_pci_probe()
958 struct pci_dev *pdev = NULL; in amdgpu_attach_dfly() local
966 drm_init_pdev(bsddev, &pdev); in amdgpu_attach_dfly()
969 drm_print_pdev(pdev); in amdgpu_attach_dfly()
976 return amdgpu_pci_probe(pdev, ent); in amdgpu_attach_dfly()
984 amdgpu_pci_remove(struct pci_dev *pdev)
986 struct drm_device *dev = pci_get_drvdata(pdev);
990 pci_disable_device(pdev);
991 pci_set_drvdata(pdev, NULL);
995 amdgpu_pci_shutdown(struct pci_dev *pdev)
997 struct drm_device *dev = pci_get_drvdata(pdev);
1010 struct pci_dev *pdev = to_pci_dev(dev);
1012 struct drm_device *drm_dev = pci_get_drvdata(pdev);
1018 struct pci_dev *pdev = to_pci_dev(dev);
1019 struct drm_device *drm_dev = pci_get_drvdata(pdev);
1033 struct pci_dev *pdev = to_pci_dev(dev);
1035 struct drm_device *drm_dev = pci_get_drvdata(pdev);
1041 struct pci_dev *pdev = to_pci_dev(dev);
1043 struct drm_device *drm_dev = pci_get_drvdata(pdev);
1049 struct pci_dev *pdev = to_pci_dev(dev);
1051 struct drm_device *drm_dev = pci_get_drvdata(pdev);
1057 struct pci_dev *pdev = to_pci_dev(dev);
1059 struct drm_device *drm_dev = pci_get_drvdata(pdev);
1065 struct pci_dev *pdev = to_pci_dev(dev);
1066 struct drm_device *drm_dev = pci_get_drvdata(pdev);
1078 pci_save_state(pdev);
1079 pci_disable_device(pdev);
1080 pci_ignore_hotplug(pdev);
1082 pci_set_power_state(pdev, PCI_D3cold);
1084 pci_set_power_state(pdev, PCI_D3hot);
1092 struct pci_dev *pdev = to_pci_dev(dev);
1093 struct drm_device *drm_dev = pci_get_drvdata(pdev);
1103 pci_set_power_state(pdev, PCI_D0);
1104 pci_restore_state(pdev);
1105 ret = pci_enable_device(pdev);
1108 pci_set_master(pdev);
1118 struct pci_dev *pdev = to_pci_dev(dev);
1119 struct drm_device *drm_dev = pci_get_drvdata(pdev);