Lines Matching refs:PciDev

86 struct iSeries_Device_Node* find_Device_Node(struct pci_dev* PciDev);
87 struct iSeries_Device_Node* get_Device_Node(struct pci_dev* PciDev);
136 udbg_printf(" - PciDev = 0x%p\n",DevNode->PciDev); in dumpDevice_Node()
299 struct pci_dev* PciDev; in iSeries_pcibios_fixup() local
310 pci_for_each_dev(PciDev) { in iSeries_pcibios_fixup()
311 DeviceNode = find_Device_Node(PciDev); in iSeries_pcibios_fixup()
314 PciDev->sysdata = (void*)DeviceNode; in iSeries_pcibios_fixup()
315 DeviceNode->PciDev = PciDev; in iSeries_pcibios_fixup()
317 PPCDBG(PPCDBG_BUSWALK,"PciDev 0x%p <==> DevNode 0x%p\n",PciDev,DeviceNode ); in iSeries_pcibios_fixup()
319 iSeries_allocateDeviceBars(PciDev); in iSeries_pcibios_fixup()
321 PPCDBGCALL(PPCDBG_BUSWALK,dumpPci_Dev(PciDev) ); in iSeries_pcibios_fixup()
323 iSeries_Device_Information(PciDev,Buffer, sizeof(Buffer) ); in iSeries_pcibios_fixup()
328 printk("PCI: Device Tree not found for 0x%016lX\n",(unsigned long)PciDev); in iSeries_pcibios_fixup()
353 void fixup_resources(struct pci_dev *PciDev) in fixup_resources() argument
355 PPCDBG(PPCDBG_BUSWALK,"fixup_resources PciDev %p\n",PciDev); in fixup_resources()
555 struct iSeries_Device_Node* find_Device_Node(struct pci_dev* PciDev) in find_Device_Node() argument
558 int Bus = PciDev->bus->number; in find_Device_Node()
559 int DevFn = PciDev->devfn; in find_Device_Node()
575 struct iSeries_Device_Node* get_Device_Node(struct pci_dev* PciDev) in get_Device_Node() argument
578 Node = (struct iSeries_Device_Node*)PciDev->sysdata; in get_Device_Node()
580 Node = find_Device_Node(PciDev); in get_Device_Node()
582 else if(Node->PciDev != PciDev) { in get_Device_Node()
583 Node = find_Device_Node(PciDev); in get_Device_Node()
659 int iSeries_pci_read_config_byte(struct pci_dev* PciDev, int Offset, u8* ReadValue) { in iSeries_pci_read_config_byte() argument
660 struct iSeries_Device_Node* DevNode = get_Device_Node(PciDev); in iSeries_pci_read_config_byte()
664 int iSeries_pci_read_config_word(struct pci_dev* PciDev, int Offset, u16* ReadValue) { in iSeries_pci_read_config_word() argument
665 struct iSeries_Device_Node* DevNode = get_Device_Node(PciDev); in iSeries_pci_read_config_word()
669 int iSeries_pci_read_config_dword(struct pci_dev* PciDev, int Offset, u32* ReadValue) { in iSeries_pci_read_config_dword() argument
670 struct iSeries_Device_Node* DevNode = get_Device_Node(PciDev); in iSeries_pci_read_config_dword()
726 int iSeries_pci_write_config_byte( struct pci_dev* PciDev,int Offset, u8 WriteValue) in iSeries_pci_write_config_byte() argument
728 struct iSeries_Device_Node* DevNode = get_Device_Node(PciDev); in iSeries_pci_write_config_byte()
732 int iSeries_pci_write_config_word( struct pci_dev* PciDev,int Offset,u16 WriteValue) in iSeries_pci_write_config_word() argument
734 struct iSeries_Device_Node* DevNode = get_Device_Node(PciDev); in iSeries_pci_write_config_word()
738 int iSeries_pci_write_config_dword(struct pci_dev* PciDev,int Offset,u32 WriteValue) in iSeries_pci_write_config_dword() argument
740 struct iSeries_Device_Node* DevNode = get_Device_Node(PciDev); in iSeries_pci_write_config_dword()
977 int pci_set_reset(struct pci_dev* PciDev, int State) { in pci_set_reset() argument
978 struct iSeries_Device_Node* DeviceNode = (struct iSeries_Device_Node*)PciDev->sysdata; in pci_set_reset()
980 printk("PCI: Pci Reset Failed, Device Node not found for pci_dev %p\n",PciDev); in pci_set_reset()