Lines Matching refs:unit
139 int pmc, byte, unit, sh; in power5p_get_constraint() local
154 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5p_get_constraint()
155 if (unit > PM_LASTUNIT) in power5p_get_constraint()
157 if (unit == PM_ISU0_ALT) in power5p_get_constraint()
158 unit = PM_ISU0; in power5p_get_constraint()
159 mask |= unit_cons[unit][0]; in power5p_get_constraint()
160 value |= unit_cons[unit][1]; in power5p_get_constraint()
163 if (unit != PM_LSU1) in power5p_get_constraint()
166 ++unit; in power5p_get_constraint()
169 if (unit == PM_GRS) { in power5p_get_constraint()
179 value |= (unsigned long)unit << (24 - 4 * byte); in power5p_get_constraint()
408 int bit, byte, unit; in power5p_marked_instr_event() local
440 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5p_marked_instr_event()
441 if (unit == PM_LSU0) { in power5p_marked_instr_event()
444 } else if (unit == PM_LSU1 && byte >= 4) { in power5p_marked_instr_event()
459 unsigned int pmc, unit, byte, psel; in power5p_compute_mmcr() local
483 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in power5p_compute_mmcr()
485 if (unit > PM_LASTUNIT) in power5p_compute_mmcr()
487 if (unit == PM_ISU0_ALT) in power5p_compute_mmcr()
488 unit = PM_ISU0; in power5p_compute_mmcr()
490 if (unit != PM_LSU1) in power5p_compute_mmcr()
492 ++unit; in power5p_compute_mmcr()
495 if (busbyte[byte] && busbyte[byte] != unit) in power5p_compute_mmcr()
497 busbyte[byte] = unit; in power5p_compute_mmcr()
498 unituse[unit] = 1; in power5p_compute_mmcr()
535 unit = busbyte[byte]; in power5p_compute_mmcr()
536 if (!unit) in power5p_compute_mmcr()
538 if (unit == PM_ISU0 && unituse[PM_ISU0_ALT]) { in power5p_compute_mmcr()
540 unit = PM_ISU0_ALT; in power5p_compute_mmcr()
541 } else if (unit == PM_LSU1 + 1) { in power5p_compute_mmcr()
545 ttm = unit >> 2; in power5p_compute_mmcr()
553 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in power5p_compute_mmcr()
577 if (isbus && unit == PM_GRS) { in power5p_compute_mmcr()