Lines Matching defs:cpuver

72 cpc_getusage(int cpuver)
74 switch (cpuver) {
110 const struct keyval *kv, int cpuver, char *value, uint32_t *bits)
131 const struct keyval *kv, int cpuver, char *value, uint32_t *bits)
144 if (__cpc_name_to_reg(cpuver, regno, value, &val8) != 0) {
145 switch (cpuver) {
170 const struct keyval *kv, int cpuver, char *value, uint32_t *bits)
183 const struct keyval *kv, int cpuver, char *value, uint32_t *bits)
195 const struct keyval *kv, int cpuver, char *value, uint32_t *bits)
204 if ((rv = kv->kv_action(fn, kv, cpuver, value, bits)) != 0)
207 return (kv->kv_action(fn, kv, cpuver, value, bits));
368 cpc_strtoevent(int cpuver, const char *spec, cpc_event_t *event)
383 switch (event->ce_cpuver = cpuver) {
413 if (kv->kv_action(fn, kv, cpuver, value, bits) != 0) {
445 kv, cpuver, value, bits) != 0) {
453 kv, cpuver, value, bits) != 0) {
527 regtostr(int cpuver, int regno, uint8_t bits)
531 if ((sname = __cpc_reg_to_name(cpuver, regno, bits)) != NULL)
543 unmake_pes(uint32_t pes, int cpuver, struct xpes *xpes)
563 unmake_cesr(uint32_t cesr, int cpuver, struct xcesr *xcesr)
591 int cpuver = event->ce_cpuver;
593 switch (cpuver) {
599 unmake_pes(event->ce_pes[0], cpuver, &xpes[0]);
600 if ((pic[0] = regtostr(cpuver, 0, xpes[0].evsel)) == NULL)
603 unmake_pes(event->ce_pes[1], cpuver, &xpes[1]);
604 if ((pic[1] = regtostr(cpuver, 1, xpes[1].evsel)) == NULL) {
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) {
694 int cpuver = event->ce_cpuver;
710 switch (cpuver) {
719 unmake_pes(event->ce_pes[i], cpuver, &xpes[i]);
720 if ((pic[i] = regtostr(cpuver, i,
806 unmake_cesr(event->ce_cesr, cpuver, &xcesr);
811 if ((pic[i] = regtostr(cpuver, i, xcesr.evsel[i]))