Lines Matching refs:pcid
125 a->firmware.header_buff = dma_alloc_coherent(&a->pcid->dev, in do_fm_api()
168 dma_free_coherent(&a->pcid->dev, in do_fm_api()
219 dma_free_coherent(&a->pcid->dev, in handle_buffered_ioctl()
229 esas2r_buffered_ioctl_pcid = a->pcid; in handle_buffered_ioctl()
230 esas2r_buffered_ioctl = dma_alloc_coherent(&a->pcid->dev, in handle_buffered_ioctl()
443 pci_read_config_dword(a->pcid, PCI_BASE_ADDRESS_2, in csmi_ioctl_callback()
445 pci_read_config_dword(a->pcid, PCI_BASE_ADDRESS_3, in csmi_ioctl_callback()
447 gcc->board_id = MAKEDWORD(a->pcid->subsystem_device, in csmi_ioctl_callback()
448 a->pcid->subsystem_vendor); in csmi_ioctl_callback()
452 gcc->pci_addr.bus_num = a->pcid->bus->number; in csmi_ioctl_callback()
453 gcc->pci_addr.device_num = PCI_SLOT(a->pcid->devfn); in csmi_ioctl_callback()
454 gcc->pci_addr.function_num = PCI_FUNC(a->pcid->devfn); in csmi_ioctl_callback()
756 u8 *class_code = (u8 *)&a->pcid->class; in hba_ioctl_callback()
774 gai->pci.vendor_id = a->pcid->vendor; in hba_ioctl_callback()
775 gai->pci.device_id = a->pcid->device; in hba_ioctl_callback()
776 gai->pci.ss_vendor_id = a->pcid->subsystem_vendor; in hba_ioctl_callback()
777 gai->pci.ss_device_id = a->pcid->subsystem_device; in hba_ioctl_callback()
781 gai->pci.rev_id = a->pcid->revision; in hba_ioctl_callback()
782 gai->pci.bus_num = a->pcid->bus->number; in hba_ioctl_callback()
783 gai->pci.dev_num = PCI_SLOT(a->pcid->devfn); in hba_ioctl_callback()
784 gai->pci.func_num = PCI_FUNC(a->pcid->devfn); in hba_ioctl_callback()
786 if (pci_is_pcie(a->pcid)) { in hba_ioctl_callback()
790 pcie_capability_read_word(a->pcid, PCI_EXP_LNKSTA, in hba_ioctl_callback()
792 pcie_capability_read_dword(a->pcid, PCI_EXP_LNKCAP, in hba_ioctl_callback()
809 if (a->pcid->msix_enabled) in hba_ioctl_callback()
811 else if (a->pcid->msi_enabled) in hba_ioctl_callback()
827 if (a->pcid->subsystem_device == ATTO_ESAS_R60F in hba_ioctl_callback()
828 || a->pcid->subsystem_device == ATTO_ESAS_R608 in hba_ioctl_callback()
829 || a->pcid->subsystem_device == ATTO_ESAS_R644 in hba_ioctl_callback()
830 || a->pcid->subsystem_device == ATTO_TSSC_3808E) in hba_ioctl_callback()
847 if (a->pcid->subsystem_device == ATTO_ESAS_R6F0 in hba_ioctl_callback()
848 || a->pcid->subsystem_device == ATTO_ESAS_R60F) in hba_ioctl_callback()
1424 ioctl->data.chaninfo.IRQ = a->pcid->irq; in esas2r_ioctl_handler()
1425 ioctl->data.chaninfo.device_id = a->pcid->device; in esas2r_ioctl_handler()
1426 ioctl->data.chaninfo.vendor_id = a->pcid->vendor; in esas2r_ioctl_handler()
1427 ioctl->data.chaninfo.ven_dev_id = a->pcid->subsystem_device; in esas2r_ioctl_handler()
1428 ioctl->data.chaninfo.revision_id = a->pcid->revision; in esas2r_ioctl_handler()
1429 ioctl->data.chaninfo.pci_bus = a->pcid->bus->number; in esas2r_ioctl_handler()
1430 ioctl->data.chaninfo.pci_dev_func = a->pcid->devfn; in esas2r_ioctl_handler()
1476 ioctl->data.modinfo.pci_dev = a->pcid; in esas2r_ioctl_handler()
1535 dma_free_coherent(&a->pcid->dev, in free_fw_buffers()
1550 a->firmware.data = dma_alloc_coherent(&a->pcid->dev, in allocate_fw_buffers()
1896 a->vda_buffer = dma_alloc_coherent(&a->pcid->dev, in esas2r_write_vda()
2054 dma_free_coherent(&a->pcid->dev, in esas2r_write_fs()
2065 a->fs_api_buffer = dma_alloc_coherent(&a->pcid->dev, in esas2r_write_fs()