Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Dreset.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()
/linux-6.1.9/drivers/infiniband/hw/mthca/
Dmthca_reset.c45 u32 *hca_header = NULL; in mthca_reset() local
96 hca_header = kmalloc(256, GFP_KERNEL); in mthca_reset()
97 if (!hca_header) { in mthca_reset()
105 if (pci_read_config_dword(mdev->pdev, i * 4, hca_header + i)) { in mthca_reset()
230 hca_header[hca_pcix_cap / 4])) { in mthca_reset()
239 devctl = hca_header[(hca_pcie_cap + PCI_EXP_DEVCTL) / 4]; in mthca_reset()
247 linkctl = hca_header[(hca_pcie_cap + PCI_EXP_LNKCTL) / 4]; in mthca_reset()
261 if (pci_write_config_dword(mdev->pdev, i * 4, hca_header[i])) { in mthca_reset()
270 hca_header[PCI_COMMAND / 4])) { in mthca_reset()
278 kfree(hca_header); in mthca_reset()