Lines Matching full:ctr

27 static inline u32 get_pmlca(int ctr)  in get_pmlca()  argument
31 switch (ctr) { in get_pmlca()
51 panic("Bad ctr number\n"); in get_pmlca()
57 static inline void set_pmlca(int ctr, u32 pmlca) in set_pmlca() argument
59 switch (ctr) { in set_pmlca()
79 panic("Bad ctr number\n"); in set_pmlca()
130 static void init_pmc_stop(int ctr) in init_pmc_stop() argument
136 switch (ctr) { in init_pmc_stop()
162 panic("Bad ctr number!\n"); in init_pmc_stop()
166 static void set_pmc_event(int ctr, int event) in set_pmc_event() argument
170 pmlca = get_pmlca(ctr); in set_pmc_event()
176 set_pmlca(ctr, pmlca); in set_pmc_event()
179 static void set_pmc_user_kernel(int ctr, int user, int kernel) in set_pmc_user_kernel() argument
183 pmlca = get_pmlca(ctr); in set_pmc_user_kernel()
195 set_pmlca(ctr, pmlca); in set_pmc_user_kernel()
198 static void set_pmc_marked(int ctr, int mark0, int mark1) in set_pmc_marked() argument
200 u32 pmlca = get_pmlca(ctr); in set_pmc_marked()
212 set_pmlca(ctr, pmlca); in set_pmc_marked()
215 static void pmc_start_ctr(int ctr, int enable) in pmc_start_ctr() argument
217 u32 pmlca = get_pmlca(ctr); in pmc_start_ctr()
226 set_pmlca(ctr, pmlca); in pmc_start_ctr()
255 static int fsl_emb_cpu_setup(struct op_counter_config *ctr) in fsl_emb_cpu_setup() argument
265 set_pmc_event(i, ctr[i].event); in fsl_emb_cpu_setup()
267 set_pmc_user_kernel(i, ctr[i].user, ctr[i].kernel); in fsl_emb_cpu_setup()
273 static int fsl_emb_reg_setup(struct op_counter_config *ctr, in fsl_emb_reg_setup() argument
287 reset_value[i] = 0x80000000UL - ctr[i].count; in fsl_emb_reg_setup()
292 static int fsl_emb_start(struct op_counter_config *ctr) in fsl_emb_start() argument
299 if (ctr[i].enabled) { in fsl_emb_start()
308 /* Set the ctr to be stopped */ in fsl_emb_start()
341 struct op_counter_config *ctr) in fsl_emb_handle_interrupt() argument
354 if (oprofile_running && ctr[i].enabled) { in fsl_emb_handle_interrupt()