Lines Matching refs:byte
141 int pmc, byte, unit, sh; in power5_get_constraint() local
166 byte = (event >> PM_BYTE_SH) & PM_BYTE_MSK; in power5_get_constraint()
167 if (byte >= 4) { in power5_get_constraint()
172 byte &= 3; in power5_get_constraint()
187 grp = byte & 1; in power5_get_constraint()
189 mask |= 0xfUL << (24 - 4 * byte); in power5_get_constraint()
190 value |= (unsigned long)unit << (24 - 4 * byte); in power5_get_constraint()
342 int bit, byte, unit; in power5_marked_instr_event() local
368 byte = (event >> PM_BYTE_SH) & PM_BYTE_MSK; in power5_marked_instr_event()
373 } else if (unit == PM_LSU1 && byte >= 4) { in power5_marked_instr_event()
374 byte -= 4; in power5_marked_instr_event()
380 return (mask >> (byte * 8 + bit)) & 1; in power5_marked_instr_event()
390 unsigned int pmc, unit, byte, psel; in power5_compute_mmcr() local
420 byte = (event[i] >> PM_BYTE_SH) & PM_BYTE_MSK; in power5_compute_mmcr()
425 if (byte >= 4) { in power5_compute_mmcr()
429 byte &= 3; in power5_compute_mmcr()
432 ++pmc_grp_use[byte & 1]; in power5_compute_mmcr()
433 if (busbyte[byte] && busbyte[byte] != unit) in power5_compute_mmcr()
435 busbyte[byte] = unit; in power5_compute_mmcr()
474 for (byte = 0; byte < 4; ++byte) { in power5_compute_mmcr()
475 unit = busbyte[byte]; in power5_compute_mmcr()
483 mmcr1 |= 1ul << (MMCR1_TTM3SEL_SH + 3 - byte); in power5_compute_mmcr()
487 << (MMCR1_TD_CP_DBG0SEL_SH - 2 * byte); in power5_compute_mmcr()
494 byte = (event[i] >> PM_BYTE_SH) & PM_BYTE_MSK; in power5_compute_mmcr()
504 if (grp == (byte & 1)) in power5_compute_mmcr()
515 if ((psel == 8 || psel == 0x10) && isbus && (byte & 2)) in power5_compute_mmcr()