Lines Matching refs: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()
286 struct etmv4_config *config = &drvdata->config; in mode_show() local
288 val = config->mode; in mode_show()
298 struct etmv4_config *config = &drvdata->config; in mode_store() local
304 config->mode = val & ETMv4_MODE_ALL; in mode_store()
308 config->cfg &= ~TRCCONFIGR_INSTP0_LOAD_STORE; in mode_store()
309 if (config->mode & ETM_MODE_LOAD) in mode_store()
311 config->cfg |= TRCCONFIGR_INSTP0_LOAD; in mode_store()
312 if (config->mode & ETM_MODE_STORE) in mode_store()
314 config->cfg |= TRCCONFIGR_INSTP0_STORE; in mode_store()
315 if (config->mode & ETM_MODE_LOAD_STORE) in mode_store()
320 config->cfg |= TRCCONFIGR_INSTP0_LOAD_STORE; in mode_store()
324 if ((config->mode & ETM_MODE_BB) && (drvdata->trcbb == true)) in mode_store()
325 config->cfg |= TRCCONFIGR_BB; in mode_store()
327 config->cfg &= ~TRCCONFIGR_BB; in mode_store()
330 if ((config->mode & ETMv4_MODE_CYCACC) && in mode_store()
332 config->cfg |= TRCCONFIGR_CCI; in mode_store()
334 config->cfg &= ~TRCCONFIGR_CCI; in mode_store()
337 if ((config->mode & ETMv4_MODE_CTXID) && (drvdata->ctxid_size)) in mode_store()
338 config->cfg |= TRCCONFIGR_CID; in mode_store()
340 config->cfg &= ~TRCCONFIGR_CID; in mode_store()
342 if ((config->mode & ETM_MODE_VMID) && (drvdata->vmid_size)) in mode_store()
343 config->cfg |= TRCCONFIGR_VMID; in mode_store()
345 config->cfg &= ~TRCCONFIGR_VMID; in mode_store()
348 mode = ETM_MODE_COND(config->mode); in mode_store()
350 config->cfg &= ~TRCCONFIGR_COND_MASK; in mode_store()
351 config->cfg |= mode << __bf_shf(TRCCONFIGR_COND_MASK); in mode_store()
355 if ((config->mode & ETMv4_MODE_TIMESTAMP) && (drvdata->ts_size)) in mode_store()
356 config->cfg |= TRCCONFIGR_TS; in mode_store()
358 config->cfg &= ~TRCCONFIGR_TS; in mode_store()
361 if ((config->mode & ETM_MODE_RETURNSTACK) && in mode_store()
363 config->cfg |= TRCCONFIGR_RS; in mode_store()
365 config->cfg &= ~TRCCONFIGR_RS; in mode_store()
368 mode = ETM_MODE_QELEM(config->mode); in mode_store()
370 config->cfg &= ~(TRCCONFIGR_QE_W_COUNTS | TRCCONFIGR_QE_WO_COUNTS); in mode_store()
377 config->cfg |= TRCCONFIGR_QE_W_COUNTS; in mode_store()
383 config->cfg |= TRCCONFIGR_QE_WO_COUNTS; in mode_store()
386 if ((config->mode & ETM_MODE_ATB_TRIGGER) && in mode_store()
388 config->eventctrl1 |= TRCEVENTCTL1R_ATB; in mode_store()
390 config->eventctrl1 &= ~TRCEVENTCTL1R_ATB; in mode_store()
393 if ((config->mode & ETM_MODE_LPOVERRIDE) && in mode_store()
395 config->eventctrl1 |= TRCEVENTCTL1R_LPOVERRIDE; in mode_store()
397 config->eventctrl1 &= ~TRCEVENTCTL1R_LPOVERRIDE; in mode_store()
400 if ((config->mode & ETM_MODE_ISTALL_EN) && (drvdata->stallctl == true)) in mode_store()
401 config->stall_ctrl |= TRCSTALLCTLR_ISTALL; in mode_store()
403 config->stall_ctrl &= ~TRCSTALLCTLR_ISTALL; in mode_store()
406 if (config->mode & ETM_MODE_INSTPRIO) in mode_store()
407 config->stall_ctrl |= TRCSTALLCTLR_INSTPRIORITY; in mode_store()
409 config->stall_ctrl &= ~TRCSTALLCTLR_INSTPRIORITY; in mode_store()
412 if ((config->mode & ETM_MODE_NOOVERFLOW) && in mode_store()
414 config->stall_ctrl |= TRCSTALLCTLR_NOOVERFLOW; in mode_store()
416 config->stall_ctrl &= ~TRCSTALLCTLR_NOOVERFLOW; in mode_store()
419 if (config->mode & ETM_MODE_VIEWINST_STARTSTOP) in mode_store()
420 config->vinst_ctrl |= TRCVICTLR_SSSTATUS; in mode_store()
422 config->vinst_ctrl &= ~TRCVICTLR_SSSTATUS; in mode_store()
425 if (config->mode & ETM_MODE_TRACE_RESET) in mode_store()
426 config->vinst_ctrl |= TRCVICTLR_TRCRESET; in mode_store()
428 config->vinst_ctrl &= ~TRCVICTLR_TRCRESET; in mode_store()
431 if ((config->mode & ETM_MODE_TRACE_ERR) && in mode_store()
433 config->vinst_ctrl |= TRCVICTLR_TRCERR; in mode_store()
435 config->vinst_ctrl &= ~TRCVICTLR_TRCERR; in mode_store()
437 if (config->mode & (ETM_MODE_EXCL_KERN | ETM_MODE_EXCL_USER)) in mode_store()
438 etm4_config_trace_mode(config); in mode_store()
452 struct etmv4_config *config = &drvdata->config; in pe_show() local
454 val = config->pe_sel; in pe_show()
464 struct etmv4_config *config = &drvdata->config; in pe_store() local
475 config->pe_sel = val; in pe_store()
487 struct etmv4_config *config = &drvdata->config; in event_show() local
489 val = config->eventctrl0; in event_show()
499 struct etmv4_config *config = &drvdata->config; in event_store() local
508 config->eventctrl0 = val & 0xFF; in event_store()
512 config->eventctrl0 = val & 0xFFFF; in event_store()
516 config->eventctrl0 = val & 0xFFFFFF; in event_store()
520 config->eventctrl0 = val; in event_store()
536 struct etmv4_config *config = &drvdata->config; in event_instren_show() local
538 val = FIELD_GET(TRCEVENTCTL1R_INSTEN_MASK, config->eventctrl1); in event_instren_show()
548 struct etmv4_config *config = &drvdata->config; in event_instren_store() local
555 config->eventctrl1 &= ~TRCEVENTCTL1R_INSTEN_MASK; in event_instren_store()
559 config->eventctrl1 |= val & TRCEVENTCTL1R_INSTEN_1; in event_instren_store()
563 config->eventctrl1 |= val & (TRCEVENTCTL1R_INSTEN_0 | TRCEVENTCTL1R_INSTEN_1); in event_instren_store()
567 config->eventctrl1 |= val & (TRCEVENTCTL1R_INSTEN_0 | in event_instren_store()
573 config->eventctrl1 |= val & (TRCEVENTCTL1R_INSTEN_0 | in event_instren_store()
592 struct etmv4_config *config = &drvdata->config; in event_ts_show() local
594 val = config->ts_ctrl; in event_ts_show()
604 struct etmv4_config *config = &drvdata->config; in event_ts_store() local
611 config->ts_ctrl = val & ETMv4_EVENT_MASK; in event_ts_store()
622 struct etmv4_config *config = &drvdata->config; in syncfreq_show() local
624 val = config->syncfreq; in syncfreq_show()
634 struct etmv4_config *config = &drvdata->config; in syncfreq_store() local
641 config->syncfreq = val & ETMv4_SYNC_MASK; in syncfreq_store()
652 struct etmv4_config *config = &drvdata->config; in cyc_threshold_show() local
654 val = config->ccctlr; in cyc_threshold_show()
664 struct etmv4_config *config = &drvdata->config; in cyc_threshold_store() local
674 config->ccctlr = val; in cyc_threshold_store()
685 struct etmv4_config *config = &drvdata->config; in bb_ctrl_show() local
687 val = config->bb_ctrl; in bb_ctrl_show()
697 struct etmv4_config *config = &drvdata->config; in bb_ctrl_store() local
714 config->bb_ctrl = val & (TRCBBCTLR_MODE | TRCBBCTLR_RANGE_MASK); in bb_ctrl_store()
725 struct etmv4_config *config = &drvdata->config; in event_vinst_show() local
727 val = FIELD_GET(TRCVICTLR_EVENT_MASK, config->vinst_ctrl); in event_vinst_show()
737 struct etmv4_config *config = &drvdata->config; in event_vinst_store() local
744 config->vinst_ctrl &= ~TRCVICTLR_EVENT_MASK; in event_vinst_store()
745 config->vinst_ctrl |= FIELD_PREP(TRCVICTLR_EVENT_MASK, val); in event_vinst_store()
757 struct etmv4_config *config = &drvdata->config; in s_exlevel_vinst_show() local
759 val = FIELD_GET(TRCVICTLR_EXLEVEL_S_MASK, config->vinst_ctrl); in s_exlevel_vinst_show()
769 struct etmv4_config *config = &drvdata->config; in s_exlevel_vinst_store() local
776 config->vinst_ctrl &= ~TRCVICTLR_EXLEVEL_S_MASK; in s_exlevel_vinst_store()
779 config->vinst_ctrl |= val << __bf_shf(TRCVICTLR_EXLEVEL_S_MASK); in s_exlevel_vinst_store()
791 struct etmv4_config *config = &drvdata->config; in ns_exlevel_vinst_show() local
794 val = FIELD_GET(TRCVICTLR_EXLEVEL_NS_MASK, config->vinst_ctrl); in ns_exlevel_vinst_show()
804 struct etmv4_config *config = &drvdata->config; in ns_exlevel_vinst_store() local
811 config->vinst_ctrl &= ~TRCVICTLR_EXLEVEL_NS_MASK; in ns_exlevel_vinst_store()
814 config->vinst_ctrl |= val << __bf_shf(TRCVICTLR_EXLEVEL_NS_MASK); in ns_exlevel_vinst_store()
826 struct etmv4_config *config = &drvdata->config; in addr_idx_show() local
828 val = config->addr_idx; in addr_idx_show()
838 struct etmv4_config *config = &drvdata->config; in addr_idx_store() local
850 config->addr_idx = val; in addr_idx_store()
863 struct etmv4_config *config = &drvdata->config; in addr_instdatatype_show() local
866 idx = config->addr_idx; in addr_instdatatype_show()
867 val = FIELD_GET(TRCACATRn_TYPE_MASK, config->addr_acc[idx]); in addr_instdatatype_show()
884 struct etmv4_config *config = &drvdata->config; in addr_instdatatype_store() local
892 idx = config->addr_idx; in addr_instdatatype_store()
895 config->addr_acc[idx] &= ~TRCACATRn_TYPE_MASK; in addr_instdatatype_store()
909 struct etmv4_config *config = &drvdata->config; in addr_single_show() local
911 idx = config->addr_idx; in addr_single_show()
913 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_show()
914 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_show()
918 val = (unsigned long)config->addr_val[idx]; in addr_single_show()
930 struct etmv4_config *config = &drvdata->config; in addr_single_store() local
936 idx = config->addr_idx; in addr_single_store()
937 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_store()
938 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_store()
943 config->addr_val[idx] = (u64)val; in addr_single_store()
944 config->addr_type[idx] = ETM_ADDR_TYPE_SINGLE; in addr_single_store()
957 struct etmv4_config *config = &drvdata->config; in addr_range_show() local
960 idx = config->addr_idx; in addr_range_show()
965 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_show()
966 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_show()
967 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_show()
968 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_show()
973 val1 = (unsigned long)config->addr_val[idx]; in addr_range_show()
974 val2 = (unsigned long)config->addr_val[idx + 1]; in addr_range_show()
986 struct etmv4_config *config = &drvdata->config; in addr_range_store() local
999 idx = config->addr_idx; in addr_range_store()
1005 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_store()
1006 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_store()
1007 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_store()
1008 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_store()
1013 config->addr_val[idx] = (u64)val1; in addr_range_store()
1014 config->addr_type[idx] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
1015 config->addr_val[idx + 1] = (u64)val2; in addr_range_store()
1016 config->addr_type[idx + 1] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
1023 exclude = config->mode & ETM_MODE_EXCLUDE; in addr_range_store()
1038 struct etmv4_config *config = &drvdata->config; in addr_start_show() local
1041 idx = config->addr_idx; in addr_start_show()
1043 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_show()
1044 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_show()
1049 val = (unsigned long)config->addr_val[idx]; in addr_start_show()
1061 struct etmv4_config *config = &drvdata->config; in addr_start_store() local
1067 idx = config->addr_idx; in addr_start_store()
1072 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_store()
1073 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_store()
1078 config->addr_val[idx] = (u64)val; in addr_start_store()
1079 config->addr_type[idx] = ETM_ADDR_TYPE_START; in addr_start_store()
1080 config->vissctlr |= BIT(idx); in addr_start_store()
1093 struct etmv4_config *config = &drvdata->config; in addr_stop_show() local
1096 idx = config->addr_idx; in addr_stop_show()
1098 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_show()
1099 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_show()
1104 val = (unsigned long)config->addr_val[idx]; in addr_stop_show()
1116 struct etmv4_config *config = &drvdata->config; in addr_stop_store() local
1122 idx = config->addr_idx; in addr_stop_store()
1127 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_store()
1128 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_store()
1133 config->addr_val[idx] = (u64)val; in addr_stop_store()
1134 config->addr_type[idx] = ETM_ADDR_TYPE_STOP; in addr_stop_store()
1135 config->vissctlr |= BIT(idx + 16); in addr_stop_store()
1148 struct etmv4_config *config = &drvdata->config; in addr_ctxtype_show() local
1151 idx = config->addr_idx; in addr_ctxtype_show()
1153 val = FIELD_GET(TRCACATRn_CONTEXTTYPE_MASK, config->addr_acc[idx]); in addr_ctxtype_show()
1168 struct etmv4_config *config = &drvdata->config; in addr_ctxtype_store() local
1176 idx = config->addr_idx; in addr_ctxtype_store()
1179 config->addr_acc[idx] &= ~TRCACATRn_CONTEXTTYPE_MASK; in addr_ctxtype_store()
1183 config->addr_acc[idx] |= TRCACATRn_CONTEXTTYPE_CTXID; in addr_ctxtype_store()
1184 config->addr_acc[idx] &= ~TRCACATRn_CONTEXTTYPE_VMID; in addr_ctxtype_store()
1189 config->addr_acc[idx] &= ~TRCACATRn_CONTEXTTYPE_CTXID; in addr_ctxtype_store()
1190 config->addr_acc[idx] |= TRCACATRn_CONTEXTTYPE_VMID; in addr_ctxtype_store()
1198 config->addr_acc[idx] |= TRCACATRn_CONTEXTTYPE_CTXID; in addr_ctxtype_store()
1200 config->addr_acc[idx] |= TRCACATRn_CONTEXTTYPE_VMID; in addr_ctxtype_store()
1214 struct etmv4_config *config = &drvdata->config; in addr_context_show() local
1217 idx = config->addr_idx; in addr_context_show()
1219 val = FIELD_GET(TRCACATRn_CONTEXT_MASK, config->addr_acc[idx]); in addr_context_show()
1231 struct etmv4_config *config = &drvdata->config; in addr_context_store() local
1242 idx = config->addr_idx; in addr_context_store()
1244 config->addr_acc[idx] &= ~TRCACATRn_CONTEXT_MASK; in addr_context_store()
1245 config->addr_acc[idx] |= val << __bf_shf(TRCACATRn_CONTEXT_MASK); in addr_context_store()
1258 struct etmv4_config *config = &drvdata->config; in addr_exlevel_s_ns_show() local
1261 idx = config->addr_idx; in addr_exlevel_s_ns_show()
1262 val = FIELD_GET(TRCACATRn_EXLEVEL_MASK, config->addr_acc[idx]); in addr_exlevel_s_ns_show()
1274 struct etmv4_config *config = &drvdata->config; in addr_exlevel_s_ns_store() local
1283 idx = config->addr_idx; in addr_exlevel_s_ns_store()
1285 config->addr_acc[idx] &= ~TRCACATRn_EXLEVEL_MASK; in addr_exlevel_s_ns_store()
1286 config->addr_acc[idx] |= val << __bf_shf(TRCACATRn_EXLEVEL_MASK); in addr_exlevel_s_ns_store()
1306 struct etmv4_config *config = &drvdata->config; in addr_cmp_view_show() local
1311 idx = config->addr_idx; in addr_cmp_view_show()
1312 addr_v = config->addr_val[idx]; in addr_cmp_view_show()
1313 addr_ctrl = config->addr_acc[idx]; in addr_cmp_view_show()
1314 addr_type = config->addr_type[idx]; in addr_cmp_view_show()
1319 addr_v = config->addr_val[idx]; in addr_cmp_view_show()
1321 addr_v2 = config->addr_val[idx + 1]; in addr_cmp_view_show()
1323 exclude = config->viiectlr & BIT(idx / 2 + 16); in addr_cmp_view_show()
1349 struct etmv4_config *config = &drvdata->config; in vinst_pe_cmp_start_stop_show() local
1353 val = config->vipcssctlr; in vinst_pe_cmp_start_stop_show()
1362 struct etmv4_config *config = &drvdata->config; in vinst_pe_cmp_start_stop_store() local
1370 config->vipcssctlr = val; in vinst_pe_cmp_start_stop_store()
1382 struct etmv4_config *config = &drvdata->config; in seq_idx_show() local
1384 val = config->seq_idx; in seq_idx_show()
1394 struct etmv4_config *config = &drvdata->config; in seq_idx_store() local
1406 config->seq_idx = val; in seq_idx_store()
1418 struct etmv4_config *config = &drvdata->config; in seq_state_show() local
1420 val = config->seq_state; in seq_state_show()
1430 struct etmv4_config *config = &drvdata->config; in seq_state_store() local
1437 config->seq_state = val; in seq_state_store()
1449 struct etmv4_config *config = &drvdata->config; in seq_event_show() local
1452 idx = config->seq_idx; in seq_event_show()
1453 val = config->seq_ctrl[idx]; in seq_event_show()
1465 struct etmv4_config *config = &drvdata->config; in seq_event_store() local
1471 idx = config->seq_idx; in seq_event_store()
1473 config->seq_ctrl[idx] = val & 0xFFFF; in seq_event_store()
1485 struct etmv4_config *config = &drvdata->config; in seq_reset_event_show() local
1487 val = config->seq_rst; in seq_reset_event_show()
1497 struct etmv4_config *config = &drvdata->config; in seq_reset_event_store() local
1504 config->seq_rst = val & ETMv4_EVENT_MASK; in seq_reset_event_store()
1515 struct etmv4_config *config = &drvdata->config; in cntr_idx_show() local
1517 val = config->cntr_idx; in cntr_idx_show()
1527 struct etmv4_config *config = &drvdata->config; in cntr_idx_store() local
1539 config->cntr_idx = val; in cntr_idx_store()
1552 struct etmv4_config *config = &drvdata->config; in cntrldvr_show() local
1555 idx = config->cntr_idx; in cntrldvr_show()
1556 val = config->cntrldvr[idx]; in cntrldvr_show()
1568 struct etmv4_config *config = &drvdata->config; in cntrldvr_store() local
1576 idx = config->cntr_idx; in cntrldvr_store()
1577 config->cntrldvr[idx] = val; in cntrldvr_store()
1590 struct etmv4_config *config = &drvdata->config; in cntr_val_show() local
1593 idx = config->cntr_idx; in cntr_val_show()
1594 val = config->cntr_val[idx]; in cntr_val_show()
1606 struct etmv4_config *config = &drvdata->config; in cntr_val_store() local
1614 idx = config->cntr_idx; in cntr_val_store()
1615 config->cntr_val[idx] = val; in cntr_val_store()
1628 struct etmv4_config *config = &drvdata->config; in cntr_ctrl_show() local
1631 idx = config->cntr_idx; in cntr_ctrl_show()
1632 val = config->cntr_ctrl[idx]; in cntr_ctrl_show()
1644 struct etmv4_config *config = &drvdata->config; in cntr_ctrl_store() local
1650 idx = config->cntr_idx; in cntr_ctrl_store()
1651 config->cntr_ctrl[idx] = val; in cntr_ctrl_store()
1663 struct etmv4_config *config = &drvdata->config; in res_idx_show() local
1665 val = config->res_idx; in res_idx_show()
1675 struct etmv4_config *config = &drvdata->config; in res_idx_store() local
1691 config->res_idx = val; in res_idx_store()
1704 struct etmv4_config *config = &drvdata->config; in res_ctrl_show() local
1707 idx = config->res_idx; in res_ctrl_show()
1708 val = config->res_ctrl[idx]; in res_ctrl_show()
1720 struct etmv4_config *config = &drvdata->config; in res_ctrl_store() local
1726 idx = config->res_idx; in res_ctrl_store()
1731 config->res_ctrl[idx] = val & (TRCRSCTLRn_PAIRINV | in res_ctrl_store()
1745 struct etmv4_config *config = &drvdata->config; in sshot_idx_show() local
1747 val = config->ss_idx; in sshot_idx_show()
1757 struct etmv4_config *config = &drvdata->config; in sshot_idx_store() local
1765 config->ss_idx = val; in sshot_idx_store()
1777 struct etmv4_config *config = &drvdata->config; in sshot_ctrl_show() local
1780 val = config->ss_ctrl[config->ss_idx]; in sshot_ctrl_show()
1792 struct etmv4_config *config = &drvdata->config; in sshot_ctrl_store() local
1798 idx = config->ss_idx; in sshot_ctrl_store()
1799 config->ss_ctrl[idx] = FIELD_PREP(TRCSSCCRn_SAC_ARC_RST_MASK, val); in sshot_ctrl_store()
1801 config->ss_status[idx] &= ~TRCSSCSRn_STATUS; in sshot_ctrl_store()
1812 struct etmv4_config *config = &drvdata->config; in sshot_status_show() local
1815 val = config->ss_status[config->ss_idx]; in sshot_status_show()
1827 struct etmv4_config *config = &drvdata->config; in sshot_pe_ctrl_show() local
1830 val = config->ss_pe_cmp[config->ss_idx]; in sshot_pe_ctrl_show()
1842 struct etmv4_config *config = &drvdata->config; in sshot_pe_ctrl_store() local
1848 idx = config->ss_idx; in sshot_pe_ctrl_store()
1849 config->ss_pe_cmp[idx] = FIELD_PREP(TRCSSPCICRn_PC_MASK, val); in sshot_pe_ctrl_store()
1851 config->ss_status[idx] &= ~TRCSSCSRn_STATUS; in sshot_pe_ctrl_store()
1863 struct etmv4_config *config = &drvdata->config; in ctxid_idx_show() local
1865 val = config->ctxid_idx; in ctxid_idx_show()
1875 struct etmv4_config *config = &drvdata->config; in ctxid_idx_store() local
1887 config->ctxid_idx = val; in ctxid_idx_store()
1900 struct etmv4_config *config = &drvdata->config; in ctxid_pid_show() local
1910 idx = config->ctxid_idx; in ctxid_pid_show()
1911 val = (unsigned long)config->ctxid_pid[idx]; in ctxid_pid_show()
1923 struct etmv4_config *config = &drvdata->config; in ctxid_pid_store() local
1948 idx = config->ctxid_idx; in ctxid_pid_store()
1949 config->ctxid_pid[idx] = (u64)pid; in ctxid_pid_store()
1961 struct etmv4_config *config = &drvdata->config; in ctxid_masks_show() local
1971 val1 = config->ctxid_mask0; in ctxid_masks_show()
1972 val2 = config->ctxid_mask1; in ctxid_masks_show()
1984 struct etmv4_config *config = &drvdata->config; in ctxid_masks_store() local
2014 config->ctxid_mask0 = val1 & 0xFF; in ctxid_masks_store()
2018 config->ctxid_mask0 = val1 & 0xFFFF; in ctxid_masks_store()
2022 config->ctxid_mask0 = val1 & 0xFFFFFF; in ctxid_masks_store()
2026 config->ctxid_mask0 = val1; in ctxid_masks_store()
2030 config->ctxid_mask0 = val1; in ctxid_masks_store()
2031 config->ctxid_mask1 = val2 & 0xFF; in ctxid_masks_store()
2035 config->ctxid_mask0 = val1; in ctxid_masks_store()
2036 config->ctxid_mask1 = val2 & 0xFFFF; in ctxid_masks_store()
2040 config->ctxid_mask0 = val1; in ctxid_masks_store()
2041 config->ctxid_mask1 = val2 & 0xFFFFFF; in ctxid_masks_store()
2045 config->ctxid_mask0 = val1; in ctxid_masks_store()
2046 config->ctxid_mask1 = val2; in ctxid_masks_store()
2057 mask = config->ctxid_mask0; in ctxid_masks_store()
2067 config->ctxid_pid[i] &= ~(0xFFUL << (j * 8)); in ctxid_masks_store()
2073 mask = config->ctxid_mask1; in ctxid_masks_store()
2089 struct etmv4_config *config = &drvdata->config; in vmid_idx_show() local
2091 val = config->vmid_idx; in vmid_idx_show()
2101 struct etmv4_config *config = &drvdata->config; in vmid_idx_store() local
2113 config->vmid_idx = val; in vmid_idx_store()
2125 struct etmv4_config *config = &drvdata->config; in vmid_val_show() local
2135 val = (unsigned long)config->vmid_val[config->vmid_idx]; in vmid_val_show()
2146 struct etmv4_config *config = &drvdata->config; in vmid_val_store() local
2165 config->vmid_val[config->vmid_idx] = (u64)val; in vmid_val_store()
2176 struct etmv4_config *config = &drvdata->config; in vmid_masks_show() local
2186 val1 = config->vmid_mask0; in vmid_masks_show()
2187 val2 = config->vmid_mask1; in vmid_masks_show()
2199 struct etmv4_config *config = &drvdata->config; in vmid_masks_store() local
2229 config->vmid_mask0 = val1 & 0xFF; in vmid_masks_store()
2233 config->vmid_mask0 = val1 & 0xFFFF; in vmid_masks_store()
2237 config->vmid_mask0 = val1 & 0xFFFFFF; in vmid_masks_store()
2241 config->vmid_mask0 = val1; in vmid_masks_store()
2245 config->vmid_mask0 = val1; in vmid_masks_store()
2246 config->vmid_mask1 = val2 & 0xFF; in vmid_masks_store()
2250 config->vmid_mask0 = val1; in vmid_masks_store()
2251 config->vmid_mask1 = val2 & 0xFFFF; in vmid_masks_store()
2255 config->vmid_mask0 = val1; in vmid_masks_store()
2256 config->vmid_mask1 = val2 & 0xFFFFFF; in vmid_masks_store()
2260 config->vmid_mask0 = val1; in vmid_masks_store()
2261 config->vmid_mask1 = val2; in vmid_masks_store()
2273 mask = config->vmid_mask0; in vmid_masks_store()
2283 config->vmid_val[i] &= ~(0xFFUL << (j * 8)); in vmid_masks_store()
2289 mask = config->vmid_mask1; in vmid_masks_store()