Lines Matching refs:unit
137 int pmc, byte, unit, sh; in power5p_get_constraint() local
152 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5p_get_constraint()
153 if (unit > PM_LASTUNIT) in power5p_get_constraint()
155 if (unit == PM_ISU0_ALT) in power5p_get_constraint()
156 unit = PM_ISU0; in power5p_get_constraint()
157 mask |= unit_cons[unit][0]; in power5p_get_constraint()
158 value |= unit_cons[unit][1]; in power5p_get_constraint()
161 if (unit != PM_LSU1) in power5p_get_constraint()
164 ++unit; in power5p_get_constraint()
167 if (unit == PM_GRS) { in power5p_get_constraint()
177 value |= (unsigned long)unit << (24 - 4 * byte); in power5p_get_constraint()
406 int bit, byte, unit; in power5p_marked_instr_event() local
438 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5p_marked_instr_event()
439 if (unit == PM_LSU0) { in power5p_marked_instr_event()
442 } else if (unit == PM_LSU1 && byte >= 4) { in power5p_marked_instr_event()
458 unsigned int pmc, unit, byte, psel; in power5p_compute_mmcr() local
482 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in power5p_compute_mmcr()
484 if (unit > PM_LASTUNIT) in power5p_compute_mmcr()
486 if (unit == PM_ISU0_ALT) in power5p_compute_mmcr()
487 unit = PM_ISU0; in power5p_compute_mmcr()
489 if (unit != PM_LSU1) in power5p_compute_mmcr()
491 ++unit; in power5p_compute_mmcr()
494 if (busbyte[byte] && busbyte[byte] != unit) in power5p_compute_mmcr()
496 busbyte[byte] = unit; in power5p_compute_mmcr()
497 unituse[unit] = 1; in power5p_compute_mmcr()
534 unit = busbyte[byte]; in power5p_compute_mmcr()
535 if (!unit) in power5p_compute_mmcr()
537 if (unit == PM_ISU0 && unituse[PM_ISU0_ALT]) { in power5p_compute_mmcr()
539 unit = PM_ISU0_ALT; in power5p_compute_mmcr()
540 } else if (unit == PM_LSU1 + 1) { in power5p_compute_mmcr()
544 ttm = unit >> 2; in power5p_compute_mmcr()
552 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in power5p_compute_mmcr()
576 if (isbus && unit == PM_GRS) { in power5p_compute_mmcr()