Home
last modified time | relevance | path

Searched refs:hca_header (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_reset.c45 u32 *hca_header = NULL; in mlx4_reset() local
72 hca_header = kmalloc(256, GFP_KERNEL); in mlx4_reset()
73 if (!hca_header) { in mlx4_reset()
85 hca_header + i)) { in mlx4_reset()
142 devctl = hca_header[(pcie_cap + PCI_EXP_DEVCTL) / 4]; in mlx4_reset()
150 linkctl = hca_header[(pcie_cap + PCI_EXP_LNKCTL) / 4]; in mlx4_reset()
165 hca_header[i])) { in mlx4_reset()
174 hca_header[PCI_COMMAND / 4])) { in mlx4_reset()
181 kfree(hca_header); in mlx4_reset()
/freebsd/sys/dev/mthca/
H A Dmthca_reset.c45 u32 *hca_header = NULL; in mthca_reset() local
105 hca_header = kmalloc(256, GFP_KERNEL); in mthca_reset()
106 if (!hca_header) { in mthca_reset()
116 if (pci_read_config_dword(mdev->pdev, i * 4, hca_header + i)) { in mthca_reset()
247 hca_header[hca_pcix_cap / 4])) { in mthca_reset()
256 devctl = hca_header[(hca_pcie_cap + PCI_EXP_DEVCTL) / 4]; in mthca_reset()
264 linkctl = hca_header[(hca_pcie_cap + PCI_EXP_LNKCTL) / 4]; in mthca_reset()
278 if (pci_write_config_dword(mdev->pdev, i * 4, hca_header[i])) { in mthca_reset()
287 hca_header[PCI_COMMAND / 4])) { in mthca_reset()
300 kfree(hca_header); in mthca_reset()