• Home
  • Raw
  • Download

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()
244 u64 mmcra = mfspr(SPRN_MMCRA); in isa207_get_mem_weight() local
245 u64 exp = MMCRA_THR_CTR_EXP(mmcra); in isa207_get_mem_weight()
246 u64 mantissa = MMCRA_THR_CTR_MANT(mmcra); in isa207_get_mem_weight()
251 mantissa = P10_MMCRA_THR_CTR_MANT(mmcra); in isa207_get_mem_weight()
417 unsigned long mmcra, mmcr1, mmcr2, unit, combine, psel, cache, val; in isa207_compute_mmcr() local
431 mmcra = mmcr1 = mmcr2 = mmcr3 = 0; in isa207_compute_mmcr()
438 mmcra |= MMCRA_BHRB_DISABLE; in isa207_compute_mmcr()
463 mmcra_sdar_mode(event[i], &mmcra); in isa207_compute_mmcr()
483 mmcra |= MMCRA_SAMPLE_ENABLE; in isa207_compute_mmcr()
487 mmcra |= (val & 3) << MMCRA_SAMP_MODE_SHIFT; in isa207_compute_mmcr()
488 mmcra |= (val >> 2) << MMCRA_SAMP_ELIG_SHIFT; in isa207_compute_mmcr()
501 mmcra |= val << MMCRA_THR_CTL_SHIFT; in isa207_compute_mmcr()
503 mmcra |= val << MMCRA_THR_SEL_SHIFT; in isa207_compute_mmcr()
507 mmcra |= thresh_cmp_val(val); in isa207_compute_mmcr()
519 mmcra |= val << MMCRA_IFM_SHIFT; in isa207_compute_mmcr()
525 mmcra &= ~MMCRA_BHRB_DISABLE; in isa207_compute_mmcr()
574 mmcr->mmcra = mmcra; in isa207_compute_mmcr()