Lines Matching defs:trdc_reg
54 static uintptr_t trdc_get_mbc_base(uintptr_t trdc_reg, uint32_t mbc_x)
56 struct trdc_mgr *trdc_base = (struct trdc_mgr *)trdc_reg;
63 return trdc_reg + 0x10000 + 0x2000 * mbc_x;
66 static uintptr_t trdc_get_mrc_base(uintptr_t trdc_reg, uint32_t mrc_x)
68 struct trdc_mgr *trdc_base = (struct trdc_mgr *)trdc_reg;
76 return trdc_reg + 0x10000 + 0x2000 * mbc_num + 0x1000 * mrc_x;
79 uint32_t trdc_mbc_blk_num(uintptr_t trdc_reg, uint32_t mbc_x, uint32_t mem_x)
83 struct trdc_mbc *mbc_base = (struct trdc_mbc *)trdc_get_mbc_base(trdc_reg, mbc_x);
96 uint32_t trdc_mrc_rgn_num(uintptr_t trdc_reg, uint32_t mrc_x)
100 struct trdc_mrc *mrc_base = (struct trdc_mrc *)trdc_get_mrc_base(trdc_reg, mrc_x);
113 int trdc_mbc_set_control(uintptr_t trdc_reg, uint32_t mbc_x,
117 struct trdc_mbc *mbc_base = (struct trdc_mbc *)trdc_get_mbc_base(trdc_reg, mbc_x);
131 int trdc_mbc_blk_config(uintptr_t trdc_reg, uint32_t mbc_x,
138 struct trdc_mbc *mbc_base = (struct trdc_mbc *)trdc_get_mbc_base(trdc_reg, mbc_x);
186 int trdc_mrc_set_control(uintptr_t trdc_reg, uint32_t mrc_x,
190 struct trdc_mrc *mrc_base = (struct trdc_mrc *)trdc_get_mrc_base(trdc_reg, mrc_x);
204 int trdc_mrc_rgn_config(uintptr_t trdc_reg, uint32_t mrc_x,
212 struct trdc_mrc *mrc_base = (struct trdc_mrc *)trdc_get_mrc_base(trdc_reg, mrc_x);