Searched refs:__csr_num (Results 1 – 2 of 2) sorted by relevance
/linux-6.6.21/drivers/perf/ |
D | riscv_pmu.c | 95 #define switchcase_csr_read(__csr_num, __val) {\ in csr_read_num() argument 96 case __csr_num: \ in csr_read_num() 97 __val = csr_read(__csr_num); \ in csr_read_num() 99 #define switchcase_csr_read_2(__csr_num, __val) {\ in csr_read_num() argument 100 switchcase_csr_read(__csr_num + 0, __val) \ in csr_read_num() 101 switchcase_csr_read(__csr_num + 1, __val)} in csr_read_num() 102 #define switchcase_csr_read_4(__csr_num, __val) {\ in csr_read_num() argument 103 switchcase_csr_read_2(__csr_num + 0, __val) \ in csr_read_num() 104 switchcase_csr_read_2(__csr_num + 2, __val)} in csr_read_num() 105 #define switchcase_csr_read_8(__csr_num, __val) {\ in csr_read_num() argument [all …]
|
/linux-6.6.21/tools/lib/perf/ |
D | mmap.c | 414 #define switchcase_csr_read(__csr_num, __val) {\ in csr_read_num() argument 415 case __csr_num: \ in csr_read_num() 416 __val = csr_read(__csr_num); \ in csr_read_num() 418 #define switchcase_csr_read_2(__csr_num, __val) {\ in csr_read_num() argument 419 switchcase_csr_read(__csr_num + 0, __val) \ in csr_read_num() 420 switchcase_csr_read(__csr_num + 1, __val)} in csr_read_num() 421 #define switchcase_csr_read_4(__csr_num, __val) {\ in csr_read_num() argument 422 switchcase_csr_read_2(__csr_num + 0, __val) \ in csr_read_num() 423 switchcase_csr_read_2(__csr_num + 2, __val)} in csr_read_num() 424 #define switchcase_csr_read_8(__csr_num, __val) {\ in csr_read_num() argument [all …]
|