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) {
458 unsigned int pmc, unit, byte, psel;
482 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK;
484 if (unit > PM_LASTUNIT)
486 if (unit == PM_ISU0_ALT)
487 unit = PM_ISU0;
489 if (unit != PM_LSU1)
491 ++unit;
494 if (busbyte[byte] && busbyte[byte] != unit)
496 busbyte[byte] = unit;
497 unituse[unit] = 1;
534 unit = busbyte[byte];
535 if (!unit)
537 if (unit == PM_ISU0 && unituse[PM_ISU0_ALT]) {
539 unit = PM_ISU0_ALT;
540 } else if (unit == PM_LSU1 + 1) {
544 ttm = unit >> 2;
552 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK;
576 if (isbus && unit == PM_GRS) {