Lines Matching defs:trdc_base
17 int trdc_mda_set_cpu(uintptr_t trdc_base, uint32_t mda_inst,
21 uint32_t val = mmio_read_32(trdc_base + MDAC_W_X(mda_inst, mda_reg));
30 mmio_write_32(trdc_base + MDAC_W_X(mda_inst, mda_reg), val);
35 int trdc_mda_set_noncpu(uintptr_t trdc_base, uint32_t mda_inst,
39 uint32_t val = mmio_read_32(trdc_base + MDAC_W_X(mda_inst, 0));
49 mmio_write_32(trdc_base + MDAC_W_X(mda_inst, 0), val);
56 struct trdc_mgr *trdc_base = (struct trdc_mgr *)trdc_reg;
57 uint32_t mbc_num = MBC_NUM(trdc_base->trdc_hwcfg0);
68 struct trdc_mgr *trdc_base = (struct trdc_mgr *)trdc_reg;
69 uint32_t mbc_num = MBC_NUM(trdc_base->trdc_hwcfg0);
70 uint32_t mrc_num = MRC_NUM(trdc_base->trdc_hwcfg0);
247 static bool is_trdc_mgr_slot(uintptr_t trdc_base, uint8_t mbc_id,
253 if (trdc_mgr_blks[i].trdc_base == trdc_base) {
278 if (trdc_mbc_enabled(mgr->trdc_base)) {
280 trdc_mbc_set_control(mgr->trdc_base, mgr->mbc_id, 7, 0x6000);
282 trdc_mbc_blk_config(mgr->trdc_base, mgr->mbc_id, i,
285 trdc_mbc_blk_config(mgr->trdc_base, mgr->mbc_id, i,
301 if (trdc_mrc_enabled(cfg->trdc_base)) {
304 trdc_mrc_set_control(cfg->trdc_base,
312 trdc_mrc_rgn_config(cfg->trdc_base, cfg->mrc_cfg[i].mrc_id,
323 if (trdc_mbc_enabled(cfg->trdc_base)) {
326 trdc_mbc_set_control(cfg->trdc_base,
334 num = trdc_mbc_blk_num(cfg->trdc_base,
340 is_mgr = is_trdc_mgr_slot(cfg->trdc_base,
347 trdc_mbc_blk_config(cfg->trdc_base,
355 trdc_mbc_blk_config(cfg->trdc_base,