Lines Matching defs:xcesr
556 struct xcesr {
563 unmake_cesr(uint32_t cesr, int cpuver, struct xcesr *xcesr)
565 xcesr->evsel[0] = (cesr >> CPC_P5_CESR_ES0_SHIFT) &
567 xcesr->evsel[1] = (cesr >> CPC_P5_CESR_ES1_SHIFT) &
569 xcesr->usr[0] = (cesr >> CPC_P5_CESR_USR0) & 1u;
570 xcesr->usr[1] = (cesr >> CPC_P5_CESR_USR1) & 1u;
571 xcesr->sys[0] = (cesr >> CPC_P5_CESR_OS0) & 1u;
572 xcesr->sys[1] = (cesr >> CPC_P5_CESR_OS1) & 1u;
573 xcesr->clk[0] = (cesr >> CPC_P5_CESR_CLK0) & 1u;
574 xcesr->clk[1] = (cesr >> CPC_P5_CESR_CLK1) & 1u;
575 xcesr->pc[0] = (cesr >> CPC_P5_CESR_PC0) & 1u;
576 xcesr->pc[1] = (cesr >> CPC_P5_CESR_PC1) & 1u;
580 if (xcesr->usr[0] == 0 && xcesr->sys[0] == 0)
581 xcesr->clk[0] = 0;
582 if (xcesr->usr[1] == 0 && xcesr->sys[1] == 0)
583 xcesr->clk[1] = 0;
633 struct xcesr xcesr;
635 unmake_cesr(event->ce_cesr, cpuver, &xcesr);
636 if ((pic[0] = regtostr(cpuver, 0, xcesr.evsel[0])) == NULL)
638 if ((pic[1] = regtostr(cpuver, 1, xcesr.evsel[1])) == NULL) {
647 xcesr.usr[0], xcesr.usr[1], 1, tokens[D_nouser]);
649 xcesr.sys[0], xcesr.sys[1], 0, tokens[D_sys]);
651 xcesr.clk[0], xcesr.clk[1], 0, tokens[D_noedge]);
653 xcesr.pc[0], xcesr.pc[1], 0, tokens[D_pc]);
805 struct xcesr xcesr;
806 unmake_cesr(event->ce_cesr, cpuver, &xcesr);
811 if ((pic[i] = regtostr(cpuver, i, xcesr.evsel[i]))
817 if (xcesr.usr[i] == 1)
819 if (xcesr.sys[i] == 1)
821 if (xcesr.clk[i] == 1)
823 if (xcesr.pc[i] == 1)
840 if (xcesr.clk[i] == 1) {
846 if (xcesr.pc[i] == 1) {