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