Lines Matching refs:idx
198 static inline uint64_t ser_get_feature(uintptr_t base, unsigned int idx) in ser_get_feature() argument
200 return mmio_read_64(base + ERR_FR(idx)); in ser_get_feature()
203 static inline uint64_t ser_get_control(uintptr_t base, unsigned int idx) in ser_get_control() argument
205 return mmio_read_64(base + ERR_CTLR(idx)); in ser_get_control()
208 static inline uint64_t ser_get_status(uintptr_t base, unsigned int idx) in ser_get_status() argument
210 return mmio_read_64(base + ERR_STATUS(idx)); in ser_get_status()
224 static inline void ser_set_status(uintptr_t base, unsigned int idx, in ser_set_status() argument
227 mmio_write_64(base + ERR_STATUS(idx), status); in ser_set_status()
230 static inline uint64_t ser_get_addr(uintptr_t base, unsigned int idx) in ser_get_addr() argument
232 return mmio_read_64(base + ERR_ADDR(idx)); in ser_get_addr()
235 static inline uint64_t ser_get_misc0(uintptr_t base, unsigned int idx) in ser_get_misc0() argument
237 return mmio_read_64(base + ERR_MISC0(idx)); in ser_get_misc0()
240 static inline uint64_t ser_get_misc1(uintptr_t base, unsigned int idx) in ser_get_misc1() argument
242 return mmio_read_64(base + ERR_MISC1(idx)); in ser_get_misc1()
249 static inline void ser_sys_select_record(unsigned int idx) in ser_sys_select_record() argument
254 assert(idx < max_idx); in ser_sys_select_record()
256 write_errselr_el1(idx); in ser_sys_select_record()