Lines Matching refs:byte
220 int pmc, psel, unit, byte, bit; in p4_marked_instr_event() local
237 byte = (event >> PM_BYTE_SH) & PM_BYTE_MSK; in p4_marked_instr_event()
251 return (mask >> (byte * 8 + bit)) & 1; in p4_marked_instr_event()
257 int pmc, byte, unit, lower, sh; in p4_get_constraint() local
271 byte = (event >> PM_BYTE_SH) & PM_BYTE_MSK; in p4_get_constraint()
280 grp = byte & 1; in p4_get_constraint()
294 mask |= 0xfULL << (28 - 4 * byte); in p4_get_constraint()
295 value |= (unsigned long)unit << (28 - 4 * byte); in p4_get_constraint()
314 if (pmc && (event & PM_PMCSEL_MSK) == 6 && byte == 2) in p4_get_constraint()
362 unsigned int pmc, unit, byte, psel, lower; in p4_compute_mmcr() local
388 byte = (event[i] >> PM_BYTE_SH) & PM_BYTE_MSK; in p4_compute_mmcr()
392 ++pmc_grp_use[byte & 1]; in p4_compute_mmcr()
396 if (busbyte[byte] && busbyte[byte] != unit) in p4_compute_mmcr()
398 busbyte[byte] = unit; in p4_compute_mmcr()
452 for (byte = 0; byte < 4; ++byte) { in p4_compute_mmcr()
453 unit = busbyte[byte]; in p4_compute_mmcr()
458 mmcr1 |= 1ull << (MMCR1_DEBUG0SEL_SH - byte); in p4_compute_mmcr()
465 << (MMCR1_TD_CP_DBG0SEL_SH - 2 * byte); in p4_compute_mmcr()
473 byte = (event[i] >> PM_BYTE_SH) & PM_BYTE_MSK; in p4_compute_mmcr()
478 psel |= 0x10 | ((byte & 2) << 2); in p4_compute_mmcr()
484 if (grp == (byte & 1)) in p4_compute_mmcr()
495 if (psel == 0 && (byte & 2)) in p4_compute_mmcr()
498 else if (psel == 6 && byte == 3) in p4_compute_mmcr()