Lines Matching refs:bdf
30 cap.raw = pcie_conf_read(config->pcie->bdf, base + PTM_CAP_REG_OFFSET); in pcie_ptm_root_setup()
32 LOG_ERR("PTM root not supported on 0x%x", config->pcie->bdf); in pcie_ptm_root_setup()
39 pcie_conf_write(config->pcie->bdf, base + PTM_CTRL_REG_OFFSET, ctrl.raw); in pcie_ptm_root_setup()
41 LOG_DBG("PTM root 0x%x enabled", config->pcie->bdf); in pcie_ptm_root_setup()
51 reg = pcie_get_ext_cap(config->pcie->bdf, PCIE_EXT_CAP_ID_PTM); in pcie_ptm_root_init()
53 LOG_ERR("PTM capability not exposed on 0x%x", config->pcie->bdf); in pcie_ptm_root_init()
72 bool pcie_ptm_enable(pcie_bdf_t bdf) in DT_INST_FOREACH_STATUS_OKAY()
78 base = pcie_get_ext_cap(bdf, PCIE_EXT_CAP_ID_PTM); in DT_INST_FOREACH_STATUS_OKAY()
80 LOG_ERR("PTM capability not exposed on 0x%x", bdf); in DT_INST_FOREACH_STATUS_OKAY()
84 cap.raw = pcie_conf_read(bdf, base + PTM_CAP_REG_OFFSET); in DT_INST_FOREACH_STATUS_OKAY()
86 LOG_ERR("PTM requester not supported on 0x%x", bdf); in DT_INST_FOREACH_STATUS_OKAY()
92 pcie_conf_write(bdf, base + PTM_CTRL_REG_OFFSET, ctrl.raw); in DT_INST_FOREACH_STATUS_OKAY()
94 LOG_DBG("PTM requester 0x%x enabled", bdf); in DT_INST_FOREACH_STATUS_OKAY()