Lines Matching defs: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);
262 unsigned int pmc, unit, byte, psel;
290 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK;
292 if (unit) {
293 if (unit > PM_LASTUNIT)
297 if (busbyte[byte] && busbyte[byte] != unit)
299 busbyte[byte] = unit;
300 unituse[unit] = 1;
324 /* Check only one unit per TTMx */
330 unit = busbyte[byte];
331 if (!unit)
333 if (unit <= PM_STS)
334 ttm = (unitmap[unit] >> 2) & 1;
335 else if (unit == PM_LSU0)
339 if (unit == PM_LSU1L && byte >= 2)
350 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK;
355 if (unit)
363 if (unit) {