Lines Matching refs:mmcra
72 static void mmcra_sdar_mode(u64 event, unsigned long *mmcra) in mmcra_sdar_mode() argument
91 if (is_event_marked(event) || (*mmcra & MMCRA_SAMPLE_ENABLE)) in mmcra_sdar_mode()
92 *mmcra &= MMCRA_SDAR_MODE_NO_UPDATES; in mmcra_sdar_mode()
94 *mmcra |= p9_SDAR_MODE(event) << MMCRA_SDAR_MODE_SHIFT; in mmcra_sdar_mode()
96 *mmcra |= MMCRA_SDAR_MODE_DCACHE; in mmcra_sdar_mode()
98 *mmcra |= MMCRA_SDAR_MODE_TLB; in mmcra_sdar_mode()
230 u64 mmcra = mfspr(SPRN_MMCRA); in isa207_get_mem_weight() local
231 u64 exp = MMCRA_THR_CTR_EXP(mmcra); in isa207_get_mem_weight()
232 u64 mantissa = MMCRA_THR_CTR_MANT(mmcra); in isa207_get_mem_weight()
369 unsigned long mmcra, mmcr1, mmcr2, unit, combine, psel, cache, val; in isa207_compute_mmcr() local
382 mmcra = mmcr1 = mmcr2 = 0; in isa207_compute_mmcr()
407 mmcra_sdar_mode(event[i], &mmcra); in isa207_compute_mmcr()
420 mmcra |= MMCRA_SAMPLE_ENABLE; in isa207_compute_mmcr()
424 mmcra |= (val & 3) << MMCRA_SAMP_MODE_SHIFT; in isa207_compute_mmcr()
425 mmcra |= (val >> 2) << MMCRA_SAMP_ELIG_SHIFT; in isa207_compute_mmcr()
438 mmcra |= val << MMCRA_THR_CTL_SHIFT; in isa207_compute_mmcr()
440 mmcra |= val << MMCRA_THR_SEL_SHIFT; in isa207_compute_mmcr()
442 mmcra |= thresh_cmp_val(val); in isa207_compute_mmcr()
447 mmcra |= val << MMCRA_IFM_SHIFT; in isa207_compute_mmcr()
481 mmcr[2] = mmcra; in isa207_compute_mmcr()