Lines Matching refs:ctr

31 static inline u32 get_pmlca(int ctr)  in get_pmlca()  argument
35 switch (ctr) { in get_pmlca()
61 static inline void set_pmlca(int ctr, u32 pmlca) in set_pmlca() argument
63 switch (ctr) { in set_pmlca()
134 static void init_pmc_stop(int ctr) in init_pmc_stop() argument
140 switch (ctr) { in init_pmc_stop()
170 static void set_pmc_event(int ctr, int event) in set_pmc_event() argument
174 pmlca = get_pmlca(ctr); in set_pmc_event()
180 set_pmlca(ctr, pmlca); in set_pmc_event()
183 static void set_pmc_user_kernel(int ctr, int user, int kernel) in set_pmc_user_kernel() argument
187 pmlca = get_pmlca(ctr); in set_pmc_user_kernel()
199 set_pmlca(ctr, pmlca); in set_pmc_user_kernel()
202 static void set_pmc_marked(int ctr, int mark0, int mark1) in set_pmc_marked() argument
204 u32 pmlca = get_pmlca(ctr); in set_pmc_marked()
216 set_pmlca(ctr, pmlca); in set_pmc_marked()
219 static void pmc_start_ctr(int ctr, int enable) in pmc_start_ctr() argument
221 u32 pmlca = get_pmlca(ctr); in pmc_start_ctr()
230 set_pmlca(ctr, pmlca); in pmc_start_ctr()
259 static int fsl_emb_cpu_setup(struct op_counter_config *ctr) in fsl_emb_cpu_setup() argument
269 set_pmc_event(i, ctr[i].event); in fsl_emb_cpu_setup()
271 set_pmc_user_kernel(i, ctr[i].user, ctr[i].kernel); in fsl_emb_cpu_setup()
277 static int fsl_emb_reg_setup(struct op_counter_config *ctr, in fsl_emb_reg_setup() argument
291 reset_value[i] = 0x80000000UL - ctr[i].count; in fsl_emb_reg_setup()
296 static int fsl_emb_start(struct op_counter_config *ctr) in fsl_emb_start() argument
303 if (ctr[i].enabled) { in fsl_emb_start()
345 struct op_counter_config *ctr) in fsl_emb_handle_interrupt() argument
358 if (oprofile_running && ctr[i].enabled) { in fsl_emb_handle_interrupt()