Lines Matching refs:mmcra
105 mmcra_val = sys->mmcra; in power4_reg_setup()
172 unsigned long mmcra = mmcra_val; in power4_cpu_setup() local
187 mmcra |= MMCRA_SAMPLE_ENABLE; in power4_cpu_setup()
188 mtspr(SPRN_MMCRA, mmcra); in power4_cpu_setup()
280 unsigned long mmcra; in get_pc() local
287 mmcra = mfspr(SPRN_MMCRA); in get_pc()
289 if (use_slot_nums && (mmcra & MMCRA_SAMPLE_ENABLE)) { in get_pc()
290 slot = ((mmcra & MMCRA_SLOT) >> MMCRA_SLOT_SHIFT); in get_pc()
297 (mmcra & cur_cpu_spec->oprofile_mmcra_sihv)) in get_pc()
302 if (mmcra & cur_cpu_spec->oprofile_mmcra_sipr) in get_pc()
324 static int get_kernel(unsigned long pc, unsigned long mmcra) in get_kernel() argument
331 is_kernel = ((mmcra & cur_cpu_spec->oprofile_mmcra_sipr) == 0); in get_kernel()
367 unsigned long mmcra; in power4_handle_interrupt() local
370 mmcra = mfspr(SPRN_MMCRA); in power4_handle_interrupt()
373 is_kernel = get_kernel(pc, mmcra); in power4_handle_interrupt()
379 if ((mmcra & MMCRA_SIAR_VALID_MASK) == MMCRA_SIAR_VALID_MASK) in power4_handle_interrupt()
420 mmcra &= ~cur_cpu_spec->oprofile_mmcra_clear; in power4_handle_interrupt()
421 mtspr(SPRN_MMCRA, mmcra); in power4_handle_interrupt()