Lines Matching refs:unit
145 int pmc, psel, unit, byte, bit; in p970_marked_instr_event() local
163 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_marked_instr_event()
165 switch (unit) { in p970_marked_instr_event()
193 int pmc, byte, unit, sh, spcsel; in p970_get_constraint() local
206 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_get_constraint()
207 if (unit) { in p970_get_constraint()
208 if (unit > PM_LASTUNIT) in p970_get_constraint()
210 mask |= unit_cons[unit][0]; in p970_get_constraint()
211 value |= unit_cons[unit][1]; in p970_get_constraint()
221 value |= (unsigned long)unit << (28 - 4 * byte); in p970_get_constraint()
259 unsigned int pmc, unit, byte, psel; in p970_compute_mmcr() local
287 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_compute_mmcr()
289 if (unit) { in p970_compute_mmcr()
290 if (unit > PM_LASTUNIT) in p970_compute_mmcr()
294 if (busbyte[byte] && busbyte[byte] != unit) in p970_compute_mmcr()
296 busbyte[byte] = unit; in p970_compute_mmcr()
297 unituse[unit] = 1; in p970_compute_mmcr()
327 unit = busbyte[byte]; in p970_compute_mmcr()
328 if (!unit) in p970_compute_mmcr()
330 if (unit <= PM_STS) in p970_compute_mmcr()
331 ttm = (unitmap[unit] >> 2) & 1; in p970_compute_mmcr()
332 else if (unit == PM_LSU0) in p970_compute_mmcr()
336 if (unit == PM_LSU1L && byte >= 2) in p970_compute_mmcr()
347 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_compute_mmcr()
352 if (unit) in p970_compute_mmcr()
360 if (unit) { in p970_compute_mmcr()