Lines Matching refs:byte
137 int pmc, byte, unit, sh; in power5p_get_constraint() local
159 byte = (event >> PM_BYTE_SH) & PM_BYTE_MSK; in power5p_get_constraint()
160 if (byte >= 4) { in power5p_get_constraint()
165 byte &= 3; in power5p_get_constraint()
176 mask |= 0xfUL << (24 - 4 * byte); in power5p_get_constraint()
177 value |= (unsigned long)unit << (24 - 4 * byte); in power5p_get_constraint()
406 int bit, byte, unit; in power5p_marked_instr_event() local
437 byte = (event >> PM_BYTE_SH) & PM_BYTE_MSK; in power5p_marked_instr_event()
442 } else if (unit == PM_LSU1 && byte >= 4) { in power5p_marked_instr_event()
443 byte -= 4; in power5p_marked_instr_event()
449 return (mask >> (byte * 8 + bit)) & 1; in power5p_marked_instr_event()
459 unsigned int pmc, unit, byte, psel; in power5p_compute_mmcr() local
484 byte = (event[i] >> PM_BYTE_SH) & PM_BYTE_MSK; in power5p_compute_mmcr()
489 if (byte >= 4) { in power5p_compute_mmcr()
493 byte &= 3; in power5p_compute_mmcr()
495 if (busbyte[byte] && busbyte[byte] != unit) in power5p_compute_mmcr()
497 busbyte[byte] = unit; in power5p_compute_mmcr()
534 for (byte = 0; byte < 4; ++byte) { in power5p_compute_mmcr()
535 unit = busbyte[byte]; in power5p_compute_mmcr()
543 mmcr1 |= 1ul << (MMCR1_TTM3SEL_SH + 3 - byte); in power5p_compute_mmcr()
547 << (MMCR1_TD_CP_DBG0SEL_SH - 2 * byte); in power5p_compute_mmcr()
554 byte = (event[i] >> PM_BYTE_SH) & PM_BYTE_MSK; in power5p_compute_mmcr()
569 if (isbus && (byte & 2) && in power5p_compute_mmcr()
584 if ((psel & 0x58) == 0x40 && (byte & 1) != ((pmc >> 1) & 1)) in power5p_compute_mmcr()