Lines Matching refs:byte
147 int pmc, psel, unit, byte, bit;
164 byte = (event >> PM_BYTE_SH) & PM_BYTE_MSK;
169 mask = 0x4c; /* byte 0 bits 2,3,6 */
172 /* byte 2 bits 0,2,3,4,6; all of byte 1 */
176 mask = 0x50 << 24; /* byte 3 bits 4,6 */
179 return (mask >> (byte * 8 + bit)) & 1;
195 int pmc, byte, unit, sh, spcsel;
214 byte = (event >> PM_BYTE_SH) & PM_BYTE_MSK;
220 grp = byte & 1;
221 /* Set byte lane select field */
222 mask |= 0xfULL << (28 - 4 * byte);
223 value |= (unsigned long)unit << (28 - 4 * byte);
263 unsigned int pmc, unit, byte, psel;
292 byte = (event[i] >> PM_BYTE_SH) & PM_BYTE_MSK;
297 ++pmc_grp_use[byte & 1];
298 if (busbyte[byte] && busbyte[byte] != unit)
300 busbyte[byte] = unit;
329 /* Set byte lane select fields and TTM3SEL. */
330 for (byte = 0; byte < 4; ++byte) {
331 unit = busbyte[byte];
340 if (unit == PM_LSU1L && byte >= 2)
341 mmcr1 |= 1ull << (MMCR1_TTM3SEL_SH + 3 - byte);
344 << (MMCR1_TD_CP_DBG0SEL_SH - 2 * byte);
352 byte = (event[i] >> PM_BYTE_SH) & PM_BYTE_MSK;
357 psel |= 0x10 | ((byte & 2) << 2);
365 if (grp == (byte & 1))
376 if (psel == 0 && (byte & 2))