Lines Matching refs:mmcra
109 mmcra_val = sys->mmcra; in power4_reg_setup()
176 unsigned long mmcra = mmcra_val; in power4_cpu_setup() local
191 mmcra |= MMCRA_SAMPLE_ENABLE; in power4_cpu_setup()
192 mtspr(SPRN_MMCRA, mmcra); in power4_cpu_setup()
284 unsigned long mmcra; in get_pc() local
291 mmcra = mfspr(SPRN_MMCRA); in get_pc()
293 if (use_slot_nums && (mmcra & MMCRA_SAMPLE_ENABLE)) { in get_pc()
294 slot = ((mmcra & MMCRA_SLOT) >> MMCRA_SLOT_SHIFT); in get_pc()
301 (mmcra & cur_cpu_spec->oprofile_mmcra_sihv)) in get_pc()
306 if (mmcra & cur_cpu_spec->oprofile_mmcra_sipr) in get_pc()
328 static int get_kernel(unsigned long pc, unsigned long mmcra) in get_kernel() argument
335 is_kernel = ((mmcra & cur_cpu_spec->oprofile_mmcra_sipr) == 0); in get_kernel()
371 unsigned long mmcra; in power4_handle_interrupt() local
374 mmcra = mfspr(SPRN_MMCRA); in power4_handle_interrupt()
377 is_kernel = get_kernel(pc, mmcra); in power4_handle_interrupt()
383 if ((mmcra & MMCRA_SIAR_VALID_MASK) == MMCRA_SIAR_VALID_MASK) in power4_handle_interrupt()
424 mmcra &= ~cur_cpu_spec->oprofile_mmcra_clear; in power4_handle_interrupt()
425 mtspr(SPRN_MMCRA, mmcra); in power4_handle_interrupt()