Lines Matching refs:PciDev
86 static void Cpqfc_initHBAdata(CPQFCHBA * cpqfcHBAdata, struct pci_dev *PciDev) in Cpqfc_initHBAdata() argument
89 cpqfcHBAdata->PciDev = PciDev; // copy PCI info ptr in Cpqfc_initHBAdata()
92 cpqfcHBAdata->fcChip.Registers.IOBaseL = PciDev->resource[1].start & PCI_BASE_ADDRESS_IO_MASK; in Cpqfc_initHBAdata()
93 cpqfcHBAdata->fcChip.Registers.IOBaseU = PciDev->resource[2].start & PCI_BASE_ADDRESS_IO_MASK; in Cpqfc_initHBAdata()
96 cpqfcHBAdata->fcChip.Registers.MemBase = PciDev->resource[3].start & PCI_BASE_ADDRESS_MEM_MASK; in Cpqfc_initHBAdata()
97 …cpqfcHBAdata->fcChip.Registers.ReMapMemBase = ioremap(PciDev->resource[3].start & PCI_BASE_ADDRESS… in Cpqfc_initHBAdata()
98 cpqfcHBAdata->fcChip.Registers.RAMBase = PciDev->resource[4].start; in Cpqfc_initHBAdata()
99 cpqfcHBAdata->fcChip.Registers.SROMBase = PciDev->resource[5].start; // NULL for HP TS adapter in Cpqfc_initHBAdata()
221 struct pci_dev *PciDev = NULL; in cpqfcTS_detect() local
244 while ((PciDev = pci_find_device(cpqfc_boards[i].vendor_id, cpqfc_boards[i].device_id, PciDev))) { in cpqfcTS_detect()
246 if (pci_enable_device(PciDev) != 0) { in cpqfcTS_detect()
250 if (pci_set_dma_mask(PciDev, CPQFCTS_DMA_MASK) != 0) { in cpqfcTS_detect()
262 DEBUG_PCI(printk(" HostAdapter->PciDev->irq = %u\n", PciDev->irq)); in cpqfcTS_detect()
263 DEBUG_PCI(printk(" PciDev->baseaddress[0]= %lx\n", PciDev->resource[0].start)); in cpqfcTS_detect()
264 DEBUG_PCI(printk(" PciDev->baseaddress[1]= %lx\n", PciDev->resource[1].start)); in cpqfcTS_detect()
265 DEBUG_PCI(printk(" PciDev->baseaddress[2]= %lx\n", PciDev->resource[2].start)); in cpqfcTS_detect()
266 DEBUG_PCI(printk(" PciDev->baseaddress[3]= %lx\n", PciDev->resource[3].start)); in cpqfcTS_detect()
268 scsi_set_pci_device(HostAdapter, PciDev); in cpqfcTS_detect()
269 HostAdapter->irq = PciDev->irq; // copy for Scsi layers in cpqfcTS_detect()
275 PciDev->resource[1].start & PCI_BASE_ADDRESS_IO_MASK; in cpqfcTS_detect()
296 Cpqfc_initHBAdata(cpqfcHBAdata, PciDev); // fill MOST fields in cpqfcTS_detect()
556 pciinfo.bus = cpqfcHBAdata->PciDev->bus->number; in cpqfcTS_ioctl()
557 pciinfo.dev_fn = cpqfcHBAdata->PciDev->devfn; in cpqfcTS_ioctl()
558 pciinfo.board_id = cpqfcHBAdata->PciDev->device | (cpqfcHBAdata->PciDev->vendor << 16); in cpqfcTS_ioctl()
680 …cpqfcHBA->fcChip.Registers.wwn_lo, cpqfcHBA->PciDev->bus->number, cpqfcHBA->PciDev->device, HostAd… in cpqfcTS_info()