Lines Matching refs:offset
15 if (offset == cval) { \
47 struct cscfg_regval_csdev *reg_csdev, u32 offset) in etm4_cfg_map_reg_offset() argument
53 if (((offset >= TRCEVENTCTL0R) && (offset <= TRCVIPCSSCTLR)) || in etm4_cfg_map_reg_offset()
54 ((offset >= TRCSEQRSTEVR) && (offset <= TRCEXTINSELR)) || in etm4_cfg_map_reg_offset()
55 ((offset >= TRCCIDCCTLR0) && (offset <= TRCVMIDCCTLR1))) { in etm4_cfg_map_reg_offset()
76 } else if ((offset & GENMASK(11, 4)) == TRCSEQEVRn(0)) { in etm4_cfg_map_reg_offset()
78 idx = (offset & GENMASK(3, 0)) / 4; in etm4_cfg_map_reg_offset()
83 } else if ((offset >= TRCSSCCRn(0)) && (offset <= TRCSSPCICRn(7))) { in etm4_cfg_map_reg_offset()
85 idx = (offset & GENMASK(4, 0)) / 4; in etm4_cfg_map_reg_offset()
86 off_mask = (offset & GENMASK(11, 5)); in etm4_cfg_map_reg_offset()
92 } else if ((offset >= TRCCIDCVRn(0)) && (offset <= TRCVMIDCVRn(7))) { in etm4_cfg_map_reg_offset()
94 idx = (offset & GENMASK(5, 0)) / 8; in etm4_cfg_map_reg_offset()
95 off_mask = (offset & GENMASK(11, 6)); in etm4_cfg_map_reg_offset()
100 } else if ((offset >= TRCRSCTLRn(2)) && in etm4_cfg_map_reg_offset()
101 (offset <= TRCRSCTLRn((ETM_MAX_RES_SEL - 1)))) { in etm4_cfg_map_reg_offset()
103 idx = (offset & GENMASK(6, 0)) / 4; in etm4_cfg_map_reg_offset()
108 } else if ((offset >= TRCACVRn(0)) && in etm4_cfg_map_reg_offset()
109 (offset <= TRCACATRn((ETM_MAX_SINGLE_ADDR_CMP - 1)))) { in etm4_cfg_map_reg_offset()
111 idx = (offset & GENMASK(6, 0)) / 8; in etm4_cfg_map_reg_offset()
112 off_mask = offset & GENMASK(11, 7); in etm4_cfg_map_reg_offset()
117 } else if ((offset >= TRCCNTRLDVRn(0)) && in etm4_cfg_map_reg_offset()
118 (offset <= TRCCNTVRn((ETMv4_MAX_CNTR - 1)))) { in etm4_cfg_map_reg_offset()
120 idx = (offset & GENMASK(3, 0)) / 4; in etm4_cfg_map_reg_offset()
121 off_mask = offset & GENMASK(11, 4); in etm4_cfg_map_reg_offset()
153 u32 offset; in etm4_cfg_load_feature() local
165 offset = feat_desc->regs_desc[i].offset; in etm4_cfg_load_feature()
166 err = etm4_cfg_map_reg_offset(drvdata, &feat_csdev->regs_csdev[i], offset); in etm4_cfg_load_feature()