Home
last modified time | relevance | path

Searched refs:mdcr_el2 (Results 1 – 4 of 4) sorted by relevance

/rk3399_ARM-atf/lib/extensions/pmuv3/aarch64/
H A Dpmuv3.c12 static u_register_t init_mdcr_el2_hpmn(u_register_t mdcr_el2) in init_mdcr_el2_hpmn() argument
18 mdcr_el2 &= ~MDCR_EL2_HPMN_MASK; in init_mdcr_el2_hpmn()
19 mdcr_el2 |= ((read_pmcr_el0() >> PMCR_EL0_N_SHIFT) & PMCR_EL0_N_MASK); in init_mdcr_el2_hpmn()
21 return mdcr_el2; in init_mdcr_el2_hpmn()
43 mdcr_el2_val = read_el2_ctx_common(get_el2_sysregs_ctx(ctx), mdcr_el2); in pmuv3_enable()
45 write_el2_ctx_common(get_el2_sysregs_ctx(ctx), mdcr_el2, mdcr_el2_val); in pmuv3_enable()
124 static u_register_t mtpmu_disable_el2(u_register_t mdcr_el2) in mtpmu_disable_el2() argument
132 mdcr_el2 &= ~MDCR_EL2_MTPME; in mtpmu_disable_el2()
134 return mdcr_el2; in mtpmu_disable_el2()
139 u_register_t mdcr_el2 = read_mdcr_el2(); in pmuv3_init_el2_unused() local
[all …]
/rk3399_ARM-atf/lib/el3_runtime/aarch64/
H A Dcontext_mgmt.c1036 u_register_t mdcr_el2; in init_nonsecure_el2_unused() local
1109 mdcr_el2 = MDCR_EL2_RESET_VAL & in init_nonsecure_el2_unused()
1113 write_mdcr_el2(mdcr_el2); in init_nonsecure_el2_unused()
1464 write_el2_ctx_common(ctx, mdcr_el2, read_mdcr_el2()); in el2_sysregs_context_save_common()
1499 write_mdcr_el2(read_el2_ctx_common(ctx, mdcr_el2)); in el2_sysregs_context_restore_common()
/rk3399_ARM-atf/include/lib/el3_runtime/
H A Dcontext_el2.h39 uint64_t mdcr_el2; member
/rk3399_ARM-atf/include/arch/aarch64/
H A Darch_helpers.h576 DEFINE_SYSREG_RW_FUNCS(mdcr_el2)