Lines Matching refs:PciDev
866 int format_device_location(struct pci_dev* PciDev,char* BufPtr, int BufferSize) in format_device_location() argument
868 struct device_node* DevNode = (struct device_node*)PciDev->sysdata; in format_device_location()
871 LineLen += device_Location(PciDev,BufPtr+LineLen); in format_device_location()
872 LineLen += sprintf(BufPtr+LineLen," %12s",pci_class_name(PciDev->class >> 8) ); in format_device_location()
884 int pci_save_config_regs(struct pci_dev* PciDev,struct pci_config_reg_save_area* SaveArea) in pci_save_config_regs() argument
887 SaveArea->PciDev = PciDev; in pci_save_config_regs()
894 …SaveArea->RCode = pci_read_config_byte(PciDev, SaveArea->Register, &SaveArea->Regs[SaveArea->Regis… in pci_save_config_regs()
899 printk("PCI: pci_restore_save_regs failed! %p\n 0x%04X",PciDev,SaveArea->RCode); in pci_save_config_regs()
900 PCIFR( "pci_restore_save_regs failed! %p\n 0x%04X",PciDev,SaveArea->RCode); in pci_save_config_regs()
912 int pci_restore_config_regs(struct pci_dev* PciDev,struct pci_config_reg_save_area* SaveArea) in pci_restore_config_regs() argument
914 if (SaveArea->PciDev != PciDev || SaveArea->Flags == 0x80 || SaveArea->RCode != 0) { in pci_restore_config_regs()
915 printk("PCI: pci_restore_config_regs failed! %p\n",PciDev); in pci_restore_config_regs()
926 …SaveArea->RCode = pci_write_config_byte(PciDev,SaveArea->Register,SaveArea->Regs[SaveArea->Registe… in pci_restore_config_regs()
932 printk("PCI: pci_restore_config_regs failed! %p\n 0x%04X",PciDev,SaveArea->RCode); in pci_restore_config_regs()
933 PCIFR( "pci_restore_config_regs failed! %p\n 0x%04X",PciDev,SaveArea->RCode); in pci_restore_config_regs()
942 int pci_reset_device(struct pci_dev* PciDev, int AssertTime, int DelayTime) in pci_reset_device() argument
958 RtnCode = pci_set_reset(PciDev,1); in pci_reset_device()
962 RtnCode = pci_set_reset(PciDev,0); in pci_reset_device()
967 PCIFR( "Bus%3d, Device%3d, Reset\n",PciDev->bus->number,PCI_SLOT(PciDev->devfn) ); in pci_reset_device()
970 …printk("PCI: Bus%3d, Device%3d, Reset Failed:0x%04X\n",PciDev->bus->number,PCI_SLOT(PciDev->devfn)… in pci_reset_device()
971 …PCIFR( "Bus%3d, Device%3d, Reset Failed:0x%04X\n",PciDev->bus->number,PCI_SLOT(PciDev->devfn)… in pci_reset_device()