Lines Matching refs:unit
149 int pmc, psel, unit, byte, bit; in p970_marked_instr_event() local
167 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_marked_instr_event()
169 switch (unit) { in p970_marked_instr_event()
197 int pmc, byte, unit, sh, spcsel; in p970_get_constraint() local
210 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_get_constraint()
211 if (unit) { in p970_get_constraint()
212 if (unit > PM_LASTUNIT) in p970_get_constraint()
214 mask |= unit_cons[unit][0]; in p970_get_constraint()
215 value |= unit_cons[unit][1]; in p970_get_constraint()
225 value |= (unsigned long)unit << (28 - 4 * byte); in p970_get_constraint()
263 unsigned int pmc, unit, byte, psel; in p970_compute_mmcr() local
291 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_compute_mmcr()
293 if (unit) { in p970_compute_mmcr()
294 if (unit > PM_LASTUNIT) in p970_compute_mmcr()
298 if (busbyte[byte] && busbyte[byte] != unit) in p970_compute_mmcr()
300 busbyte[byte] = unit; in p970_compute_mmcr()
301 unituse[unit] = 1; in p970_compute_mmcr()
331 unit = busbyte[byte]; in p970_compute_mmcr()
332 if (!unit) in p970_compute_mmcr()
334 if (unit <= PM_STS) in p970_compute_mmcr()
335 ttm = (unitmap[unit] >> 2) & 1; in p970_compute_mmcr()
336 else if (unit == PM_LSU0) in p970_compute_mmcr()
340 if (unit == PM_LSU1L && byte >= 2) in p970_compute_mmcr()
351 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_compute_mmcr()
356 if (unit) in p970_compute_mmcr()
364 if (unit) { in p970_compute_mmcr()