• 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()
389 unsigned int pmc, unit, byte, psel; in power5_compute_mmcr() local
418 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in power5_compute_mmcr()
420 if (unit > PM_LASTUNIT) in power5_compute_mmcr()
422 if (unit == PM_ISU0_ALT) in power5_compute_mmcr()
423 unit = PM_ISU0; in power5_compute_mmcr()
425 if (unit != PM_LSU1) in power5_compute_mmcr()
427 ++unit; in power5_compute_mmcr()
432 if (busbyte[byte] && busbyte[byte] != unit) in power5_compute_mmcr()
434 busbyte[byte] = unit; in power5_compute_mmcr()
435 unituse[unit] = 1; in power5_compute_mmcr()
474 unit = busbyte[byte]; in power5_compute_mmcr()
475 if (!unit) in power5_compute_mmcr()
477 if (unit == PM_ISU0 && unituse[PM_ISU0_ALT]) { in power5_compute_mmcr()
479 unit = PM_ISU0_ALT; in power5_compute_mmcr()
480 } else if (unit == PM_LSU1 + 1) { in power5_compute_mmcr()
484 ttm = unit >> 2; in power5_compute_mmcr()
492 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in power5_compute_mmcr()
521 if (isbus && unit == PM_GRS) { in power5_compute_mmcr()