• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/hw/mthca/

Lines Matching refs:mdev

44 int mthca_reset(struct mthca_dev *mdev)
72 if (!(mdev->mthca_flags & MTHCA_FLAG_PCIE)) {
75 while ((bridge = pci_get_device(mdev->pdev->vendor,
76 mdev->pdev->device + 2,
79 bridge->subordinate == mdev->pdev->bus) {
80 mthca_dbg(mdev, "Found bridge: %s\n",
92 mthca_warn(mdev, "No bridge found for %s\n",
93 pci_name(mdev->pdev));
102 mthca_err(mdev, "Couldn't allocate memory to save HCA "
110 if (pci_read_config_dword(mdev->pdev, i * 4, hca_header + i)) {
112 mthca_err(mdev, "Couldn't save HCA "
118 hca_pcix_cap = pci_find_capability(mdev->pdev, PCI_CAP_ID_PCIX);
119 hca_pcie_cap = pci_find_capability(mdev->pdev, PCI_CAP_ID_EXP);
125 mthca_err(mdev, "Couldn't allocate memory to save HCA "
135 mthca_err(mdev, "Couldn't save HCA bridge "
143 mthca_err(mdev, "Couldn't locate HCA bridge "
151 void __iomem *reset = ioremap(pci_resource_start(mdev->pdev, 0) +
156 mthca_err(mdev, "Couldn't map HCA reset register, "
174 if (pci_read_config_dword(bridge ? bridge : mdev->pdev, 0, &v)) {
176 mthca_err(mdev, "Couldn't access HCA after reset, "
188 mthca_err(mdev, "PCI device did not come back after reset, "
199 mthca_err(mdev, "Couldn't restore HCA bridge Upstream "
206 mthca_err(mdev, "Couldn't restore HCA bridge Downstream "
220 mthca_err(mdev, "Couldn't restore HCA bridge reg %x, "
229 mthca_err(mdev, "Couldn't restore HCA bridge COMMAND, "
236 if (pci_write_config_dword(mdev->pdev, hca_pcix_cap,
239 mthca_err(mdev, "Couldn't restore HCA PCI-X "
247 if (pci_write_config_word(mdev->pdev, hca_pcie_cap + PCI_EXP_DEVCTL,
250 mthca_err(mdev, "Couldn't restore HCA PCI Express "
255 if (pci_write_config_word(mdev->pdev, hca_pcie_cap + PCI_EXP_LNKCTL,
258 mthca_err(mdev, "Couldn't restore HCA PCI Express "
268 if (pci_write_config_dword(mdev->pdev, i * 4, hca_header[i])) {
270 mthca_err(mdev, "Couldn't restore HCA reg %x, "
276 if (pci_write_config_dword(mdev->pdev, PCI_COMMAND,
279 mthca_err(mdev, "Couldn't restore HCA COMMAND, "