Lines Matching refs:rx
106 #define IS_GROUP1(rx) (rx < SCTRL_SYSCFG_5)
107 #define IS_GROUP3(rx) (rx > SCTRL_SYSCFG_4)
108 #define IS_GROUP2(rx) (rx > (SCTRL_SYSCFG_5 - 1) && \
109 (rx < (SCTRL_SYSCFG_4 + 1)))
297 #define SCSB_REG_ADDR(rx) (scb_reg_index[rx])
299 #define FRU_OFFSET_BASE(rx) (MCT_MAX_FRUS * (IS_SCB_P15 ? 0 : \
300 (IS_GROUP1(rx) ? REG_GROUP1 : \
301 (IS_GROUP3(rx) ? REG_GROUP3 : \
303 #define FRU_OFFSET_VAL(code, rx) (scb_fru_offset[FRU_OFFSET_BASE(rx) + \
306 #define FRU_OFFSET(code, rx) (FRU_OFFSET_VAL(code, rx) & 0xf)
307 #define FRU_REG_INDEX(code, rx) (((FRU_OFFSET_VAL(code, rx) >> 4) \
308 & 0xf) + rx)
309 #define FRU_REG_ADDR(code, rx) (SCSB_REG_ADDR(FRU_REG_INDEX(code, rx)))
312 #define SYS_REG_INDEX(idx, rx) (((SYS_OFFSET_VAL(idx) >> 4) \
313 & 0xf) + rx)
315 #define ALARM_RESET_REG_INDEX(code, rx) ((IS_SCB_P15 ? 1 : \
316 ((FRU_OFFSET_VAL(code, rx) >> 4) \
317 & 0xf)) + rx)