Lines Matching refs:pcidev
135 dd->pcidev = pdev; in qib_pcie_ddinit()
178 pci_disable_device(dd->pcidev); in qib_pcie_ddcleanup()
179 pci_release_regions(dd->pcidev); in qib_pcie_ddcleanup()
181 pci_set_drvdata(dd->pcidev, NULL); in qib_pcie_ddcleanup()
191 struct pci_dev *pdev = dd->pcidev; in qib_cache_msi_info()
211 if (!pci_is_pcie(dd->pcidev)) { in qib_pcie_params()
223 nvec = pci_alloc_irq_vectors(dd->pcidev, 1, maxvec, flags); in qib_pcie_params()
233 *nent = !dd->pcidev->msix_enabled ? 0 : nvec; in qib_pcie_params()
235 if (dd->pcidev->msi_enabled) in qib_pcie_params()
236 qib_cache_msi_info(dd, dd->pcidev->msi_cap); in qib_pcie_params()
238 pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKSTA, &linkstat); in qib_pcie_params()
290 pci_free_irq(dd->pcidev, 0, dd); in qib_free_irq()
291 pci_free_irq_vectors(dd->pcidev); in qib_free_irq()
312 pos = dd->pcidev->msi_cap; in qib_reinit_intr()
320 pci_write_config_dword(dd->pcidev, pos + PCI_MSI_ADDRESS_LO, in qib_reinit_intr()
322 pci_write_config_dword(dd->pcidev, pos + PCI_MSI_ADDRESS_HI, in qib_reinit_intr()
324 pci_read_config_word(dd->pcidev, pos + PCI_MSI_FLAGS, &control); in qib_reinit_intr()
327 pci_write_config_word(dd->pcidev, pos + PCI_MSI_FLAGS, in qib_reinit_intr()
331 pci_write_config_word(dd->pcidev, pos + in qib_reinit_intr()
342 pci_set_master(dd->pcidev); in qib_reinit_intr()
353 pci_read_config_word(dd->pcidev, PCI_COMMAND, cmd); in qib_pcie_getcmd()
354 pci_read_config_byte(dd->pcidev, PCI_INTERRUPT_LINE, iline); in qib_pcie_getcmd()
355 pci_read_config_byte(dd->pcidev, PCI_CACHE_LINE_SIZE, cline); in qib_pcie_getcmd()
362 r = pci_write_config_dword(dd->pcidev, PCI_BASE_ADDRESS_0, in qib_pcie_reenable()
366 r = pci_write_config_dword(dd->pcidev, PCI_BASE_ADDRESS_1, in qib_pcie_reenable()
371 pci_write_config_word(dd->pcidev, PCI_COMMAND, cmd); in qib_pcie_reenable()
372 pci_write_config_byte(dd->pcidev, PCI_INTERRUPT_LINE, iline); in qib_pcie_reenable()
373 pci_write_config_byte(dd->pcidev, PCI_CACHE_LINE_SIZE, cline); in qib_pcie_reenable()
374 r = pci_enable_device(dd->pcidev); in qib_pcie_reenable()
401 parent = dd->pcidev->bus->self; in qib_tune_pcie_coalesce()
403 qib_devinfo(dd->pcidev, "Parent not root\n"); in qib_tune_pcie_coalesce()
465 parent = dd->pcidev->bus->self; in qib_tune_pcie_caps()
467 qib_devinfo(dd->pcidev, "Parent not root\n"); in qib_tune_pcie_caps()
471 if (!pci_is_pcie(parent) || !pci_is_pcie(dd->pcidev)) in qib_tune_pcie_caps()
477 ep_mpss = dd->pcidev->pcie_mpss; in qib_tune_pcie_caps()
478 ep_mps = ffs(pcie_get_mps(dd->pcidev)) - 8; in qib_tune_pcie_caps()
495 pcie_set_mps(dd->pcidev, 128 << ep_mps); in qib_tune_pcie_caps()
509 ep_mrrs = pcie_get_readrq(dd->pcidev); in qib_tune_pcie_caps()
517 pcie_set_readrq(dd->pcidev, ep_mrrs); in qib_tune_pcie_caps()