Home
last modified time | relevance | path

Searched refs:pcie_cap (Results 1 – 20 of 20) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Dreset.c46 int pcie_cap; in mlx4_reset() local
79 pcie_cap = pci_pcie_cap(dev->persist->pdev); in mlx4_reset()
141 if (pcie_cap) { 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()
/Linux-v4.19/arch/x86/pci/
Dintel_mid_pci.c65 u32 pcie_cap = 0, cap_data; in fixed_bar_cap() local
74 devfn, pos, 4, &pcie_cap)) in fixed_bar_cap()
77 if (PCI_EXT_CAP_ID(pcie_cap) == 0x0000 || in fixed_bar_cap()
78 PCI_EXT_CAP_ID(pcie_cap) == 0xffff) in fixed_bar_cap()
81 if (PCI_EXT_CAP_ID(pcie_cap) == PCI_EXT_CAP_ID_VNDR) { in fixed_bar_cap()
88 pos = PCI_EXT_CAP_NEXT(pcie_cap); in fixed_bar_cap()
Dfixup.c280 dev->pcie_cap + PCI_EXP_LNKCTL; in pcie_rootport_aspm_quirk()
/Linux-v4.19/arch/powerpc/kernel/
Deeh.c211 cap = edev->pcie_cap; in eeh_dump_dev_log()
746 if (edev->pcie_cap) { in eeh_restore_vf_config()
749 eeh_ops->read_config(pdn, edev->pcie_cap + PCI_EXP_DEVCTL, in eeh_restore_vf_config()
753 eeh_ops->write_config(pdn, edev->pcie_cap + PCI_EXP_DEVCTL, in eeh_restore_vf_config()
757 eeh_ops->read_config(pdn, edev->pcie_cap + PCI_EXP_DEVCAP2, in eeh_restore_vf_config()
761 edev->pcie_cap + PCI_EXP_DEVCTL2, in eeh_restore_vf_config()
765 edev->pcie_cap + PCI_EXP_DEVCTL2, in eeh_restore_vf_config()
776 if (edev->pcie_cap) { in eeh_restore_vf_config()
777 eeh_ops->read_config(pdn, edev->pcie_cap + PCI_EXP_DEVCTL, in eeh_restore_vf_config()
783 eeh_ops->write_config(pdn, edev->pcie_cap + PCI_EXP_DEVCTL, in eeh_restore_vf_config()
[all …]
Deeh_pe.c728 cap = edev->pcie_cap; in eeh_bridge_check_link()
/Linux-v4.19/arch/powerpc/platforms/powernv/
Deeh-powernv.c333 if (!edev || !edev->pcie_cap) in pnv_eeh_find_ecap()
404 edev->pcie_cap = pnv_eeh_find_cap(pdn, PCI_CAP_ID_EXP); in pnv_eeh_probe()
409 if (edev->pcie_cap) { in pnv_eeh_probe()
410 pnv_pci_cfg_read(pdn, edev->pcie_cap + PCI_EXP_FLAGS, in pnv_eeh_probe()
981 if (WARN_ON(!edev->pcie_cap)) in pnv_eeh_do_flr()
984 eeh_ops->read_config(pdn, edev->pcie_cap + PCI_EXP_DEVCAP, 4, &reg); in pnv_eeh_do_flr()
992 edev->pcie_cap + PCI_EXP_DEVSTA, in pnv_eeh_do_flr()
994 eeh_ops->read_config(pdn, edev->pcie_cap + PCI_EXP_DEVCTL, in pnv_eeh_do_flr()
997 eeh_ops->write_config(pdn, edev->pcie_cap + PCI_EXP_DEVCTL, in pnv_eeh_do_flr()
1002 eeh_ops->read_config(pdn, edev->pcie_cap + PCI_EXP_DEVCTL, in pnv_eeh_do_flr()
[all …]
/Linux-v4.19/arch/powerpc/platforms/pseries/
Deeh_pseries.c215 if (!edev || !edev->pcie_cap) in pseries_eeh_find_ecap()
274 edev->pcie_cap = pseries_eeh_find_cap(pdn, PCI_CAP_ID_EXP); in pseries_eeh_probe()
279 if (edev->pcie_cap) { in pseries_eeh_probe()
280 rtas_read_config(pdn, edev->pcie_cap + PCI_EXP_FLAGS, in pseries_eeh_probe()
/Linux-v4.19/drivers/scsi/csiostor/
Dcsio_wr.c1317 int pcie_cap; in csio_wr_fixup_host_params() local
1348 pcie_cap = pci_find_capability(hw->pdev, PCI_CAP_ID_EXP); in csio_wr_fixup_host_params()
1349 if (pcie_cap) { in csio_wr_fixup_host_params()
1358 pcie_cap + PCI_EXP_DEVCTL, in csio_wr_fixup_host_params()
/Linux-v4.19/drivers/misc/cardreader/
Drtsx_pcr.c73 rtsx_pci_update_cfg_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL, in rtsx_pci_enable_aspm()
79 rtsx_pci_update_cfg_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL, in rtsx_pci_disable_aspm()
1243 pcr->pcie_cap = pci_find_capability(pcr->pci, PCI_CAP_ID_EXP); in rtsx_pci_init_hw()
1317 rtsx_pci_write_config_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL + 1, 1); in rtsx_pci_init_hw()
Drts5249.c367 pcr->pcie_cap + PCI_EXP_LNKCTL, in rts5249_set_aspm()
Drts5260.c634 rtsx_pci_update_cfg_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL, in rts5260_set_aspm()
/Linux-v4.19/arch/powerpc/include/asm/
Deeh.h141 int pcie_cap; /* Saved PCIe capability */ member
/Linux-v4.19/include/linux/
Drtsx_pci.h1186 int pcie_cap; member
Dpci.h307 u8 pcie_cap; /* PCIe capability offset */ member
2045 return dev->pcie_cap; in pci_pcie_cap()
/Linux-v4.19/drivers/net/ethernet/intel/e1000e/
Dmac.c21 cap_offset = adapter->pdev->pcie_cap; in e1000e_get_bus_info_pcie()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dt4_hw.c7163 unsigned int pcie_cap; in t4_fixup_host_params() local
7188 pcie_cap = pci_find_capability(adap->pdev, PCI_CAP_ID_EXP); in t4_fixup_host_params()
7189 if (pcie_cap) { in t4_fixup_host_params()
7198 pcie_cap + PCI_EXP_DEVCTL, in t4_fixup_host_params()
/Linux-v4.19/drivers/pci/
Dquirks.c4766 if (pdev->pcie_cap || pci_find_capability(pdev, PCI_CAP_ID_EXP)) in quirk_intel_qat_vf_cap()
4799 pdev->pcie_cap = pos; in quirk_intel_qat_vf_cap()
Dprobe.c1324 pdev->pcie_cap = pos; in set_pcie_port_type()
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/
Dqed_rdma.c526 cdev->pdev->pcie_cap + PCI_EXP_DEVCTL2, in qed_rdma_init_devinfo()
/Linux-v4.19/drivers/net/ethernet/marvell/
Dsky2.c3346 sky2_pci_write16(hw, pdev->pcie_cap + PCI_EXP_LNKCTL, in sky2_reset()