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
141 int pmc, byte, unit, sh;
159 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK;
160 if (unit > PM_LASTUNIT)
162 if (unit == PM_ISU0_ALT)
163 unit = PM_ISU0;
164 mask |= unit_cons[unit][0];
165 value |= unit_cons[unit][1];
168 if (unit != PM_LSU1)
170 /* Map LSU1 low word (bytes 4-7) to unit LSU1+1 */
171 ++unit;
174 if (unit == PM_GRS) {
190 value |= (unsigned long)unit << (24 - 4 * byte);
342 int bit, byte, unit;
369 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK;
370 if (unit == PM_LSU0) {
373 } else if (unit == PM_LSU1 && byte >= 4) {
390 unsigned int pmc, unit, byte, psel;
419 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK;
421 if (unit > PM_LASTUNIT)
423 if (unit == PM_ISU0_ALT)
424 unit = PM_ISU0;
426 if (unit != PM_LSU1)
428 ++unit;
433 if (busbyte[byte] && busbyte[byte] != unit)
435 busbyte[byte] = unit;
436 unituse[unit] = 1;
475 unit = busbyte[byte];
476 if (!unit)
478 if (unit == PM_ISU0 && unituse[PM_ISU0_ALT]) {
480 unit = PM_ISU0_ALT;
481 } else if (unit == PM_LSU1 + 1) {
485 ttm = unit >> 2;
493 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK;
522 if (isbus && unit == PM_GRS) {