Lines Matching defs:config
168 #define CMN_EVENT_TYPE(event) FIELD_GET(CMN_CONFIG_TYPE, (event)->attr.config)
169 #define CMN_EVENT_EVENTID(event) FIELD_GET(CMN_CONFIG_EVENTID, (event)->attr.config)
170 #define CMN_EVENT_OCCUPID(event) FIELD_GET(CMN_CONFIG_OCCUPID, (event)->attr.config)
171 #define CMN_EVENT_BYNODEID(event) FIELD_GET(CMN_CONFIG_BYNODEID, (event)->attr.config)
172 #define CMN_EVENT_NODEID(event) FIELD_GET(CMN_CONFIG_NODEID, (event)->attr.config)
183 #define CMN_EVENT_WP_COMBINE(event) FIELD_GET(CMN_CONFIG_WP_COMBINE, (event)->attr.config)
184 #define CMN_EVENT_WP_DEV_SEL(event) FIELD_GET(CMN_CONFIG_WP_DEV_SEL, (event)->attr.config)
185 #define CMN_EVENT_WP_CHN_SEL(event) FIELD_GET(CMN_CONFIG_WP_CHN_SEL, (event)->attr.config)
186 #define CMN_EVENT_WP_GRP(event) FIELD_GET(CMN_CONFIG_WP_GRP, (event)->attr.config)
187 #define CMN_EVENT_WP_EXCLUSIVE(event) FIELD_GET(CMN_CONFIG_WP_EXCLUSIVE, (event)->attr.config)
631 int config;
1259 return sysfs_emit(buf, "config:%d\n", lo);
1261 if (!fmt->config)
1262 return sysfs_emit(buf, "config:%d-%d\n", lo, hi);
1264 return sysfs_emit(buf, "config%d:%d-%d\n", fmt->config, lo, hi);
1270 .config = _cfg, \
1345 u32 config;
1353 config = FIELD_PREP(CMN_DTM_WPn_CONFIG_WP_DEV_SEL, dev) |
1358 config |= is_cmn600 ? CMN600_WPn_CONFIG_WP_EXCLUSIVE :
1361 config |= is_cmn600 ? CMN600_WPn_CONFIG_WP_COMBINE :
1363 return config;
2390 /* 1x1 config plays havoc with XP event encodings */
2392 dev_warn(cmn->dev, "1x1 config not fully supported, translate XP events manually\n");