Lines Matching refs:__csr_num
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
425 switchcase_csr_read_4(__csr_num + 0, __val) \ in csr_read_num()
426 switchcase_csr_read_4(__csr_num + 4, __val)} in csr_read_num()
427 #define switchcase_csr_read_16(__csr_num, __val) {\ in csr_read_num() argument
428 switchcase_csr_read_8(__csr_num + 0, __val) \ in csr_read_num()
429 switchcase_csr_read_8(__csr_num + 8, __val)} in csr_read_num()
430 #define switchcase_csr_read_32(__csr_num, __val) {\ in csr_read_num() argument
431 switchcase_csr_read_16(__csr_num + 0, __val) \ in csr_read_num()
432 switchcase_csr_read_16(__csr_num + 16, __val)} in csr_read_num()