Lines Matching refs:unit
21 #define PM_UNIT_SH 16 /* TTMMUX number and setting - unit select */
97 * UC - unit constraint: can't have all three of FPU|IFU|ISU1, ISU0, IDU|GRS
137 int pmc, byte, unit, sh;
152 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK;
153 if (unit > PM_LASTUNIT)
155 if (unit == PM_ISU0_ALT)
156 unit = PM_ISU0;
157 mask |= unit_cons[unit][0];
158 value |= unit_cons[unit][1];
161 if (unit != PM_LSU1)
163 /* Map LSU1 low word (bytes 4-7) to unit LSU1+1 */
164 ++unit;
167 if (unit == PM_GRS) {
177 value |= (unsigned long)unit << (24 - 4 * byte);
406 int bit, byte, unit;
438 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK;
439 if (unit == PM_LSU0) {
442 } else if (unit == PM_LSU1 && byte >= 4) {
459 unsigned int pmc, unit, byte, psel;
483 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK;
485 if (unit > PM_LASTUNIT)
487 if (unit == PM_ISU0_ALT)
488 unit = PM_ISU0;
490 if (unit != PM_LSU1)
492 ++unit;
495 if (busbyte[byte] && busbyte[byte] != unit)
497 busbyte[byte] = unit;
498 unituse[unit] = 1;
535 unit = busbyte[byte];
536 if (!unit)
538 if (unit == PM_ISU0 && unituse[PM_ISU0_ALT]) {
540 unit = PM_ISU0_ALT;
541 } else if (unit == PM_LSU1 + 1) {
545 ttm = unit >> 2;
553 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK;
577 if (isbus && unit == PM_GRS) {