• Home
  • Raw
  • Download

Lines Matching refs:unit

141 	int pmc, byte, unit, sh;  in power5_get_constraint()  local
159 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5_get_constraint()
160 if (unit > PM_LASTUNIT) in power5_get_constraint()
162 if (unit == PM_ISU0_ALT) in power5_get_constraint()
163 unit = PM_ISU0; in power5_get_constraint()
164 mask |= unit_cons[unit][0]; in power5_get_constraint()
165 value |= unit_cons[unit][1]; in power5_get_constraint()
168 if (unit != PM_LSU1) in power5_get_constraint()
171 ++unit; in power5_get_constraint()
174 if (unit == PM_GRS) { in power5_get_constraint()
190 value |= (unsigned long)unit << (24 - 4 * byte); in power5_get_constraint()
342 int bit, byte, unit; in power5_marked_instr_event() local
369 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5_marked_instr_event()
370 if (unit == PM_LSU0) { in power5_marked_instr_event()
373 } 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()