Lines Matching refs:xpcr
348 struct xpcr { struct
354 unmake_pcr(uint64_t pcr, int cpuver, struct xpcr *xpcr) in unmake_pcr() argument
371 xpcr->pic[0] = (uint8_t)((pcr >> kv[D_pic0].kv_shift) & in unmake_pcr()
373 xpcr->pic[1] = (uint8_t)((pcr >> kv[D_pic1].kv_shift) & in unmake_pcr()
375 xpcr->usr = (pcr >> kv[D_nouser].kv_shift) & in unmake_pcr()
377 xpcr->sys = (pcr >> kv[D_sys].kv_shift) & in unmake_pcr()
384 struct xpcr xpcr; in cpc_eventtostr() local
400 unmake_pcr(event->ce_pcr, event->ce_cpuver, &xpcr); in cpc_eventtostr()
401 if ((pic[0] = regtostr(event->ce_cpuver, 0, xpcr.pic[0])) == NULL) in cpc_eventtostr()
403 if ((pic[1] = regtostr(event->ce_cpuver, 1, xpcr.pic[1])) == NULL) { in cpc_eventtostr()
414 if (!xpcr.usr) in cpc_eventtostr()
416 if (xpcr.sys) in cpc_eventtostr()
454 struct xpcr xpcr; in __cpc_eventtoset() local
471 unmake_pcr(event->ce_pcr, event->ce_cpuver, &xpcr); in __cpc_eventtoset()
472 if ((pic[0] = regtostr(event->ce_cpuver, 0, xpcr.pic[0])) == NULL) in __cpc_eventtoset()
474 if ((pic[1] = regtostr(event->ce_cpuver, 1, xpcr.pic[1])) == NULL) { in __cpc_eventtoset()
479 if (xpcr.usr) in __cpc_eventtoset()
481 if (xpcr.sys) in __cpc_eventtoset()