Lines Matching full:config
18 struct etmv4_config *config = &drvdata->config; in etm4_set_mode_exclude() local
20 idx = config->addr_idx; in etm4_set_mode_exclude()
26 if (FIELD_GET(TRCACATRn_TYPE_MASK, config->addr_acc[idx]) == TRCACATRn_TYPE_ADDR) { in etm4_set_mode_exclude()
35 if (config->addr_type[idx] != ETM_ADDR_TYPE_RANGE || in etm4_set_mode_exclude()
36 config->addr_type[idx + 1] != ETM_ADDR_TYPE_RANGE) in etm4_set_mode_exclude()
44 config->viiectlr |= BIT(idx / 2 + 16); in etm4_set_mode_exclude()
45 config->viiectlr &= ~BIT(idx / 2); in etm4_set_mode_exclude()
51 config->viiectlr |= BIT(idx / 2); in etm4_set_mode_exclude()
52 config->viiectlr &= ~BIT(idx / 2 + 16); in etm4_set_mode_exclude()
173 struct etmv4_config *config = &drvdata->config; in reset_store() local
180 config->mode = 0x0; in reset_store()
183 config->mode &= ~(ETM_MODE_LOAD | ETM_MODE_STORE); in reset_store()
184 config->cfg &= ~(TRCCONFIGR_INSTP0_LOAD | TRCCONFIGR_INSTP0_STORE); in reset_store()
187 config->mode &= ~(ETM_MODE_DATA_TRACE_ADDR | in reset_store()
189 config->cfg &= ~(TRCCONFIGR_DA | TRCCONFIGR_DV); in reset_store()
192 config->eventctrl0 = 0x0; in reset_store()
193 config->eventctrl1 = 0x0; in reset_store()
196 config->ts_ctrl = 0x0; in reset_store()
199 config->stall_ctrl = 0x0; in reset_store()
203 config->syncfreq = 0x8; in reset_store()
210 config->vinst_ctrl = FIELD_PREP(TRCVICTLR_EVENT_MASK, 0x01); in reset_store()
212 config->mode |= ETM_MODE_VIEWINST_STARTSTOP; in reset_store()
214 config->vinst_ctrl |= TRCVICTLR_SSSTATUS; in reset_store()
218 config->viiectlr = 0x0; in reset_store()
221 config->vissctlr = 0x0; in reset_store()
222 config->vipcssctlr = 0x0; in reset_store()
226 config->seq_ctrl[i] = 0x0; in reset_store()
227 config->seq_rst = 0x0; in reset_store()
228 config->seq_state = 0x0; in reset_store()
231 config->ext_inp = 0x0; in reset_store()
233 config->cntr_idx = 0x0; in reset_store()
235 config->cntrldvr[i] = 0x0; in reset_store()
236 config->cntr_ctrl[i] = 0x0; in reset_store()
237 config->cntr_val[i] = 0x0; in reset_store()
240 config->res_idx = 0x0; in reset_store()
242 config->res_ctrl[i] = 0x0; in reset_store()
244 config->ss_idx = 0x0; in reset_store()
246 config->ss_ctrl[i] = 0x0; in reset_store()
247 config->ss_pe_cmp[i] = 0x0; in reset_store()
250 config->addr_idx = 0x0; in reset_store()
252 config->addr_val[i] = 0x0; in reset_store()
253 config->addr_acc[i] = 0x0; in reset_store()
254 config->addr_type[i] = ETM_ADDR_TYPE_NONE; in reset_store()
257 config->ctxid_idx = 0x0; in reset_store()
259 config->ctxid_pid[i] = 0x0; in reset_store()
261 config->ctxid_mask0 = 0x0; in reset_store()
262 config->ctxid_mask1 = 0x0; in reset_store()
264 config->vmid_idx = 0x0; in reset_store()
266 config->vmid_val[i] = 0x0; in reset_store()
267 config->vmid_mask0 = 0x0; in reset_store()
268 config->vmid_mask1 = 0x0; in reset_store()
287 struct etmv4_config *config = &drvdata->config; in mode_show() local
289 val = config->mode; in mode_show()
299 struct etmv4_config *config = &drvdata->config; in mode_store() local
305 config->mode = val & ETMv4_MODE_ALL; in mode_store()
309 config->cfg &= ~TRCCONFIGR_INSTP0_LOAD_STORE; in mode_store()
310 if (config->mode & ETM_MODE_LOAD) in mode_store()
312 config->cfg |= TRCCONFIGR_INSTP0_LOAD; in mode_store()
313 if (config->mode & ETM_MODE_STORE) in mode_store()
315 config->cfg |= TRCCONFIGR_INSTP0_STORE; in mode_store()
316 if (config->mode & ETM_MODE_LOAD_STORE) in mode_store()
321 config->cfg |= TRCCONFIGR_INSTP0_LOAD_STORE; in mode_store()
325 if ((config->mode & ETM_MODE_BB) && (drvdata->trcbb == true)) in mode_store()
326 config->cfg |= TRCCONFIGR_BB; in mode_store()
328 config->cfg &= ~TRCCONFIGR_BB; in mode_store()
331 if ((config->mode & ETMv4_MODE_CYCACC) && in mode_store()
333 config->cfg |= TRCCONFIGR_CCI; in mode_store()
335 config->cfg &= ~TRCCONFIGR_CCI; in mode_store()
338 if ((config->mode & ETMv4_MODE_CTXID) && (drvdata->ctxid_size)) in mode_store()
339 config->cfg |= TRCCONFIGR_CID; in mode_store()
341 config->cfg &= ~TRCCONFIGR_CID; in mode_store()
343 if ((config->mode & ETM_MODE_VMID) && (drvdata->vmid_size)) in mode_store()
344 config->cfg |= TRCCONFIGR_VMID; in mode_store()
346 config->cfg &= ~TRCCONFIGR_VMID; in mode_store()
349 mode = ETM_MODE_COND(config->mode); in mode_store()
351 config->cfg &= ~TRCCONFIGR_COND_MASK; in mode_store()
352 config->cfg |= mode << __bf_shf(TRCCONFIGR_COND_MASK); in mode_store()
356 if ((config->mode & ETMv4_MODE_TIMESTAMP) && (drvdata->ts_size)) in mode_store()
357 config->cfg |= TRCCONFIGR_TS; in mode_store()
359 config->cfg &= ~TRCCONFIGR_TS; in mode_store()
362 if ((config->mode & ETM_MODE_RETURNSTACK) && in mode_store()
364 config->cfg |= TRCCONFIGR_RS; in mode_store()
366 config->cfg &= ~TRCCONFIGR_RS; in mode_store()
369 mode = ETM_MODE_QELEM(config->mode); in mode_store()
371 config->cfg &= ~(TRCCONFIGR_QE_W_COUNTS | TRCCONFIGR_QE_WO_COUNTS); in mode_store()
378 config->cfg |= TRCCONFIGR_QE_W_COUNTS; in mode_store()
384 config->cfg |= TRCCONFIGR_QE_WO_COUNTS; in mode_store()
387 if ((config->mode & ETM_MODE_ATB_TRIGGER) && in mode_store()
389 config->eventctrl1 |= TRCEVENTCTL1R_ATB; in mode_store()
391 config->eventctrl1 &= ~TRCEVENTCTL1R_ATB; in mode_store()
394 if ((config->mode & ETM_MODE_LPOVERRIDE) && in mode_store()
396 config->eventctrl1 |= TRCEVENTCTL1R_LPOVERRIDE; in mode_store()
398 config->eventctrl1 &= ~TRCEVENTCTL1R_LPOVERRIDE; in mode_store()
401 if ((config->mode & ETM_MODE_ISTALL_EN) && (drvdata->stallctl == true)) in mode_store()
402 config->stall_ctrl |= TRCSTALLCTLR_ISTALL; in mode_store()
404 config->stall_ctrl &= ~TRCSTALLCTLR_ISTALL; in mode_store()
407 if (config->mode & ETM_MODE_INSTPRIO) in mode_store()
408 config->stall_ctrl |= TRCSTALLCTLR_INSTPRIORITY; in mode_store()
410 config->stall_ctrl &= ~TRCSTALLCTLR_INSTPRIORITY; in mode_store()
413 if ((config->mode & ETM_MODE_NOOVERFLOW) && in mode_store()
415 config->stall_ctrl |= TRCSTALLCTLR_NOOVERFLOW; in mode_store()
417 config->stall_ctrl &= ~TRCSTALLCTLR_NOOVERFLOW; in mode_store()
420 if (config->mode & ETM_MODE_VIEWINST_STARTSTOP) in mode_store()
421 config->vinst_ctrl |= TRCVICTLR_SSSTATUS; in mode_store()
423 config->vinst_ctrl &= ~TRCVICTLR_SSSTATUS; in mode_store()
426 if (config->mode & ETM_MODE_TRACE_RESET) in mode_store()
427 config->vinst_ctrl |= TRCVICTLR_TRCRESET; in mode_store()
429 config->vinst_ctrl &= ~TRCVICTLR_TRCRESET; in mode_store()
432 if ((config->mode & ETM_MODE_TRACE_ERR) && in mode_store()
434 config->vinst_ctrl |= TRCVICTLR_TRCERR; in mode_store()
436 config->vinst_ctrl &= ~TRCVICTLR_TRCERR; in mode_store()
438 if (config->mode & (ETM_MODE_EXCL_KERN | ETM_MODE_EXCL_USER)) in mode_store()
439 etm4_config_trace_mode(config); in mode_store()
453 struct etmv4_config *config = &drvdata->config; in pe_show() local
455 val = config->pe_sel; in pe_show()
465 struct etmv4_config *config = &drvdata->config; in pe_store() local
476 config->pe_sel = val; in pe_store()
488 struct etmv4_config *config = &drvdata->config; in event_show() local
490 val = config->eventctrl0; in event_show()
500 struct etmv4_config *config = &drvdata->config; in event_store() local
509 config->eventctrl0 = val & 0xFF; in event_store()
513 config->eventctrl0 = val & 0xFFFF; in event_store()
517 config->eventctrl0 = val & 0xFFFFFF; in event_store()
521 config->eventctrl0 = val; in event_store()
537 struct etmv4_config *config = &drvdata->config; in event_instren_show() local
539 val = FIELD_GET(TRCEVENTCTL1R_INSTEN_MASK, config->eventctrl1); in event_instren_show()
549 struct etmv4_config *config = &drvdata->config; in event_instren_store() local
556 config->eventctrl1 &= ~TRCEVENTCTL1R_INSTEN_MASK; in event_instren_store()
560 config->eventctrl1 |= val & TRCEVENTCTL1R_INSTEN_1; in event_instren_store()
564 config->eventctrl1 |= val & (TRCEVENTCTL1R_INSTEN_0 | TRCEVENTCTL1R_INSTEN_1); in event_instren_store()
568 config->eventctrl1 |= val & (TRCEVENTCTL1R_INSTEN_0 | in event_instren_store()
574 config->eventctrl1 |= val & (TRCEVENTCTL1R_INSTEN_0 | in event_instren_store()
593 struct etmv4_config *config = &drvdata->config; in event_ts_show() local
595 val = config->ts_ctrl; in event_ts_show()
605 struct etmv4_config *config = &drvdata->config; in event_ts_store() local
612 config->ts_ctrl = val & ETMv4_EVENT_MASK; in event_ts_store()
623 struct etmv4_config *config = &drvdata->config; in syncfreq_show() local
625 val = config->syncfreq; in syncfreq_show()
635 struct etmv4_config *config = &drvdata->config; in syncfreq_store() local
642 config->syncfreq = val & ETMv4_SYNC_MASK; in syncfreq_store()
653 struct etmv4_config *config = &drvdata->config; in cyc_threshold_show() local
655 val = config->ccctlr; in cyc_threshold_show()
665 struct etmv4_config *config = &drvdata->config; in cyc_threshold_store() local
675 config->ccctlr = val; in cyc_threshold_store()
686 struct etmv4_config *config = &drvdata->config; in bb_ctrl_show() local
688 val = config->bb_ctrl; in bb_ctrl_show()
698 struct etmv4_config *config = &drvdata->config; in bb_ctrl_store() local
715 config->bb_ctrl = val & (TRCBBCTLR_MODE | TRCBBCTLR_RANGE_MASK); in bb_ctrl_store()
726 struct etmv4_config *config = &drvdata->config; in event_vinst_show() local
728 val = FIELD_GET(TRCVICTLR_EVENT_MASK, config->vinst_ctrl); in event_vinst_show()
738 struct etmv4_config *config = &drvdata->config; in event_vinst_store() local
745 config->vinst_ctrl &= ~TRCVICTLR_EVENT_MASK; in event_vinst_store()
746 config->vinst_ctrl |= FIELD_PREP(TRCVICTLR_EVENT_MASK, val); in event_vinst_store()
758 struct etmv4_config *config = &drvdata->config; in s_exlevel_vinst_show() local
760 val = FIELD_GET(TRCVICTLR_EXLEVEL_S_MASK, config->vinst_ctrl); in s_exlevel_vinst_show()
770 struct etmv4_config *config = &drvdata->config; in s_exlevel_vinst_store() local
777 config->vinst_ctrl &= ~TRCVICTLR_EXLEVEL_S_MASK; in s_exlevel_vinst_store()
780 config->vinst_ctrl |= val << __bf_shf(TRCVICTLR_EXLEVEL_S_MASK); in s_exlevel_vinst_store()
792 struct etmv4_config *config = &drvdata->config; in ns_exlevel_vinst_show() local
795 val = FIELD_GET(TRCVICTLR_EXLEVEL_NS_MASK, config->vinst_ctrl); in ns_exlevel_vinst_show()
805 struct etmv4_config *config = &drvdata->config; in ns_exlevel_vinst_store() local
812 config->vinst_ctrl &= ~TRCVICTLR_EXLEVEL_NS_MASK; in ns_exlevel_vinst_store()
815 config->vinst_ctrl |= val << __bf_shf(TRCVICTLR_EXLEVEL_NS_MASK); in ns_exlevel_vinst_store()
827 struct etmv4_config *config = &drvdata->config; in addr_idx_show() local
829 val = config->addr_idx; in addr_idx_show()
839 struct etmv4_config *config = &drvdata->config; in addr_idx_store() local
851 config->addr_idx = val; in addr_idx_store()
864 struct etmv4_config *config = &drvdata->config; in addr_instdatatype_show() local
867 idx = config->addr_idx; in addr_instdatatype_show()
868 val = FIELD_GET(TRCACATRn_TYPE_MASK, config->addr_acc[idx]); in addr_instdatatype_show()
885 struct etmv4_config *config = &drvdata->config; in addr_instdatatype_store() local
893 idx = config->addr_idx; in addr_instdatatype_store()
896 config->addr_acc[idx] &= ~TRCACATRn_TYPE_MASK; in addr_instdatatype_store()
910 struct etmv4_config *config = &drvdata->config; in addr_single_show() local
912 idx = config->addr_idx; in addr_single_show()
914 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_show()
915 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_show()
919 val = (unsigned long)config->addr_val[idx]; in addr_single_show()
931 struct etmv4_config *config = &drvdata->config; in addr_single_store() local
937 idx = config->addr_idx; in addr_single_store()
938 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_store()
939 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_store()
944 config->addr_val[idx] = (u64)val; in addr_single_store()
945 config->addr_type[idx] = ETM_ADDR_TYPE_SINGLE; in addr_single_store()
958 struct etmv4_config *config = &drvdata->config; in addr_range_show() local
961 idx = config->addr_idx; in addr_range_show()
966 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_show()
967 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_show()
968 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_show()
969 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_show()
974 val1 = (unsigned long)config->addr_val[idx]; in addr_range_show()
975 val2 = (unsigned long)config->addr_val[idx + 1]; in addr_range_show()
987 struct etmv4_config *config = &drvdata->config; in addr_range_store() local
1000 idx = config->addr_idx; in addr_range_store()
1006 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_store()
1007 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_store()
1008 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_store()
1009 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_store()
1014 config->addr_val[idx] = (u64)val1; in addr_range_store()
1015 config->addr_type[idx] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
1016 config->addr_val[idx + 1] = (u64)val2; in addr_range_store()
1017 config->addr_type[idx + 1] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
1024 exclude = config->mode & ETM_MODE_EXCLUDE; in addr_range_store()
1039 struct etmv4_config *config = &drvdata->config; in addr_start_show() local
1042 idx = config->addr_idx; in addr_start_show()
1044 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_show()
1045 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_show()
1050 val = (unsigned long)config->addr_val[idx]; in addr_start_show()
1062 struct etmv4_config *config = &drvdata->config; in addr_start_store() local
1068 idx = config->addr_idx; in addr_start_store()
1073 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_store()
1074 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_store()
1079 config->addr_val[idx] = (u64)val; in addr_start_store()
1080 config->addr_type[idx] = ETM_ADDR_TYPE_START; in addr_start_store()
1081 config->vissctlr |= BIT(idx); in addr_start_store()
1094 struct etmv4_config *config = &drvdata->config; in addr_stop_show() local
1097 idx = config->addr_idx; in addr_stop_show()
1099 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_show()
1100 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_show()
1105 val = (unsigned long)config->addr_val[idx]; in addr_stop_show()
1117 struct etmv4_config *config = &drvdata->config; in addr_stop_store() local
1123 idx = config->addr_idx; in addr_stop_store()
1128 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_store()
1129 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_store()
1134 config->addr_val[idx] = (u64)val; in addr_stop_store()
1135 config->addr_type[idx] = ETM_ADDR_TYPE_STOP; in addr_stop_store()
1136 config->vissctlr |= BIT(idx + 16); in addr_stop_store()
1149 struct etmv4_config *config = &drvdata->config; in addr_ctxtype_show() local
1152 idx = config->addr_idx; in addr_ctxtype_show()
1154 val = FIELD_GET(TRCACATRn_CONTEXTTYPE_MASK, config->addr_acc[idx]); in addr_ctxtype_show()
1169 struct etmv4_config *config = &drvdata->config; in addr_ctxtype_store() local
1177 idx = config->addr_idx; in addr_ctxtype_store()
1180 config->addr_acc[idx] &= ~TRCACATRn_CONTEXTTYPE_MASK; in addr_ctxtype_store()
1184 config->addr_acc[idx] |= TRCACATRn_CONTEXTTYPE_CTXID; in addr_ctxtype_store()
1185 config->addr_acc[idx] &= ~TRCACATRn_CONTEXTTYPE_VMID; in addr_ctxtype_store()
1190 config->addr_acc[idx] &= ~TRCACATRn_CONTEXTTYPE_CTXID; in addr_ctxtype_store()
1191 config->addr_acc[idx] |= TRCACATRn_CONTEXTTYPE_VMID; in addr_ctxtype_store()
1199 config->addr_acc[idx] |= TRCACATRn_CONTEXTTYPE_CTXID; in addr_ctxtype_store()
1201 config->addr_acc[idx] |= TRCACATRn_CONTEXTTYPE_VMID; in addr_ctxtype_store()
1215 struct etmv4_config *config = &drvdata->config; in addr_context_show() local
1218 idx = config->addr_idx; in addr_context_show()
1220 val = FIELD_GET(TRCACATRn_CONTEXT_MASK, config->addr_acc[idx]); in addr_context_show()
1232 struct etmv4_config *config = &drvdata->config; in addr_context_store() local
1243 idx = config->addr_idx; in addr_context_store()
1245 config->addr_acc[idx] &= ~TRCACATRn_CONTEXT_MASK; in addr_context_store()
1246 config->addr_acc[idx] |= val << __bf_shf(TRCACATRn_CONTEXT_MASK); in addr_context_store()
1259 struct etmv4_config *config = &drvdata->config; in addr_exlevel_s_ns_show() local
1262 idx = config->addr_idx; in addr_exlevel_s_ns_show()
1263 val = FIELD_GET(TRCACATRn_EXLEVEL_MASK, config->addr_acc[idx]); in addr_exlevel_s_ns_show()
1275 struct etmv4_config *config = &drvdata->config; in addr_exlevel_s_ns_store() local
1284 idx = config->addr_idx; in addr_exlevel_s_ns_store()
1286 config->addr_acc[idx] &= ~TRCACATRn_EXLEVEL_MASK; in addr_exlevel_s_ns_store()
1287 config->addr_acc[idx] |= val << __bf_shf(TRCACATRn_EXLEVEL_MASK); in addr_exlevel_s_ns_store()
1307 struct etmv4_config *config = &drvdata->config; in addr_cmp_view_show() local
1312 idx = config->addr_idx; in addr_cmp_view_show()
1313 addr_v = config->addr_val[idx]; in addr_cmp_view_show()
1314 addr_ctrl = config->addr_acc[idx]; in addr_cmp_view_show()
1315 addr_type = config->addr_type[idx]; in addr_cmp_view_show()
1320 addr_v = config->addr_val[idx]; in addr_cmp_view_show()
1322 addr_v2 = config->addr_val[idx + 1]; in addr_cmp_view_show()
1324 exclude = config->viiectlr & BIT(idx / 2 + 16); in addr_cmp_view_show()
1350 struct etmv4_config *config = &drvdata->config; in vinst_pe_cmp_start_stop_show() local
1354 val = config->vipcssctlr; in vinst_pe_cmp_start_stop_show()
1363 struct etmv4_config *config = &drvdata->config; in vinst_pe_cmp_start_stop_store() local
1371 config->vipcssctlr = val; in vinst_pe_cmp_start_stop_store()
1383 struct etmv4_config *config = &drvdata->config; in seq_idx_show() local
1385 val = config->seq_idx; in seq_idx_show()
1395 struct etmv4_config *config = &drvdata->config; in seq_idx_store() local
1407 config->seq_idx = val; in seq_idx_store()
1419 struct etmv4_config *config = &drvdata->config; in seq_state_show() local
1421 val = config->seq_state; in seq_state_show()
1431 struct etmv4_config *config = &drvdata->config; in seq_state_store() local
1438 config->seq_state = val; in seq_state_store()
1450 struct etmv4_config *config = &drvdata->config; in seq_event_show() local
1453 idx = config->seq_idx; in seq_event_show()
1454 val = config->seq_ctrl[idx]; in seq_event_show()
1466 struct etmv4_config *config = &drvdata->config; in seq_event_store() local
1472 idx = config->seq_idx; in seq_event_store()
1474 config->seq_ctrl[idx] = val & 0xFFFF; in seq_event_store()
1486 struct etmv4_config *config = &drvdata->config; in seq_reset_event_show() local
1488 val = config->seq_rst; in seq_reset_event_show()
1498 struct etmv4_config *config = &drvdata->config; in seq_reset_event_store() local
1505 config->seq_rst = val & ETMv4_EVENT_MASK; in seq_reset_event_store()
1516 struct etmv4_config *config = &drvdata->config; in cntr_idx_show() local
1518 val = config->cntr_idx; in cntr_idx_show()
1528 struct etmv4_config *config = &drvdata->config; in cntr_idx_store() local
1540 config->cntr_idx = val; in cntr_idx_store()
1553 struct etmv4_config *config = &drvdata->config; in cntrldvr_show() local
1556 idx = config->cntr_idx; in cntrldvr_show()
1557 val = config->cntrldvr[idx]; in cntrldvr_show()
1569 struct etmv4_config *config = &drvdata->config; in cntrldvr_store() local
1577 idx = config->cntr_idx; in cntrldvr_store()
1578 config->cntrldvr[idx] = val; in cntrldvr_store()
1591 struct etmv4_config *config = &drvdata->config; in cntr_val_show() local
1594 idx = config->cntr_idx; in cntr_val_show()
1595 val = config->cntr_val[idx]; in cntr_val_show()
1607 struct etmv4_config *config = &drvdata->config; in cntr_val_store() local
1615 idx = config->cntr_idx; in cntr_val_store()
1616 config->cntr_val[idx] = val; in cntr_val_store()
1629 struct etmv4_config *config = &drvdata->config; in cntr_ctrl_show() local
1632 idx = config->cntr_idx; in cntr_ctrl_show()
1633 val = config->cntr_ctrl[idx]; in cntr_ctrl_show()
1645 struct etmv4_config *config = &drvdata->config; in cntr_ctrl_store() local
1651 idx = config->cntr_idx; in cntr_ctrl_store()
1652 config->cntr_ctrl[idx] = val; in cntr_ctrl_store()
1664 struct etmv4_config *config = &drvdata->config; in res_idx_show() local
1666 val = config->res_idx; in res_idx_show()
1676 struct etmv4_config *config = &drvdata->config; in res_idx_store() local
1692 config->res_idx = val; in res_idx_store()
1705 struct etmv4_config *config = &drvdata->config; in res_ctrl_show() local
1708 idx = config->res_idx; in res_ctrl_show()
1709 val = config->res_ctrl[idx]; in res_ctrl_show()
1721 struct etmv4_config *config = &drvdata->config; in res_ctrl_store() local
1727 idx = config->res_idx; in res_ctrl_store()
1732 config->res_ctrl[idx] = val & (TRCRSCTLRn_PAIRINV | in res_ctrl_store()
1746 struct etmv4_config *config = &drvdata->config; in sshot_idx_show() local
1748 val = config->ss_idx; in sshot_idx_show()
1758 struct etmv4_config *config = &drvdata->config; in sshot_idx_store() local
1766 config->ss_idx = val; in sshot_idx_store()
1778 struct etmv4_config *config = &drvdata->config; in sshot_ctrl_show() local
1781 val = config->ss_ctrl[config->ss_idx]; in sshot_ctrl_show()
1793 struct etmv4_config *config = &drvdata->config; in sshot_ctrl_store() local
1799 idx = config->ss_idx; in sshot_ctrl_store()
1800 config->ss_ctrl[idx] = FIELD_PREP(TRCSSCCRn_SAC_ARC_RST_MASK, val); in sshot_ctrl_store()
1802 config->ss_status[idx] &= ~TRCSSCSRn_STATUS; in sshot_ctrl_store()
1813 struct etmv4_config *config = &drvdata->config; in sshot_status_show() local
1816 val = config->ss_status[config->ss_idx]; in sshot_status_show()
1828 struct etmv4_config *config = &drvdata->config; in sshot_pe_ctrl_show() local
1831 val = config->ss_pe_cmp[config->ss_idx]; in sshot_pe_ctrl_show()
1843 struct etmv4_config *config = &drvdata->config; in sshot_pe_ctrl_store() local
1849 idx = config->ss_idx; in sshot_pe_ctrl_store()
1850 config->ss_pe_cmp[idx] = FIELD_PREP(TRCSSPCICRn_PC_MASK, val); in sshot_pe_ctrl_store()
1852 config->ss_status[idx] &= ~TRCSSCSRn_STATUS; in sshot_pe_ctrl_store()
1864 struct etmv4_config *config = &drvdata->config; in ctxid_idx_show() local
1866 val = config->ctxid_idx; in ctxid_idx_show()
1876 struct etmv4_config *config = &drvdata->config; in ctxid_idx_store() local
1888 config->ctxid_idx = val; in ctxid_idx_store()
1901 struct etmv4_config *config = &drvdata->config; in ctxid_pid_show() local
1911 idx = config->ctxid_idx; in ctxid_pid_show()
1912 val = (unsigned long)config->ctxid_pid[idx]; in ctxid_pid_show()
1924 struct etmv4_config *config = &drvdata->config; in ctxid_pid_store() local
1949 idx = config->ctxid_idx; in ctxid_pid_store()
1950 config->ctxid_pid[idx] = (u64)pid; in ctxid_pid_store()
1962 struct etmv4_config *config = &drvdata->config; in ctxid_masks_show() local
1972 val1 = config->ctxid_mask0; in ctxid_masks_show()
1973 val2 = config->ctxid_mask1; in ctxid_masks_show()
1985 struct etmv4_config *config = &drvdata->config; in ctxid_masks_store() local
2015 config->ctxid_mask0 = val1 & 0xFF; in ctxid_masks_store()
2019 config->ctxid_mask0 = val1 & 0xFFFF; in ctxid_masks_store()
2023 config->ctxid_mask0 = val1 & 0xFFFFFF; in ctxid_masks_store()
2027 config->ctxid_mask0 = val1; in ctxid_masks_store()
2031 config->ctxid_mask0 = val1; in ctxid_masks_store()
2032 config->ctxid_mask1 = val2 & 0xFF; in ctxid_masks_store()
2036 config->ctxid_mask0 = val1; in ctxid_masks_store()
2037 config->ctxid_mask1 = val2 & 0xFFFF; in ctxid_masks_store()
2041 config->ctxid_mask0 = val1; in ctxid_masks_store()
2042 config->ctxid_mask1 = val2 & 0xFFFFFF; in ctxid_masks_store()
2046 config->ctxid_mask0 = val1; in ctxid_masks_store()
2047 config->ctxid_mask1 = val2; in ctxid_masks_store()
2058 mask = config->ctxid_mask0; in ctxid_masks_store()
2068 config->ctxid_pid[i] &= ~(0xFFUL << (j * 8)); in ctxid_masks_store()
2074 mask = config->ctxid_mask1; in ctxid_masks_store()
2090 struct etmv4_config *config = &drvdata->config; in vmid_idx_show() local
2092 val = config->vmid_idx; in vmid_idx_show()
2102 struct etmv4_config *config = &drvdata->config; in vmid_idx_store() local
2114 config->vmid_idx = val; in vmid_idx_store()
2126 struct etmv4_config *config = &drvdata->config; in vmid_val_show() local
2136 val = (unsigned long)config->vmid_val[config->vmid_idx]; in vmid_val_show()
2147 struct etmv4_config *config = &drvdata->config; in vmid_val_store() local
2166 config->vmid_val[config->vmid_idx] = (u64)val; in vmid_val_store()
2177 struct etmv4_config *config = &drvdata->config; in vmid_masks_show() local
2187 val1 = config->vmid_mask0; in vmid_masks_show()
2188 val2 = config->vmid_mask1; in vmid_masks_show()
2200 struct etmv4_config *config = &drvdata->config; in vmid_masks_store() local
2230 config->vmid_mask0 = val1 & 0xFF; in vmid_masks_store()
2234 config->vmid_mask0 = val1 & 0xFFFF; in vmid_masks_store()
2238 config->vmid_mask0 = val1 & 0xFFFFFF; in vmid_masks_store()
2242 config->vmid_mask0 = val1; in vmid_masks_store()
2246 config->vmid_mask0 = val1; in vmid_masks_store()
2247 config->vmid_mask1 = val2 & 0xFF; in vmid_masks_store()
2251 config->vmid_mask0 = val1; in vmid_masks_store()
2252 config->vmid_mask1 = val2 & 0xFFFF; in vmid_masks_store()
2256 config->vmid_mask0 = val1; in vmid_masks_store()
2257 config->vmid_mask1 = val2 & 0xFFFFFF; in vmid_masks_store()
2261 config->vmid_mask0 = val1; in vmid_masks_store()
2262 config->vmid_mask1 = val2; in vmid_masks_store()
2274 mask = config->vmid_mask0; in vmid_masks_store()
2284 config->vmid_val[i] &= ~(0xFFUL << (j * 8)); in vmid_masks_store()
2290 mask = config->vmid_mask1; in vmid_masks_store()