Lines Matching refs:unit
147 int pmc, psel, unit, byte, bit; in p970_marked_instr_event() local
165 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_marked_instr_event()
167 switch (unit) { in p970_marked_instr_event()
195 int pmc, byte, unit, sh, spcsel; in p970_get_constraint() local
208 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_get_constraint()
209 if (unit) { in p970_get_constraint()
210 if (unit > PM_LASTUNIT) in p970_get_constraint()
212 mask |= unit_cons[unit][0]; in p970_get_constraint()
213 value |= unit_cons[unit][1]; in p970_get_constraint()
223 value |= (unsigned long)unit << (28 - 4 * byte); in p970_get_constraint()
262 unsigned int pmc, unit, byte, psel; in p970_compute_mmcr() local
290 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_compute_mmcr()
292 if (unit) { in p970_compute_mmcr()
293 if (unit > PM_LASTUNIT) in p970_compute_mmcr()
297 if (busbyte[byte] && busbyte[byte] != unit) in p970_compute_mmcr()
299 busbyte[byte] = unit; in p970_compute_mmcr()
300 unituse[unit] = 1; in p970_compute_mmcr()
330 unit = busbyte[byte]; in p970_compute_mmcr()
331 if (!unit) in p970_compute_mmcr()
333 if (unit <= PM_STS) in p970_compute_mmcr()
334 ttm = (unitmap[unit] >> 2) & 1; in p970_compute_mmcr()
335 else if (unit == PM_LSU0) in p970_compute_mmcr()
339 if (unit == PM_LSU1L && byte >= 2) in p970_compute_mmcr()
350 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_compute_mmcr()
355 if (unit) in p970_compute_mmcr()
363 if (unit) { in p970_compute_mmcr()