Lines Matching defs:ctr
33 static inline u32 get_pmlca(int ctr)
37 switch (ctr) {
51 panic("Bad ctr number\n");
57 static inline void set_pmlca(int ctr, u32 pmlca)
59 switch (ctr) {
73 panic("Bad ctr number\n");
114 static void init_pmc_stop(int ctr)
120 switch (ctr) {
138 panic("Bad ctr number!\n");
142 static void set_pmc_event(int ctr, int event)
146 pmlca = get_pmlca(ctr);
152 set_pmlca(ctr, pmlca);
155 static void set_pmc_user_kernel(int ctr, int user, int kernel)
159 pmlca = get_pmlca(ctr);
171 set_pmlca(ctr, pmlca);
174 static void set_pmc_marked(int ctr, int mark0, int mark1)
176 u32 pmlca = get_pmlca(ctr);
188 set_pmlca(ctr, pmlca);
191 static void pmc_start_ctr(int ctr, int enable)
193 u32 pmlca = get_pmlca(ctr);
202 set_pmlca(ctr, pmlca);
231 static int fsl_emb_cpu_setup(struct op_counter_config *ctr)
241 set_pmc_event(i, ctr[i].event);
243 set_pmc_user_kernel(i, ctr[i].user, ctr[i].kernel);
249 static int fsl_emb_reg_setup(struct op_counter_config *ctr,
263 reset_value[i] = 0x80000000UL - ctr[i].count;
268 static int fsl_emb_start(struct op_counter_config *ctr)
275 if (ctr[i].enabled) {
284 /* Set the ctr to be stopped */
317 struct op_counter_config *ctr)
333 if (oprofile_running && ctr[i].enabled) {