Lines Matching refs:unit
19 #define PM_UNIT_SH 8 /* TTMMUX number and setting - unit select */
100 * UC - unit constraint: can't have all three of FPU|IFU|VPU, ISU, IDU|STS
147 int pmc, psel, unit, byte, bit;
165 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK;
167 switch (unit) {
195 int pmc, byte, unit, sh, spcsel;
208 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK;
209 if (unit) {
210 if (unit > PM_LASTUNIT)
212 mask |= unit_cons[unit][0];
213 value |= unit_cons[unit][1];
223 value |= (unsigned long)unit << (28 - 4 * byte);
263 unsigned int pmc, unit, byte, psel;
291 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK;
293 if (unit) {
294 if (unit > PM_LASTUNIT)
298 if (busbyte[byte] && busbyte[byte] != unit)
300 busbyte[byte] = unit;
301 unituse[unit] = 1;
325 /* Check only one unit per TTMx */
331 unit = busbyte[byte];
332 if (!unit)
334 if (unit <= PM_STS)
335 ttm = (unitmap[unit] >> 2) & 1;
336 else if (unit == PM_LSU0)
340 if (unit == PM_LSU1L && byte >= 2)
351 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK;
356 if (unit)
364 if (unit) {