Lines Matching refs:uint64_t
33 uint64_t group0_cnts[AMU_GROUP0_MAX_COUNTERS];
35 uint64_t group1_cnts[AMU_GROUP1_MAX_COUNTERS];
39 uint64_t group0_voffsets[AMU_GROUP0_MAX_COUNTERS - 1U];
41 uint64_t group1_voffsets[AMU_GROUP1_MAX_COUNTERS];
60 static inline __unused uint64_t read_id_aa64pfr0_el1_amu(void) in read_id_aa64pfr0_el1_amu()
66 static inline __unused uint64_t read_hcr_el2_amvoffen(void) in read_hcr_el2_amvoffen()
72 static inline __unused void write_cptr_el2_tam(uint64_t value) in write_cptr_el2_tam()
78 static inline __unused void write_cptr_el3_tam(cpu_context_t *ctx, uint64_t tam) in write_cptr_el3_tam()
80 uint64_t value = read_ctx_reg(get_el3state_ctx(ctx), CTX_CPTR_EL3); in write_cptr_el3_tam()
88 static inline __unused void write_hcr_el2_amvoffen(uint64_t value) in write_hcr_el2_amvoffen()
94 static inline __unused void write_amcr_el0_cg1rz(uint64_t value) in write_amcr_el0_cg1rz()
100 static inline __unused uint64_t read_amcfgr_el0_ncg(void) in read_amcfgr_el0_ncg()
106 static inline __unused uint64_t read_amcgcr_el0_cg0nc(void) in read_amcgcr_el0_cg0nc()
112 static inline __unused uint64_t read_amcg1idr_el0_voff(void) in read_amcg1idr_el0_voff()
118 static inline __unused uint64_t read_amcgcr_el0_cg1nc(void) in read_amcgcr_el0_cg1nc()
124 static inline __unused uint64_t read_amcntenset0_el0_px(void) in read_amcntenset0_el0_px()
130 static inline __unused uint64_t read_amcntenset1_el0_px(void) in read_amcntenset1_el0_px()
136 static inline __unused void write_amcntenset0_el0_px(uint64_t px) in write_amcntenset0_el0_px()
138 uint64_t value = read_amcntenset0_el0(); in write_amcntenset0_el0_px()
146 static inline __unused void write_amcntenset1_el0_px(uint64_t px) in write_amcntenset1_el0_px()
148 uint64_t value = read_amcntenset1_el0(); in write_amcntenset1_el0_px()
156 static inline __unused void write_amcntenclr0_el0_px(uint64_t px) in write_amcntenclr0_el0_px()
158 uint64_t value = read_amcntenclr0_el0(); in write_amcntenclr0_el0_px()
166 static inline __unused void write_amcntenclr1_el0_px(uint64_t px) in write_amcntenclr1_el0_px()
168 uint64_t value = read_amcntenclr1_el0(); in write_amcntenclr1_el0_px()
199 uint64_t id_aa64pfr0_el1_amu; /* AMU version */ in amu_enable()
201 uint64_t amcfgr_el0_ncg; /* Number of counter groups */ in amu_enable()
202 uint64_t amcgcr_el0_cg0nc; /* Number of group 0 counters */ in amu_enable()
204 uint64_t amcntenset0_el0_px = 0x0; /* Group 0 enable mask */ in amu_enable()
205 uint64_t amcntenset1_el0_px = 0x0; /* Group 1 enable mask */ in amu_enable()
311 static uint64_t amu_group0_cnt_read(unsigned int idx) in amu_group0_cnt_read()
320 static void amu_group0_cnt_write(unsigned int idx, uint64_t val) in amu_group0_cnt_write()
335 static bool amu_group0_voffset_supported(uint64_t idx) in amu_group0_voffset_supported()
360 static uint64_t amu_group0_voffset_read(unsigned int idx) in amu_group0_voffset_read()
375 static void amu_group0_voffset_write(unsigned int idx, uint64_t val) in amu_group0_voffset_write()
387 static uint64_t amu_group1_cnt_read(unsigned int idx) in amu_group1_cnt_read()
397 static void amu_group1_cnt_write(unsigned int idx, uint64_t val) in amu_group1_cnt_write()
412 static uint64_t amu_group1_voffset_read(unsigned int idx) in amu_group1_voffset_read()
427 static void amu_group1_voffset_write(unsigned int idx, uint64_t val) in amu_group1_voffset_write()
441 uint64_t i, j; in amu_context_save()
446 uint64_t id_aa64pfr0_el1_amu; /* AMU version */ in amu_context_save()
447 uint64_t hcr_el2_amvoffen; /* AMU virtual offsets enabled */ in amu_context_save()
448 uint64_t amcgcr_el0_cg0nc; /* Number of group 0 counters */ in amu_context_save()
451 uint64_t amcg1idr_el0_voff; /* Auxiliary counters with virtual offsets */ in amu_context_save()
452 uint64_t amcfgr_el0_ncg; /* Number of counter groups */ in amu_context_save()
453 uint64_t amcgcr_el0_cg1nc; /* Number of group 1 counters */ in amu_context_save()
533 uint64_t i, j; in amu_context_restore()
538 uint64_t id_aa64pfr0_el1_amu; /* AMU version */ in amu_context_restore()
540 uint64_t hcr_el2_amvoffen; /* AMU virtual offsets enabled */ in amu_context_restore()
542 uint64_t amcfgr_el0_ncg; /* Number of counter groups */ in amu_context_restore()
543 uint64_t amcgcr_el0_cg0nc; /* Number of group 0 counters */ in amu_context_restore()
546 uint64_t amcgcr_el0_cg1nc; /* Number of group 1 counters */ in amu_context_restore()
547 uint64_t amcg1idr_el0_voff; /* Auxiliary counters with virtual offsets */ in amu_context_restore()