Home
last modified time | relevance | path

Searched refs:__csr_num (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/perf/
H A Driscv_pmu.c93 #define switchcase_csr_read(__csr_num, __val) {\ in csr_read_num() argument
94 case __csr_num: \ in csr_read_num()
95 __val = csr_read(__csr_num); \ in csr_read_num()
97 #define switchcase_csr_read_2(__csr_num, __val) {\ in csr_read_num() argument
98 switchcase_csr_read(__csr_num + 0, __val) \ in csr_read_num()
99 switchcase_csr_read(__csr_num + 1, __val)} in csr_read_num()
100 #define switchcase_csr_read_4(__csr_num, __val) {\ in csr_read_num() argument
101 switchcase_csr_read_2(__csr_num + 0, __val) \ in csr_read_num()
102 switchcase_csr_read_2(__csr_num + 2, __val)} in csr_read_num()
103 #define switchcase_csr_read_8(__csr_num, __val) {\ in csr_read_num() argument
[all …]
/linux/tools/lib/perf/
H A Dmmap.c428 #define switchcase_csr_read(__csr_num, __val) {\ in csr_read_num() argument
429 case __csr_num: \ in csr_read_num()
430 __val = csr_read(__csr_num); \ in csr_read_num()
432 #define switchcase_csr_read_2(__csr_num, __val) {\ in csr_read_num() argument
433 switchcase_csr_read(__csr_num + 0, __val) \ in csr_read_num()
434 switchcase_csr_read(__csr_num + 1, __val)} in csr_read_num()
435 #define switchcase_csr_read_4(__csr_num, __val) {\ in csr_read_num() argument
436 switchcase_csr_read_2(__csr_num + 0, __val) \ in csr_read_num()
437 switchcase_csr_read_2(__csr_num + 2, __val)} in csr_read_num()
438 #define switchcase_csr_read_8(__csr_num, __va in csr_read_num() argument
441 switchcase_csr_read_16(__csr_num,__val) csr_read_num() argument
444 switchcase_csr_read_32(__csr_num,__val) csr_read_num() argument
[all...]
/linux/tools/testing/selftests/kvm/riscv/
H A Dsbi_pmu_test.c46 #define switchcase_csr_read(__csr_num, __val) {\ in pmu_csr_read_num() argument
47 case __csr_num: \ in pmu_csr_read_num()
48 __val = csr_read(__csr_num); \ in pmu_csr_read_num()
50 #define switchcase_csr_read_2(__csr_num, __val) {\ in pmu_csr_read_num() argument
51 switchcase_csr_read(__csr_num + 0, __val) \ in pmu_csr_read_num()
52 switchcase_csr_read(__csr_num + 1, __val)} in pmu_csr_read_num()
53 #define switchcase_csr_read_4(__csr_num, __val) {\ in pmu_csr_read_num() argument
54 switchcase_csr_read_2(__csr_num + 0, __val) \ in pmu_csr_read_num()
55 switchcase_csr_read_2(__csr_num + 2, __val)} in pmu_csr_read_num()
56 #define switchcase_csr_read_8(__csr_num, __val) {\ in pmu_csr_read_num() argument
[all …]