Lines Matching full:config
17 struct etmv4_config *config = &drvdata->config; in etm4_set_mode_exclude() local
19 idx = config->addr_idx; in etm4_set_mode_exclude()
25 if (FIELD_GET(TRCACATRn_TYPE_MASK, config->addr_acc[idx]) == TRCACATRn_TYPE_ADDR) { in etm4_set_mode_exclude()
34 if (config->addr_type[idx] != ETM_ADDR_TYPE_RANGE || in etm4_set_mode_exclude()
35 config->addr_type[idx + 1] != ETM_ADDR_TYPE_RANGE) in etm4_set_mode_exclude()
43 config->viiectlr |= BIT(idx / 2 + 16); in etm4_set_mode_exclude()
44 config->viiectlr &= ~BIT(idx / 2); in etm4_set_mode_exclude()
50 config->viiectlr |= BIT(idx / 2); in etm4_set_mode_exclude()
51 config->viiectlr &= ~BIT(idx / 2 + 16); in etm4_set_mode_exclude()
172 struct etmv4_config *config = &drvdata->config; in reset_store() local
179 config->mode = 0x0; in reset_store()
182 config->mode &= ~(ETM_MODE_LOAD | ETM_MODE_STORE); in reset_store()
183 config->cfg &= ~(TRCCONFIGR_INSTP0_LOAD | TRCCONFIGR_INSTP0_STORE); in reset_store()
186 config->mode &= ~(ETM_MODE_DATA_TRACE_ADDR | in reset_store()
188 config->cfg &= ~(TRCCONFIGR_DA | TRCCONFIGR_DV); in reset_store()
191 config->eventctrl0 = 0x0; in reset_store()
192 config->eventctrl1 = 0x0; in reset_store()
195 config->ts_ctrl = 0x0; in reset_store()
198 config->stall_ctrl = 0x0; in reset_store()
202 config->syncfreq = 0x8; in reset_store()
209 config->vinst_ctrl = FIELD_PREP(TRCVICTLR_EVENT_MASK, 0x01); in reset_store()
211 config->mode |= ETM_MODE_VIEWINST_STARTSTOP; in reset_store()
213 config->vinst_ctrl |= TRCVICTLR_SSSTATUS; in reset_store()
217 config->viiectlr = 0x0; in reset_store()
220 config->vissctlr = 0x0; in reset_store()
221 config->vipcssctlr = 0x0; in reset_store()
225 config->seq_ctrl[i] = 0x0; in reset_store()
226 config->seq_rst = 0x0; in reset_store()
227 config->seq_state = 0x0; in reset_store()
230 config->ext_inp = 0x0; in reset_store()
232 config->cntr_idx = 0x0; in reset_store()
234 config->cntrldvr[i] = 0x0; in reset_store()
235 config->cntr_ctrl[i] = 0x0; in reset_store()
236 config->cntr_val[i] = 0x0; in reset_store()
239 config->res_idx = 0x0; in reset_store()
241 config->res_ctrl[i] = 0x0; in reset_store()
243 config->ss_idx = 0x0; in reset_store()
245 config->ss_ctrl[i] = 0x0; in reset_store()
246 config->ss_pe_cmp[i] = 0x0; in reset_store()
249 config->addr_idx = 0x0; in reset_store()
251 config->addr_val[i] = 0x0; in reset_store()
252 config->addr_acc[i] = 0x0; in reset_store()
253 config->addr_type[i] = ETM_ADDR_TYPE_NONE; in reset_store()
256 config->ctxid_idx = 0x0; in reset_store()
258 config->ctxid_pid[i] = 0x0; in reset_store()
260 config->ctxid_mask0 = 0x0; in reset_store()
261 config->ctxid_mask1 = 0x0; in reset_store()
263 config->vmid_idx = 0x0; in reset_store()
265 config->vmid_val[i] = 0x0; in reset_store()
266 config->vmid_mask0 = 0x0; in reset_store()
267 config->vmid_mask1 = 0x0; in reset_store()
285 struct etmv4_config *config = &drvdata->config; in mode_show() local
287 val = config->mode; in mode_show()
297 struct etmv4_config *config = &drvdata->config; in mode_store() local
303 config->mode = val & ETMv4_MODE_ALL; in mode_store()
307 config->cfg &= ~TRCCONFIGR_INSTP0_LOAD_STORE; in mode_store()
308 if (config->mode & ETM_MODE_LOAD) in mode_store()
310 config->cfg |= TRCCONFIGR_INSTP0_LOAD; in mode_store()
311 if (config->mode & ETM_MODE_STORE) in mode_store()
313 config->cfg |= TRCCONFIGR_INSTP0_STORE; in mode_store()
314 if (config->mode & ETM_MODE_LOAD_STORE) in mode_store()
319 config->cfg |= TRCCONFIGR_INSTP0_LOAD_STORE; in mode_store()
323 if ((config->mode & ETM_MODE_BB) && (drvdata->trcbb == true)) in mode_store()
324 config->cfg |= TRCCONFIGR_BB; in mode_store()
326 config->cfg &= ~TRCCONFIGR_BB; in mode_store()
329 if ((config->mode & ETMv4_MODE_CYCACC) && in mode_store()
331 config->cfg |= TRCCONFIGR_CCI; in mode_store()
333 config->cfg &= ~TRCCONFIGR_CCI; in mode_store()
336 if ((config->mode & ETMv4_MODE_CTXID) && (drvdata->ctxid_size)) in mode_store()
337 config->cfg |= TRCCONFIGR_CID; in mode_store()
339 config->cfg &= ~TRCCONFIGR_CID; in mode_store()
341 if ((config->mode & ETM_MODE_VMID) && (drvdata->vmid_size)) in mode_store()
342 config->cfg |= TRCCONFIGR_VMID; in mode_store()
344 config->cfg &= ~TRCCONFIGR_VMID; in mode_store()
347 mode = ETM_MODE_COND(config->mode); in mode_store()
349 config->cfg &= ~TRCCONFIGR_COND_MASK; in mode_store()
350 config->cfg |= mode << __bf_shf(TRCCONFIGR_COND_MASK); in mode_store()
354 if ((config->mode & ETMv4_MODE_TIMESTAMP) && (drvdata->ts_size)) in mode_store()
355 config->cfg |= TRCCONFIGR_TS; in mode_store()
357 config->cfg &= ~TRCCONFIGR_TS; in mode_store()
360 if ((config->mode & ETM_MODE_RETURNSTACK) && in mode_store()
362 config->cfg |= TRCCONFIGR_RS; in mode_store()
364 config->cfg &= ~TRCCONFIGR_RS; in mode_store()
367 mode = ETM_MODE_QELEM(config->mode); in mode_store()
369 config->cfg &= ~(TRCCONFIGR_QE_W_COUNTS | TRCCONFIGR_QE_WO_COUNTS); in mode_store()
376 config->cfg |= TRCCONFIGR_QE_W_COUNTS; in mode_store()
382 config->cfg |= TRCCONFIGR_QE_WO_COUNTS; in mode_store()
385 if ((config->mode & ETM_MODE_ATB_TRIGGER) && in mode_store()
387 config->eventctrl1 |= TRCEVENTCTL1R_ATB; in mode_store()
389 config->eventctrl1 &= ~TRCEVENTCTL1R_ATB; in mode_store()
392 if ((config->mode & ETM_MODE_LPOVERRIDE) && in mode_store()
394 config->eventctrl1 |= TRCEVENTCTL1R_LPOVERRIDE; in mode_store()
396 config->eventctrl1 &= ~TRCEVENTCTL1R_LPOVERRIDE; in mode_store()
399 if ((config->mode & ETM_MODE_ISTALL_EN) && (drvdata->stallctl == true)) in mode_store()
400 config->stall_ctrl |= TRCSTALLCTLR_ISTALL; in mode_store()
402 config->stall_ctrl &= ~TRCSTALLCTLR_ISTALL; in mode_store()
405 if (config->mode & ETM_MODE_INSTPRIO) in mode_store()
406 config->stall_ctrl |= TRCSTALLCTLR_INSTPRIORITY; in mode_store()
408 config->stall_ctrl &= ~TRCSTALLCTLR_INSTPRIORITY; in mode_store()
411 if ((config->mode & ETM_MODE_NOOVERFLOW) && in mode_store()
413 config->stall_ctrl |= TRCSTALLCTLR_NOOVERFLOW; in mode_store()
415 config->stall_ctrl &= ~TRCSTALLCTLR_NOOVERFLOW; in mode_store()
418 if (config->mode & ETM_MODE_VIEWINST_STARTSTOP) in mode_store()
419 config->vinst_ctrl |= TRCVICTLR_SSSTATUS; in mode_store()
421 config->vinst_ctrl &= ~TRCVICTLR_SSSTATUS; in mode_store()
424 if (config->mode & ETM_MODE_TRACE_RESET) in mode_store()
425 config->vinst_ctrl |= TRCVICTLR_TRCRESET; in mode_store()
427 config->vinst_ctrl &= ~TRCVICTLR_TRCRESET; in mode_store()
430 if ((config->mode & ETM_MODE_TRACE_ERR) && in mode_store()
432 config->vinst_ctrl |= TRCVICTLR_TRCERR; in mode_store()
434 config->vinst_ctrl &= ~TRCVICTLR_TRCERR; in mode_store()
436 if (config->mode & (ETM_MODE_EXCL_KERN | ETM_MODE_EXCL_USER)) in mode_store()
437 etm4_config_trace_mode(config); in mode_store()
451 struct etmv4_config *config = &drvdata->config; in pe_show() local
453 val = config->pe_sel; in pe_show()
463 struct etmv4_config *config = &drvdata->config; in pe_store() local
474 config->pe_sel = val; in pe_store()
486 struct etmv4_config *config = &drvdata->config; in event_show() local
488 val = config->eventctrl0; in event_show()
498 struct etmv4_config *config = &drvdata->config; in event_store() local
507 config->eventctrl0 = val & 0xFF; in event_store()
511 config->eventctrl0 = val & 0xFFFF; in event_store()
515 config->eventctrl0 = val & 0xFFFFFF; in event_store()
519 config->eventctrl0 = val; in event_store()
535 struct etmv4_config *config = &drvdata->config; in event_instren_show() local
537 val = FIELD_GET(TRCEVENTCTL1R_INSTEN_MASK, config->eventctrl1); in event_instren_show()
547 struct etmv4_config *config = &drvdata->config; in event_instren_store() local
554 config->eventctrl1 &= ~TRCEVENTCTL1R_INSTEN_MASK; in event_instren_store()
558 config->eventctrl1 |= val & TRCEVENTCTL1R_INSTEN_1; in event_instren_store()
562 config->eventctrl1 |= val & (TRCEVENTCTL1R_INSTEN_0 | TRCEVENTCTL1R_INSTEN_1); in event_instren_store()
566 config->eventctrl1 |= val & (TRCEVENTCTL1R_INSTEN_0 | in event_instren_store()
572 config->eventctrl1 |= val & (TRCEVENTCTL1R_INSTEN_0 | in event_instren_store()
591 struct etmv4_config *config = &drvdata->config; in event_ts_show() local
593 val = config->ts_ctrl; in event_ts_show()
603 struct etmv4_config *config = &drvdata->config; in event_ts_store() local
610 config->ts_ctrl = val & ETMv4_EVENT_MASK; in event_ts_store()
621 struct etmv4_config *config = &drvdata->config; in syncfreq_show() local
623 val = config->syncfreq; in syncfreq_show()
633 struct etmv4_config *config = &drvdata->config; in syncfreq_store() local
640 config->syncfreq = val & ETMv4_SYNC_MASK; in syncfreq_store()
651 struct etmv4_config *config = &drvdata->config; in cyc_threshold_show() local
653 val = config->ccctlr; in cyc_threshold_show()
663 struct etmv4_config *config = &drvdata->config; in cyc_threshold_store() local
673 config->ccctlr = val; in cyc_threshold_store()
684 struct etmv4_config *config = &drvdata->config; in bb_ctrl_show() local
686 val = config->bb_ctrl; in bb_ctrl_show()
696 struct etmv4_config *config = &drvdata->config; in bb_ctrl_store() local
713 config->bb_ctrl = val & (TRCBBCTLR_MODE | TRCBBCTLR_RANGE_MASK); in bb_ctrl_store()
724 struct etmv4_config *config = &drvdata->config; in event_vinst_show() local
726 val = FIELD_GET(TRCVICTLR_EVENT_MASK, config->vinst_ctrl); in event_vinst_show()
736 struct etmv4_config *config = &drvdata->config; in event_vinst_store() local
743 config->vinst_ctrl &= ~TRCVICTLR_EVENT_MASK; in event_vinst_store()
744 config->vinst_ctrl |= FIELD_PREP(TRCVICTLR_EVENT_MASK, val); in event_vinst_store()
756 struct etmv4_config *config = &drvdata->config; in s_exlevel_vinst_show() local
758 val = FIELD_GET(TRCVICTLR_EXLEVEL_S_MASK, config->vinst_ctrl); in s_exlevel_vinst_show()
768 struct etmv4_config *config = &drvdata->config; in s_exlevel_vinst_store() local
775 config->vinst_ctrl &= ~TRCVICTLR_EXLEVEL_S_MASK; in s_exlevel_vinst_store()
778 config->vinst_ctrl |= val << __bf_shf(TRCVICTLR_EXLEVEL_S_MASK); in s_exlevel_vinst_store()
790 struct etmv4_config *config = &drvdata->config; in ns_exlevel_vinst_show() local
793 val = FIELD_GET(TRCVICTLR_EXLEVEL_NS_MASK, config->vinst_ctrl); in ns_exlevel_vinst_show()
803 struct etmv4_config *config = &drvdata->config; in ns_exlevel_vinst_store() local
810 config->vinst_ctrl &= ~TRCVICTLR_EXLEVEL_NS_MASK; in ns_exlevel_vinst_store()
813 config->vinst_ctrl |= val << __bf_shf(TRCVICTLR_EXLEVEL_NS_MASK); in ns_exlevel_vinst_store()
825 struct etmv4_config *config = &drvdata->config; in addr_idx_show() local
827 val = config->addr_idx; in addr_idx_show()
837 struct etmv4_config *config = &drvdata->config; in addr_idx_store() local
849 config->addr_idx = val; in addr_idx_store()
862 struct etmv4_config *config = &drvdata->config; in addr_instdatatype_show() local
865 idx = config->addr_idx; in addr_instdatatype_show()
866 val = FIELD_GET(TRCACATRn_TYPE_MASK, config->addr_acc[idx]); in addr_instdatatype_show()
883 struct etmv4_config *config = &drvdata->config; in addr_instdatatype_store() local
891 idx = config->addr_idx; in addr_instdatatype_store()
894 config->addr_acc[idx] &= ~TRCACATRn_TYPE_MASK; in addr_instdatatype_store()
908 struct etmv4_config *config = &drvdata->config; in addr_single_show() local
910 idx = config->addr_idx; in addr_single_show()
912 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_show()
913 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_show()
917 val = (unsigned long)config->addr_val[idx]; in addr_single_show()
929 struct etmv4_config *config = &drvdata->config; in addr_single_store() local
935 idx = config->addr_idx; in addr_single_store()
936 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_store()
937 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_store()
942 config->addr_val[idx] = (u64)val; in addr_single_store()
943 config->addr_type[idx] = ETM_ADDR_TYPE_SINGLE; in addr_single_store()
956 struct etmv4_config *config = &drvdata->config; in addr_range_show() local
959 idx = config->addr_idx; in addr_range_show()
964 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_show()
965 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_show()
966 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_show()
967 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_show()
972 val1 = (unsigned long)config->addr_val[idx]; in addr_range_show()
973 val2 = (unsigned long)config->addr_val[idx + 1]; in addr_range_show()
985 struct etmv4_config *config = &drvdata->config; in addr_range_store() local
998 idx = config->addr_idx; in addr_range_store()
1004 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_store()
1005 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_store()
1006 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_store()
1007 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_store()
1012 config->addr_val[idx] = (u64)val1; in addr_range_store()
1013 config->addr_type[idx] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
1014 config->addr_val[idx + 1] = (u64)val2; in addr_range_store()
1015 config->addr_type[idx + 1] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
1022 exclude = config->mode & ETM_MODE_EXCLUDE; in addr_range_store()
1037 struct etmv4_config *config = &drvdata->config; in addr_start_show() local
1040 idx = config->addr_idx; in addr_start_show()
1042 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_show()
1043 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_show()
1048 val = (unsigned long)config->addr_val[idx]; in addr_start_show()
1060 struct etmv4_config *config = &drvdata->config; in addr_start_store() local
1066 idx = config->addr_idx; in addr_start_store()
1071 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_store()
1072 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_store()
1077 config->addr_val[idx] = (u64)val; in addr_start_store()
1078 config->addr_type[idx] = ETM_ADDR_TYPE_START; in addr_start_store()
1079 config->vissctlr |= BIT(idx); in addr_start_store()
1092 struct etmv4_config *config = &drvdata->config; in addr_stop_show() local
1095 idx = config->addr_idx; in addr_stop_show()
1097 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_show()
1098 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_show()
1103 val = (unsigned long)config->addr_val[idx]; in addr_stop_show()
1115 struct etmv4_config *config = &drvdata->config; in addr_stop_store() local
1121 idx = config->addr_idx; in addr_stop_store()
1126 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_store()
1127 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_store()
1132 config->addr_val[idx] = (u64)val; in addr_stop_store()
1133 config->addr_type[idx] = ETM_ADDR_TYPE_STOP; in addr_stop_store()
1134 config->vissctlr |= BIT(idx + 16); in addr_stop_store()
1147 struct etmv4_config *config = &drvdata->config; in addr_ctxtype_show() local
1150 idx = config->addr_idx; in addr_ctxtype_show()
1152 val = FIELD_GET(TRCACATRn_CONTEXTTYPE_MASK, config->addr_acc[idx]); in addr_ctxtype_show()
1167 struct etmv4_config *config = &drvdata->config; in addr_ctxtype_store() local
1175 idx = config->addr_idx; in addr_ctxtype_store()
1178 config->addr_acc[idx] &= ~TRCACATRn_CONTEXTTYPE_MASK; in addr_ctxtype_store()
1182 config->addr_acc[idx] |= TRCACATRn_CONTEXTTYPE_CTXID; in addr_ctxtype_store()
1183 config->addr_acc[idx] &= ~TRCACATRn_CONTEXTTYPE_VMID; in addr_ctxtype_store()
1188 config->addr_acc[idx] &= ~TRCACATRn_CONTEXTTYPE_CTXID; in addr_ctxtype_store()
1189 config->addr_acc[idx] |= TRCACATRn_CONTEXTTYPE_VMID; in addr_ctxtype_store()
1197 config->addr_acc[idx] |= TRCACATRn_CONTEXTTYPE_CTXID; in addr_ctxtype_store()
1199 config->addr_acc[idx] |= TRCACATRn_CONTEXTTYPE_VMID; in addr_ctxtype_store()
1213 struct etmv4_config *config = &drvdata->config; in addr_context_show() local
1216 idx = config->addr_idx; in addr_context_show()
1218 val = FIELD_GET(TRCACATRn_CONTEXT_MASK, config->addr_acc[idx]); in addr_context_show()
1230 struct etmv4_config *config = &drvdata->config; in addr_context_store() local
1241 idx = config->addr_idx; in addr_context_store()
1243 config->addr_acc[idx] &= ~TRCACATRn_CONTEXT_MASK; in addr_context_store()
1244 config->addr_acc[idx] |= val << __bf_shf(TRCACATRn_CONTEXT_MASK); in addr_context_store()
1257 struct etmv4_config *config = &drvdata->config; in addr_exlevel_s_ns_show() local
1260 idx = config->addr_idx; in addr_exlevel_s_ns_show()
1261 val = FIELD_GET(TRCACATRn_EXLEVEL_MASK, config->addr_acc[idx]); in addr_exlevel_s_ns_show()
1273 struct etmv4_config *config = &drvdata->config; in addr_exlevel_s_ns_store() local
1282 idx = config->addr_idx; in addr_exlevel_s_ns_store()
1284 config->addr_acc[idx] &= ~TRCACATRn_EXLEVEL_MASK; in addr_exlevel_s_ns_store()
1285 config->addr_acc[idx] |= val << __bf_shf(TRCACATRn_EXLEVEL_MASK); in addr_exlevel_s_ns_store()
1305 struct etmv4_config *config = &drvdata->config; in addr_cmp_view_show() local
1310 idx = config->addr_idx; in addr_cmp_view_show()
1311 addr_v = config->addr_val[idx]; in addr_cmp_view_show()
1312 addr_ctrl = config->addr_acc[idx]; in addr_cmp_view_show()
1313 addr_type = config->addr_type[idx]; in addr_cmp_view_show()
1318 addr_v = config->addr_val[idx]; in addr_cmp_view_show()
1320 addr_v2 = config->addr_val[idx + 1]; in addr_cmp_view_show()
1322 exclude = config->viiectlr & BIT(idx / 2 + 16); in addr_cmp_view_show()
1348 struct etmv4_config *config = &drvdata->config; in vinst_pe_cmp_start_stop_show() local
1352 val = config->vipcssctlr; in vinst_pe_cmp_start_stop_show()
1361 struct etmv4_config *config = &drvdata->config; in vinst_pe_cmp_start_stop_store() local
1369 config->vipcssctlr = val; in vinst_pe_cmp_start_stop_store()
1381 struct etmv4_config *config = &drvdata->config; in seq_idx_show() local
1383 val = config->seq_idx; in seq_idx_show()
1393 struct etmv4_config *config = &drvdata->config; in seq_idx_store() local
1405 config->seq_idx = val; in seq_idx_store()
1417 struct etmv4_config *config = &drvdata->config; in seq_state_show() local
1419 val = config->seq_state; in seq_state_show()
1429 struct etmv4_config *config = &drvdata->config; in seq_state_store() local
1436 config->seq_state = val; in seq_state_store()
1448 struct etmv4_config *config = &drvdata->config; in seq_event_show() local
1451 idx = config->seq_idx; in seq_event_show()
1452 val = config->seq_ctrl[idx]; in seq_event_show()
1464 struct etmv4_config *config = &drvdata->config; in seq_event_store() local
1470 idx = config->seq_idx; in seq_event_store()
1472 config->seq_ctrl[idx] = val & 0xFFFF; in seq_event_store()
1484 struct etmv4_config *config = &drvdata->config; in seq_reset_event_show() local
1486 val = config->seq_rst; in seq_reset_event_show()
1496 struct etmv4_config *config = &drvdata->config; in seq_reset_event_store() local
1503 config->seq_rst = val & ETMv4_EVENT_MASK; in seq_reset_event_store()
1514 struct etmv4_config *config = &drvdata->config; in cntr_idx_show() local
1516 val = config->cntr_idx; in cntr_idx_show()
1526 struct etmv4_config *config = &drvdata->config; in cntr_idx_store() local
1538 config->cntr_idx = val; in cntr_idx_store()
1551 struct etmv4_config *config = &drvdata->config; in cntrldvr_show() local
1554 idx = config->cntr_idx; in cntrldvr_show()
1555 val = config->cntrldvr[idx]; in cntrldvr_show()
1567 struct etmv4_config *config = &drvdata->config; in cntrldvr_store() local
1575 idx = config->cntr_idx; in cntrldvr_store()
1576 config->cntrldvr[idx] = val; in cntrldvr_store()
1589 struct etmv4_config *config = &drvdata->config; in cntr_val_show() local
1592 idx = config->cntr_idx; in cntr_val_show()
1593 val = config->cntr_val[idx]; in cntr_val_show()
1605 struct etmv4_config *config = &drvdata->config; in cntr_val_store() local
1613 idx = config->cntr_idx; in cntr_val_store()
1614 config->cntr_val[idx] = val; in cntr_val_store()
1627 struct etmv4_config *config = &drvdata->config; in cntr_ctrl_show() local
1630 idx = config->cntr_idx; in cntr_ctrl_show()
1631 val = config->cntr_ctrl[idx]; in cntr_ctrl_show()
1643 struct etmv4_config *config = &drvdata->config; in cntr_ctrl_store() local
1649 idx = config->cntr_idx; in cntr_ctrl_store()
1650 config->cntr_ctrl[idx] = val; in cntr_ctrl_store()
1662 struct etmv4_config *config = &drvdata->config; in res_idx_show() local
1664 val = config->res_idx; in res_idx_show()
1674 struct etmv4_config *config = &drvdata->config; in res_idx_store() local
1690 config->res_idx = val; in res_idx_store()
1703 struct etmv4_config *config = &drvdata->config; in res_ctrl_show() local
1706 idx = config->res_idx; in res_ctrl_show()
1707 val = config->res_ctrl[idx]; in res_ctrl_show()
1719 struct etmv4_config *config = &drvdata->config; in res_ctrl_store() local
1725 idx = config->res_idx; in res_ctrl_store()
1730 config->res_ctrl[idx] = val & (TRCRSCTLRn_PAIRINV | in res_ctrl_store()
1744 struct etmv4_config *config = &drvdata->config; in sshot_idx_show() local
1746 val = config->ss_idx; in sshot_idx_show()
1756 struct etmv4_config *config = &drvdata->config; in sshot_idx_store() local
1764 config->ss_idx = val; in sshot_idx_store()
1776 struct etmv4_config *config = &drvdata->config; in sshot_ctrl_show() local
1779 val = config->ss_ctrl[config->ss_idx]; in sshot_ctrl_show()
1791 struct etmv4_config *config = &drvdata->config; in sshot_ctrl_store() local
1797 idx = config->ss_idx; in sshot_ctrl_store()
1798 config->ss_ctrl[idx] = FIELD_PREP(TRCSSCCRn_SAC_ARC_RST_MASK, val); in sshot_ctrl_store()
1800 config->ss_status[idx] &= ~TRCSSCSRn_STATUS; in sshot_ctrl_store()
1811 struct etmv4_config *config = &drvdata->config; in sshot_status_show() local
1814 val = config->ss_status[config->ss_idx]; in sshot_status_show()
1826 struct etmv4_config *config = &drvdata->config; in sshot_pe_ctrl_show() local
1829 val = config->ss_pe_cmp[config->ss_idx]; in sshot_pe_ctrl_show()
1841 struct etmv4_config *config = &drvdata->config; in sshot_pe_ctrl_store() local
1847 idx = config->ss_idx; in sshot_pe_ctrl_store()
1848 config->ss_pe_cmp[idx] = FIELD_PREP(TRCSSPCICRn_PC_MASK, val); in sshot_pe_ctrl_store()
1850 config->ss_status[idx] &= ~TRCSSCSRn_STATUS; in sshot_pe_ctrl_store()
1862 struct etmv4_config *config = &drvdata->config; in ctxid_idx_show() local
1864 val = config->ctxid_idx; in ctxid_idx_show()
1874 struct etmv4_config *config = &drvdata->config; in ctxid_idx_store() local
1886 config->ctxid_idx = val; in ctxid_idx_store()
1899 struct etmv4_config *config = &drvdata->config; in ctxid_pid_show() local
1909 idx = config->ctxid_idx; in ctxid_pid_show()
1910 val = (unsigned long)config->ctxid_pid[idx]; in ctxid_pid_show()
1922 struct etmv4_config *config = &drvdata->config; in ctxid_pid_store() local
1947 idx = config->ctxid_idx; in ctxid_pid_store()
1948 config->ctxid_pid[idx] = (u64)pid; in ctxid_pid_store()
1960 struct etmv4_config *config = &drvdata->config; in ctxid_masks_show() local
1970 val1 = config->ctxid_mask0; in ctxid_masks_show()
1971 val2 = config->ctxid_mask1; in ctxid_masks_show()
1983 struct etmv4_config *config = &drvdata->config; in ctxid_masks_store() local
2013 config->ctxid_mask0 = val1 & 0xFF; in ctxid_masks_store()
2017 config->ctxid_mask0 = val1 & 0xFFFF; in ctxid_masks_store()
2021 config->ctxid_mask0 = val1 & 0xFFFFFF; in ctxid_masks_store()
2025 config->ctxid_mask0 = val1; in ctxid_masks_store()
2029 config->ctxid_mask0 = val1; in ctxid_masks_store()
2030 config->ctxid_mask1 = val2 & 0xFF; in ctxid_masks_store()
2034 config->ctxid_mask0 = val1; in ctxid_masks_store()
2035 config->ctxid_mask1 = val2 & 0xFFFF; in ctxid_masks_store()
2039 config->ctxid_mask0 = val1; in ctxid_masks_store()
2040 config->ctxid_mask1 = val2 & 0xFFFFFF; in ctxid_masks_store()
2044 config->ctxid_mask0 = val1; in ctxid_masks_store()
2045 config->ctxid_mask1 = val2; in ctxid_masks_store()
2056 mask = config->ctxid_mask0; in ctxid_masks_store()
2066 config->ctxid_pid[i] &= ~(0xFFUL << (j * 8)); in ctxid_masks_store()
2072 mask = config->ctxid_mask1; in ctxid_masks_store()
2088 struct etmv4_config *config = &drvdata->config; in vmid_idx_show() local
2090 val = config->vmid_idx; in vmid_idx_show()
2100 struct etmv4_config *config = &drvdata->config; in vmid_idx_store() local
2112 config->vmid_idx = val; in vmid_idx_store()
2124 struct etmv4_config *config = &drvdata->config; in vmid_val_show() local
2134 val = (unsigned long)config->vmid_val[config->vmid_idx]; in vmid_val_show()
2145 struct etmv4_config *config = &drvdata->config; in vmid_val_store() local
2164 config->vmid_val[config->vmid_idx] = (u64)val; in vmid_val_store()
2175 struct etmv4_config *config = &drvdata->config; in vmid_masks_show() local
2185 val1 = config->vmid_mask0; in vmid_masks_show()
2186 val2 = config->vmid_mask1; in vmid_masks_show()
2198 struct etmv4_config *config = &drvdata->config; in vmid_masks_store() local
2228 config->vmid_mask0 = val1 & 0xFF; in vmid_masks_store()
2232 config->vmid_mask0 = val1 & 0xFFFF; in vmid_masks_store()
2236 config->vmid_mask0 = val1 & 0xFFFFFF; in vmid_masks_store()
2240 config->vmid_mask0 = val1; in vmid_masks_store()
2244 config->vmid_mask0 = val1; in vmid_masks_store()
2245 config->vmid_mask1 = val2 & 0xFF; in vmid_masks_store()
2249 config->vmid_mask0 = val1; in vmid_masks_store()
2250 config->vmid_mask1 = val2 & 0xFFFF; in vmid_masks_store()
2254 config->vmid_mask0 = val1; in vmid_masks_store()
2255 config->vmid_mask1 = val2 & 0xFFFFFF; in vmid_masks_store()
2259 config->vmid_mask0 = val1; in vmid_masks_store()
2260 config->vmid_mask1 = val2; in vmid_masks_store()
2272 mask = config->vmid_mask0; in vmid_masks_store()
2282 config->vmid_val[i] &= ~(0xFFUL << (j * 8)); in vmid_masks_store()
2288 mask = config->vmid_mask1; in vmid_masks_store()