Lines Matching refs:mmcra

82 static void mmcra_sdar_mode(u64 event, unsigned long *mmcra)  in mmcra_sdar_mode()  argument
101 if (is_event_marked(event) || (*mmcra & MMCRA_SAMPLE_ENABLE)) in mmcra_sdar_mode()
102 *mmcra &= MMCRA_SDAR_MODE_NO_UPDATES; in mmcra_sdar_mode()
104 *mmcra |= sdar_mod_val(event) << MMCRA_SDAR_MODE_SHIFT; in mmcra_sdar_mode()
106 *mmcra |= MMCRA_SDAR_MODE_DCACHE; in mmcra_sdar_mode()
108 *mmcra |= MMCRA_SDAR_MODE_TLB; in mmcra_sdar_mode()
302 u64 mmcra; in isa207_get_mem_data_src() local
312 mmcra = mfspr(SPRN_MMCRA); in isa207_get_mem_data_src()
314 op_type = (mmcra >> MMCRA_SAMP_ELIG_SHIFT) & MMCRA_SAMP_ELIG_MASK; in isa207_get_mem_data_src()
335 u64 mmcra = mfspr(SPRN_MMCRA); in isa207_get_mem_weight() local
336 u64 exp = MMCRA_THR_CTR_EXP(mmcra); in isa207_get_mem_weight()
337 u64 mantissa = MMCRA_THR_CTR_MANT(mmcra); in isa207_get_mem_weight()
342 mantissa = P10_MMCRA_THR_CTR_MANT(mmcra); in isa207_get_mem_weight()
530 unsigned long mmcra, mmcr1, mmcr2, unit, combine, psel, cache, val; in isa207_compute_mmcr() local
544 mmcra = mmcr1 = mmcr2 = mmcr3 = 0; in isa207_compute_mmcr()
551 mmcra |= MMCRA_BHRB_DISABLE; in isa207_compute_mmcr()
576 mmcra_sdar_mode(event[i], &mmcra); in isa207_compute_mmcr()
596 mmcra |= MMCRA_SAMPLE_ENABLE; in isa207_compute_mmcr()
600 mmcra |= (val & 3) << MMCRA_SAMP_MODE_SHIFT; in isa207_compute_mmcr()
601 mmcra |= (val >> 2) << MMCRA_SAMP_ELIG_SHIFT; in isa207_compute_mmcr()
614 mmcra |= val << MMCRA_THR_CTL_SHIFT; in isa207_compute_mmcr()
616 mmcra |= val << MMCRA_THR_SEL_SHIFT; in isa207_compute_mmcr()
620 mmcra |= thresh_cmp_val(val); in isa207_compute_mmcr()
624 mmcra |= thresh_cmp_val(val); in isa207_compute_mmcr()
636 mmcra |= val << MMCRA_IFM_SHIFT; in isa207_compute_mmcr()
642 mmcra &= ~MMCRA_BHRB_DISABLE; in isa207_compute_mmcr()
691 mmcr->mmcra = mmcra; in isa207_compute_mmcr()