Lines Matching refs:unit

143 	int pmc, byte, unit, sh;  in power5_get_constraint()  local
161 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5_get_constraint()
162 if (unit > PM_LASTUNIT) in power5_get_constraint()
164 if (unit == PM_ISU0_ALT) in power5_get_constraint()
165 unit = PM_ISU0; in power5_get_constraint()
166 mask |= unit_cons[unit][0]; in power5_get_constraint()
167 value |= unit_cons[unit][1]; in power5_get_constraint()
170 if (unit != PM_LSU1) in power5_get_constraint()
173 ++unit; in power5_get_constraint()
176 if (unit == PM_GRS) { in power5_get_constraint()
192 value |= (unsigned long)unit << (24 - 4 * byte); in power5_get_constraint()
344 int bit, byte, unit; in power5_marked_instr_event() local
371 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5_marked_instr_event()
372 if (unit == PM_LSU0) { in power5_marked_instr_event()
375 } else if (unit == PM_LSU1 && byte >= 4) { in power5_marked_instr_event()
390 unsigned int pmc, unit, byte, psel; in power5_compute_mmcr() local
419 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in power5_compute_mmcr()
421 if (unit > PM_LASTUNIT) in power5_compute_mmcr()
423 if (unit == PM_ISU0_ALT) in power5_compute_mmcr()
424 unit = PM_ISU0; in power5_compute_mmcr()
426 if (unit != PM_LSU1) in power5_compute_mmcr()
428 ++unit; in power5_compute_mmcr()
433 if (busbyte[byte] && busbyte[byte] != unit) in power5_compute_mmcr()
435 busbyte[byte] = unit; in power5_compute_mmcr()
436 unituse[unit] = 1; in power5_compute_mmcr()
475 unit = busbyte[byte]; in power5_compute_mmcr()
476 if (!unit) in power5_compute_mmcr()
478 if (unit == PM_ISU0 && unituse[PM_ISU0_ALT]) { in power5_compute_mmcr()
480 unit = PM_ISU0_ALT; in power5_compute_mmcr()
481 } else if (unit == PM_LSU1 + 1) { in power5_compute_mmcr()
485 ttm = unit >> 2; in power5_compute_mmcr()
493 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in power5_compute_mmcr()
522 if (isbus && unit == PM_GRS) { in power5_compute_mmcr()