Lines Matching refs:unit
185 int unit; member
220 int pmc, psel, unit, byte, bit; in p4_marked_instr_event() local
238 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p4_marked_instr_event()
240 switch (unit) { in p4_marked_instr_event()
257 int pmc, byte, unit, lower, sh; in p4_get_constraint() local
270 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p4_get_constraint()
272 if (unit) { in p4_get_constraint()
282 if (!p4_unitinfo[unit].unit) in p4_get_constraint()
284 mask |= p4_unitinfo[unit].mask; in p4_get_constraint()
285 value |= p4_unitinfo[unit].value; in p4_get_constraint()
286 sh = p4_unitinfo[unit].lowerbit; in p4_get_constraint()
291 unit = p4_unitinfo[unit].unit; in p4_get_constraint()
295 value |= (unsigned long)unit << (28 - 4 * byte); in p4_get_constraint()
362 unsigned int pmc, unit, byte, psel, lower; in p4_compute_mmcr() local
387 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in p4_compute_mmcr()
390 if (unit) { in p4_compute_mmcr()
393 if (unit == 6 || unit == 8) in p4_compute_mmcr()
395 unit = (unit >> 1) - 1; in p4_compute_mmcr()
396 if (busbyte[byte] && busbyte[byte] != unit) in p4_compute_mmcr()
398 busbyte[byte] = unit; in p4_compute_mmcr()
399 lower <<= unit; in p4_compute_mmcr()
400 if (unituse[unit] && lower != (unitlower & lower)) in p4_compute_mmcr()
402 unituse[unit] = 1; in p4_compute_mmcr()
453 unit = busbyte[byte]; in p4_compute_mmcr()
454 if (!unit) in p4_compute_mmcr()
456 if (unit == 0xf) { in p4_compute_mmcr()
460 if (!unituse[unit]) in p4_compute_mmcr()
461 ttm = unit - 1; /* 2->1, 3->2 */ in p4_compute_mmcr()
463 ttm = unit >> 2; in p4_compute_mmcr()
472 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in p4_compute_mmcr()
477 if (unit) in p4_compute_mmcr()
483 if (unit) { in p4_compute_mmcr()