Lines Matching +full:0 +full:x16080

19 #define PM_PMC_MSK	0xf
22 #define PM_UNIT_MSK 0xf
25 #define PM_COMBINE_MSKS 0x800
28 #define PM_PMCSEL_MSK 0xff
37 #define MMCR1_TTMSEL_MSK 0xf
47 #define MMCR1_PMC4SEL_SH 0
49 #define MMCR1_PMCSEL_MSK 0xff
72 * 15: NC error 0x8000
73 * 12-14: number of events needing PMC1-4 0x7000
76 * 11: P6 error 0x800
80 * 0-9: Count of events needing PMC1..PMC5
87 unsigned long mask = 0, value = 0; in power7_get_constraint()
96 if (pmc >= 5 && !(event == 0x500fa || event == 0x600f4)) in power7_get_constraint()
101 mask |= 0x8000; in power7_get_constraint()
102 value |= 0x1000; in power7_get_constraint()
109 mask |= 0x7 << 16; in power7_get_constraint()
115 return 0; in power7_get_constraint()
121 { 0x200f2, 0x300f2 }, /* PM_INST_DISP */
122 { 0x200f4, 0x600f4 }, /* PM_RUN_CYC */
123 { 0x400fa, 0x500fa }, /* PM_RUN_INST_CMPL */
134 for (i = 0; i < ARRAY_SIZE(event_alternatives); ++i) { in find_alternative()
135 if (event < event_alternatives[i][0]) in find_alternative()
137 for (j = 0; j < MAX_ALT && event_alternatives[i][j]; ++j) in find_alternative()
151 if ((pmc == 2 || pmc == 4) && (psel & ~7) == 0x40) in find_alternative_decode()
153 if ((pmc == 1 || pmc == 3) && (psel & ~7) == 0x48) in find_alternative_decode()
163 alt[0] = event; in power7_get_alternatives()
166 if (i >= 0) { in power7_get_alternatives()
167 for (j = 0; j < MAX_ALT; ++j) { in power7_get_alternatives()
174 if (ae > 0) in power7_get_alternatives()
187 for (i = 0; i < nalt; ++i) { in power7_get_alternatives()
189 case 0x1e: /* PM_CYC */ in power7_get_alternatives()
190 alt[j++] = 0x600f4; /* PM_RUN_CYC */ in power7_get_alternatives()
192 case 0x600f4: /* PM_RUN_CYC */ in power7_get_alternatives()
193 alt[j++] = 0x1e; in power7_get_alternatives()
195 case 0x2: /* PM_PPC_CMPL */ in power7_get_alternatives()
196 alt[j++] = 0x500fa; /* PM_RUN_INST_CMPL */ in power7_get_alternatives()
198 case 0x500fa: /* PM_RUN_INST_CMPL */ in power7_get_alternatives()
199 alt[j++] = 0x2; /* PM_PPC_CMPL */ in power7_get_alternatives()
211 * and thus needs the MMCRA_SAMPLE_ENABLE bit set, or 0 if not.
222 return 0; in power7_marked_instr_event()
228 if (psel == 0x3c) in power7_marked_instr_event()
230 if (psel == 0x3e) in power7_marked_instr_event()
235 return unit == 0xd; in power7_marked_instr_event()
237 if (psel == 0x64) in power7_marked_instr_event()
241 return unit == 0xd; in power7_marked_instr_event()
243 return 0; in power7_marked_instr_event()
251 unsigned long mmcr1 = 0; in power7_compute_mmcr()
254 unsigned int pmc_inuse = 0; in power7_compute_mmcr()
258 for (i = 0; i < n_ev; ++i) { in power7_compute_mmcr()
270 for (i = 0; i < n_ev; ++i) { in power7_compute_mmcr()
278 for (pmc = 0; pmc < 4; ++pmc) { in power7_compute_mmcr()
305 mmcr->mmcr0 = 0; in power7_compute_mmcr()
308 if (pmc_inuse & 0x3e) in power7_compute_mmcr()
312 return 0; in power7_compute_mmcr()
318 mmcr->mmcr1 &= ~(0xffUL << MMCR1_PMCSEL_SH(pmc)); in power7_disable_pmc()
336 * 0 means not supported, -1 means nonsensical, other values
341 [C(OP_READ)] = { 0xc880, 0x400f0 },
342 [C(OP_WRITE)] = { 0, 0x300f0 },
343 [C(OP_PREFETCH)] = { 0xd8b8, 0 },
346 [C(OP_READ)] = { 0, 0x200fc },
348 [C(OP_PREFETCH)] = { 0x408a, 0 },
351 [C(OP_READ)] = { 0x16080, 0x26080 },
352 [C(OP_WRITE)] = { 0x16082, 0x26082 },
353 [C(OP_PREFETCH)] = { 0, 0 },
356 [C(OP_READ)] = { 0, 0x300fc },
361 [C(OP_READ)] = { 0, 0x400fc },
366 [C(OP_READ)] = { 0x10068, 0x400f6 },
413 PMU_FORMAT_ATTR(event, "config:0-19");
435 .add_fields = 0x1555ul,
436 .test_adder = 0x3000ul,