Lines Matching refs:reg_num
55 static u64 direct_pcr_read(unsigned long reg_num) in direct_pcr_read() argument
59 WARN_ON_ONCE(reg_num != 0); in direct_pcr_read()
64 static void direct_pcr_write(unsigned long reg_num, u64 val) in direct_pcr_write() argument
66 WARN_ON_ONCE(reg_num != 0); in direct_pcr_write()
70 static u64 direct_pic_read(unsigned long reg_num) in direct_pic_read() argument
74 WARN_ON_ONCE(reg_num != 0); in direct_pic_read()
79 static void direct_pic_write(unsigned long reg_num, u64 val) in direct_pic_write() argument
81 WARN_ON_ONCE(reg_num != 0); in direct_pic_write()
111 static void n2_pcr_write(unsigned long reg_num, u64 val) in n2_pcr_write() argument
115 WARN_ON_ONCE(reg_num != 0); in n2_pcr_write()
119 direct_pcr_write(reg_num, val); in n2_pcr_write()
121 direct_pcr_write(reg_num, val); in n2_pcr_write()
144 static u64 n4_pcr_read(unsigned long reg_num) in n4_pcr_read() argument
148 (void) sun4v_vt_get_perfreg(reg_num, &val); in n4_pcr_read()
153 static void n4_pcr_write(unsigned long reg_num, u64 val) in n4_pcr_write() argument
155 (void) sun4v_vt_set_perfreg(reg_num, val); in n4_pcr_write()
158 static u64 n4_pic_read(unsigned long reg_num) in n4_pic_read() argument
164 : "r" (reg_num * 0x8UL), "i" (ASI_PIC)); in n4_pic_read()
169 static void n4_pic_write(unsigned long reg_num, u64 val) in n4_pic_write() argument
173 : "r" (val), "r" (reg_num * 0x8UL), "i" (ASI_PIC)); in n4_pic_write()
195 static u64 n5_pcr_read(unsigned long reg_num) in n5_pcr_read() argument
199 (void) sun4v_t5_get_perfreg(reg_num, &val); in n5_pcr_read()
204 static void n5_pcr_write(unsigned long reg_num, u64 val) in n5_pcr_write() argument
206 (void) sun4v_t5_set_perfreg(reg_num, val); in n5_pcr_write()
221 static u64 m7_pcr_read(unsigned long reg_num) in m7_pcr_read() argument
225 (void) sun4v_m7_get_perfreg(reg_num, &val); in m7_pcr_read()
230 static void m7_pcr_write(unsigned long reg_num, u64 val) in m7_pcr_write() argument
232 (void) sun4v_m7_set_perfreg(reg_num, val); in m7_pcr_write()