Lines Matching refs:bdf
59 static bool ibecc_enabled(const pcie_bdf_t bdf) in ibecc_enabled() argument
61 return !!(pcie_conf_read(bdf, CAPID0_C_REG) & CAPID0_C_IBECC_ENABLED); in ibecc_enabled()
64 static void ibecc_errcmd_setup(const pcie_bdf_t bdf, bool enable) in ibecc_errcmd_setup() argument
68 errcmd = pcie_conf_read(bdf, ERRCMD_REG); in ibecc_errcmd_setup()
76 pcie_conf_write(bdf, ERRCMD_REG, errcmd); in ibecc_errcmd_setup()
79 static void ibecc_errsts_clear(const pcie_bdf_t bdf) in ibecc_errsts_clear() argument
83 errsts = pcie_conf_read(bdf, ERRSTS_REG); in ibecc_errsts_clear()
89 pcie_conf_write(bdf, ERRSTS_REG, errsts); in ibecc_errsts_clear()
288 const pcie_bdf_t bdf = PCI_HOST_BRIDGE; in edac_ibecc_init() local
293 conf_data = pcie_conf_read(bdf, PCIE_CONF_ID); in edac_ibecc_init()
322 if (!ibecc_enabled(bdf)) { in edac_ibecc_init()
327 mchbar = pcie_conf_read(bdf, MCHBAR_REG); in edac_ibecc_init()
328 mchbar |= (uint64_t)pcie_conf_read(bdf, MCHBAR_REG + 1) << 32; in edac_ibecc_init()
341 ibecc_errcmd_setup(bdf, true); in edac_ibecc_init()