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 (BMVAL(config->addr_acc[idx], 0, 1) == ETM_INSTR_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 &= ~(BIT(1) | BIT(2)); in reset_store()
186 config->mode &= ~(ETM_MODE_DATA_TRACE_ADDR | in reset_store()
188 config->cfg &= ~(BIT(16) | BIT(17)); 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 = BIT(0); in reset_store()
211 config->mode |= ETM_MODE_VIEWINST_STARTSTOP; in reset_store()
213 config->vinst_ctrl |= BIT(9); 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 &= ~(BIT(1) | BIT(2)); in mode_store()
308 if (config->mode & ETM_MODE_LOAD) in mode_store()
310 config->cfg |= BIT(1); in mode_store()
311 if (config->mode & ETM_MODE_STORE) in mode_store()
313 config->cfg |= BIT(2); in mode_store()
314 if (config->mode & ETM_MODE_LOAD_STORE) in mode_store()
319 config->cfg |= BIT(1) | BIT(2); in mode_store()
323 if ((config->mode & ETM_MODE_BB) && (drvdata->trcbb == true)) in mode_store()
324 config->cfg |= BIT(3); in mode_store()
326 config->cfg &= ~BIT(3); in mode_store()
329 if ((config->mode & ETMv4_MODE_CYCACC) && in mode_store()
331 config->cfg |= BIT(4); in mode_store()
333 config->cfg &= ~BIT(4); in mode_store()
336 if ((config->mode & ETMv4_MODE_CTXID) && (drvdata->ctxid_size)) in mode_store()
337 config->cfg |= BIT(6); in mode_store()
339 config->cfg &= ~BIT(6); in mode_store()
341 if ((config->mode & ETM_MODE_VMID) && (drvdata->vmid_size)) in mode_store()
342 config->cfg |= BIT(7); in mode_store()
344 config->cfg &= ~BIT(7); in mode_store()
347 mode = ETM_MODE_COND(config->mode); in mode_store()
349 config->cfg &= ~(BIT(8) | BIT(9) | BIT(10)); in mode_store()
350 config->cfg |= mode << 8; in mode_store()
354 if ((config->mode & ETMv4_MODE_TIMESTAMP) && (drvdata->ts_size)) in mode_store()
355 config->cfg |= BIT(11); in mode_store()
357 config->cfg &= ~BIT(11); in mode_store()
360 if ((config->mode & ETM_MODE_RETURNSTACK) && in mode_store()
362 config->cfg |= BIT(12); in mode_store()
364 config->cfg &= ~BIT(12); in mode_store()
367 mode = ETM_MODE_QELEM(config->mode); in mode_store()
369 config->cfg &= ~(BIT(13) | BIT(14)); in mode_store()
376 config->cfg |= BIT(13); in mode_store()
382 config->cfg |= BIT(14); in mode_store()
385 if ((config->mode & ETM_MODE_ATB_TRIGGER) && in mode_store()
387 config->eventctrl1 |= BIT(11); in mode_store()
389 config->eventctrl1 &= ~BIT(11); in mode_store()
392 if ((config->mode & ETM_MODE_LPOVERRIDE) && in mode_store()
394 config->eventctrl1 |= BIT(12); in mode_store()
396 config->eventctrl1 &= ~BIT(12); in mode_store()
399 if ((config->mode & ETM_MODE_ISTALL_EN) && (drvdata->stallctl == true)) in mode_store()
400 config->stall_ctrl |= BIT(8); in mode_store()
402 config->stall_ctrl &= ~BIT(8); in mode_store()
405 if (config->mode & ETM_MODE_INSTPRIO) in mode_store()
406 config->stall_ctrl |= BIT(10); in mode_store()
408 config->stall_ctrl &= ~BIT(10); in mode_store()
411 if ((config->mode & ETM_MODE_NOOVERFLOW) && in mode_store()
413 config->stall_ctrl |= BIT(13); in mode_store()
415 config->stall_ctrl &= ~BIT(13); in mode_store()
418 if (config->mode & ETM_MODE_VIEWINST_STARTSTOP) in mode_store()
419 config->vinst_ctrl |= BIT(9); in mode_store()
421 config->vinst_ctrl &= ~BIT(9); in mode_store()
424 if (config->mode & ETM_MODE_TRACE_RESET) in mode_store()
425 config->vinst_ctrl |= BIT(10); in mode_store()
427 config->vinst_ctrl &= ~BIT(10); in mode_store()
430 if ((config->mode & ETM_MODE_TRACE_ERR) && in mode_store()
432 config->vinst_ctrl |= BIT(11); in mode_store()
434 config->vinst_ctrl &= ~BIT(11); 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 = BMVAL(config->eventctrl1, 0, 3); in event_instren_show()
547 struct etmv4_config *config = &drvdata->config; in event_instren_store() local
554 config->eventctrl1 &= ~(BIT(0) | BIT(1) | BIT(2) | BIT(3)); in event_instren_store()
558 config->eventctrl1 |= val & BIT(1); in event_instren_store()
562 config->eventctrl1 |= val & (BIT(0) | BIT(1)); in event_instren_store()
566 config->eventctrl1 |= val & (BIT(0) | BIT(1) | BIT(2)); in event_instren_store()
570 config->eventctrl1 |= val & 0xF; in event_instren_store()
586 struct etmv4_config *config = &drvdata->config; in event_ts_show() local
588 val = config->ts_ctrl; in event_ts_show()
598 struct etmv4_config *config = &drvdata->config; in event_ts_store() local
605 config->ts_ctrl = val & ETMv4_EVENT_MASK; in event_ts_store()
616 struct etmv4_config *config = &drvdata->config; in syncfreq_show() local
618 val = config->syncfreq; in syncfreq_show()
628 struct etmv4_config *config = &drvdata->config; in syncfreq_store() local
635 config->syncfreq = val & ETMv4_SYNC_MASK; in syncfreq_store()
646 struct etmv4_config *config = &drvdata->config; in cyc_threshold_show() local
648 val = config->ccctlr; in cyc_threshold_show()
658 struct etmv4_config *config = &drvdata->config; in cyc_threshold_store() local
668 config->ccctlr = val; in cyc_threshold_store()
679 struct etmv4_config *config = &drvdata->config; in bb_ctrl_show() local
681 val = config->bb_ctrl; in bb_ctrl_show()
691 struct etmv4_config *config = &drvdata->config; in bb_ctrl_store() local
708 config->bb_ctrl = val & GENMASK(8, 0); in bb_ctrl_store()
719 struct etmv4_config *config = &drvdata->config; in event_vinst_show() local
721 val = config->vinst_ctrl & ETMv4_EVENT_MASK; in event_vinst_show()
731 struct etmv4_config *config = &drvdata->config; in event_vinst_store() local
738 config->vinst_ctrl &= ~ETMv4_EVENT_MASK; in event_vinst_store()
739 config->vinst_ctrl |= val; in event_vinst_store()
751 struct etmv4_config *config = &drvdata->config; in s_exlevel_vinst_show() local
753 val = (config->vinst_ctrl & TRCVICTLR_EXLEVEL_S_MASK) >> TRCVICTLR_EXLEVEL_S_SHIFT; in s_exlevel_vinst_show()
763 struct etmv4_config *config = &drvdata->config; in s_exlevel_vinst_store() local
770 config->vinst_ctrl &= ~(TRCVICTLR_EXLEVEL_S_MASK); in s_exlevel_vinst_store()
773 config->vinst_ctrl |= (val << TRCVICTLR_EXLEVEL_S_SHIFT); in s_exlevel_vinst_store()
785 struct etmv4_config *config = &drvdata->config; in ns_exlevel_vinst_show() local
788 val = (config->vinst_ctrl & TRCVICTLR_EXLEVEL_NS_MASK) >> TRCVICTLR_EXLEVEL_NS_SHIFT; in ns_exlevel_vinst_show()
798 struct etmv4_config *config = &drvdata->config; in ns_exlevel_vinst_store() local
805 config->vinst_ctrl &= ~(TRCVICTLR_EXLEVEL_NS_MASK); in ns_exlevel_vinst_store()
808 config->vinst_ctrl |= (val << TRCVICTLR_EXLEVEL_NS_SHIFT); in ns_exlevel_vinst_store()
820 struct etmv4_config *config = &drvdata->config; in addr_idx_show() local
822 val = config->addr_idx; in addr_idx_show()
832 struct etmv4_config *config = &drvdata->config; in addr_idx_store() local
844 config->addr_idx = val; in addr_idx_store()
857 struct etmv4_config *config = &drvdata->config; in addr_instdatatype_show() local
860 idx = config->addr_idx; in addr_instdatatype_show()
861 val = BMVAL(config->addr_acc[idx], 0, 1); in addr_instdatatype_show()
878 struct etmv4_config *config = &drvdata->config; in addr_instdatatype_store() local
886 idx = config->addr_idx; in addr_instdatatype_store()
889 config->addr_acc[idx] &= ~(BIT(0) | BIT(1)); in addr_instdatatype_store()
903 struct etmv4_config *config = &drvdata->config; in addr_single_show() local
905 idx = config->addr_idx; in addr_single_show()
907 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_show()
908 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_show()
912 val = (unsigned long)config->addr_val[idx]; in addr_single_show()
924 struct etmv4_config *config = &drvdata->config; in addr_single_store() local
930 idx = config->addr_idx; in addr_single_store()
931 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_store()
932 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_store()
937 config->addr_val[idx] = (u64)val; in addr_single_store()
938 config->addr_type[idx] = ETM_ADDR_TYPE_SINGLE; in addr_single_store()
951 struct etmv4_config *config = &drvdata->config; in addr_range_show() local
954 idx = config->addr_idx; in addr_range_show()
959 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_show()
960 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_show()
961 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_show()
962 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_show()
967 val1 = (unsigned long)config->addr_val[idx]; in addr_range_show()
968 val2 = (unsigned long)config->addr_val[idx + 1]; in addr_range_show()
980 struct etmv4_config *config = &drvdata->config; in addr_range_store() local
993 idx = config->addr_idx; in addr_range_store()
999 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_store()
1000 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_store()
1001 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_store()
1002 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_store()
1007 config->addr_val[idx] = (u64)val1; in addr_range_store()
1008 config->addr_type[idx] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
1009 config->addr_val[idx + 1] = (u64)val2; in addr_range_store()
1010 config->addr_type[idx + 1] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
1017 exclude = config->mode & ETM_MODE_EXCLUDE; in addr_range_store()
1032 struct etmv4_config *config = &drvdata->config; in addr_start_show() local
1035 idx = config->addr_idx; in addr_start_show()
1037 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_show()
1038 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_show()
1043 val = (unsigned long)config->addr_val[idx]; in addr_start_show()
1055 struct etmv4_config *config = &drvdata->config; in addr_start_store() local
1061 idx = config->addr_idx; in addr_start_store()
1066 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_store()
1067 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_store()
1072 config->addr_val[idx] = (u64)val; in addr_start_store()
1073 config->addr_type[idx] = ETM_ADDR_TYPE_START; in addr_start_store()
1074 config->vissctlr |= BIT(idx); in addr_start_store()
1087 struct etmv4_config *config = &drvdata->config; in addr_stop_show() local
1090 idx = config->addr_idx; in addr_stop_show()
1092 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_show()
1093 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_show()
1098 val = (unsigned long)config->addr_val[idx]; in addr_stop_show()
1110 struct etmv4_config *config = &drvdata->config; in addr_stop_store() local
1116 idx = config->addr_idx; in addr_stop_store()
1121 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_store()
1122 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_store()
1127 config->addr_val[idx] = (u64)val; in addr_stop_store()
1128 config->addr_type[idx] = ETM_ADDR_TYPE_STOP; in addr_stop_store()
1129 config->vissctlr |= BIT(idx + 16); in addr_stop_store()
1142 struct etmv4_config *config = &drvdata->config; in addr_ctxtype_show() local
1145 idx = config->addr_idx; in addr_ctxtype_show()
1147 val = BMVAL(config->addr_acc[idx], 2, 3); in addr_ctxtype_show()
1162 struct etmv4_config *config = &drvdata->config; in addr_ctxtype_store() local
1170 idx = config->addr_idx; in addr_ctxtype_store()
1173 config->addr_acc[idx] &= ~(BIT(2) | BIT(3)); in addr_ctxtype_store()
1177 config->addr_acc[idx] |= BIT(2); in addr_ctxtype_store()
1178 config->addr_acc[idx] &= ~BIT(3); in addr_ctxtype_store()
1183 config->addr_acc[idx] &= ~BIT(2); in addr_ctxtype_store()
1184 config->addr_acc[idx] |= BIT(3); in addr_ctxtype_store()
1192 config->addr_acc[idx] |= BIT(2); in addr_ctxtype_store()
1194 config->addr_acc[idx] |= BIT(3); in addr_ctxtype_store()
1208 struct etmv4_config *config = &drvdata->config; in addr_context_show() local
1211 idx = config->addr_idx; in addr_context_show()
1213 val = BMVAL(config->addr_acc[idx], 4, 6); in addr_context_show()
1225 struct etmv4_config *config = &drvdata->config; in addr_context_store() local
1236 idx = config->addr_idx; in addr_context_store()
1238 config->addr_acc[idx] &= ~(BIT(4) | BIT(5) | BIT(6)); in addr_context_store()
1239 config->addr_acc[idx] |= (val << 4); in addr_context_store()
1252 struct etmv4_config *config = &drvdata->config; in addr_exlevel_s_ns_show() local
1255 idx = config->addr_idx; in addr_exlevel_s_ns_show()
1256 val = BMVAL(config->addr_acc[idx], 8, 14); in addr_exlevel_s_ns_show()
1268 struct etmv4_config *config = &drvdata->config; in addr_exlevel_s_ns_store() local
1277 idx = config->addr_idx; in addr_exlevel_s_ns_store()
1279 config->addr_acc[idx] &= ~(GENMASK(14, 8)); in addr_exlevel_s_ns_store()
1280 config->addr_acc[idx] |= (val << 8); in addr_exlevel_s_ns_store()
1300 struct etmv4_config *config = &drvdata->config; in addr_cmp_view_show() local
1305 idx = config->addr_idx; in addr_cmp_view_show()
1306 addr_v = config->addr_val[idx]; in addr_cmp_view_show()
1307 addr_ctrl = config->addr_acc[idx]; in addr_cmp_view_show()
1308 addr_type = config->addr_type[idx]; in addr_cmp_view_show()
1313 addr_v = config->addr_val[idx]; in addr_cmp_view_show()
1315 addr_v2 = config->addr_val[idx + 1]; in addr_cmp_view_show()
1317 exclude = config->viiectlr & BIT(idx / 2 + 16); in addr_cmp_view_show()
1343 struct etmv4_config *config = &drvdata->config; in vinst_pe_cmp_start_stop_show() local
1347 val = config->vipcssctlr; in vinst_pe_cmp_start_stop_show()
1356 struct etmv4_config *config = &drvdata->config; in vinst_pe_cmp_start_stop_store() local
1364 config->vipcssctlr = val; in vinst_pe_cmp_start_stop_store()
1376 struct etmv4_config *config = &drvdata->config; in seq_idx_show() local
1378 val = config->seq_idx; in seq_idx_show()
1388 struct etmv4_config *config = &drvdata->config; in seq_idx_store() local
1400 config->seq_idx = val; in seq_idx_store()
1412 struct etmv4_config *config = &drvdata->config; in seq_state_show() local
1414 val = config->seq_state; in seq_state_show()
1424 struct etmv4_config *config = &drvdata->config; in seq_state_store() local
1431 config->seq_state = val; in seq_state_store()
1443 struct etmv4_config *config = &drvdata->config; in seq_event_show() local
1446 idx = config->seq_idx; in seq_event_show()
1447 val = config->seq_ctrl[idx]; in seq_event_show()
1459 struct etmv4_config *config = &drvdata->config; in seq_event_store() local
1465 idx = config->seq_idx; in seq_event_store()
1467 config->seq_ctrl[idx] = val & 0xFFFF; in seq_event_store()
1479 struct etmv4_config *config = &drvdata->config; in seq_reset_event_show() local
1481 val = config->seq_rst; in seq_reset_event_show()
1491 struct etmv4_config *config = &drvdata->config; in seq_reset_event_store() local
1498 config->seq_rst = val & ETMv4_EVENT_MASK; in seq_reset_event_store()
1509 struct etmv4_config *config = &drvdata->config; in cntr_idx_show() local
1511 val = config->cntr_idx; in cntr_idx_show()
1521 struct etmv4_config *config = &drvdata->config; in cntr_idx_store() local
1533 config->cntr_idx = val; in cntr_idx_store()
1546 struct etmv4_config *config = &drvdata->config; in cntrldvr_show() local
1549 idx = config->cntr_idx; in cntrldvr_show()
1550 val = config->cntrldvr[idx]; in cntrldvr_show()
1562 struct etmv4_config *config = &drvdata->config; in cntrldvr_store() local
1570 idx = config->cntr_idx; in cntrldvr_store()
1571 config->cntrldvr[idx] = val; in cntrldvr_store()
1584 struct etmv4_config *config = &drvdata->config; in cntr_val_show() local
1587 idx = config->cntr_idx; in cntr_val_show()
1588 val = config->cntr_val[idx]; in cntr_val_show()
1600 struct etmv4_config *config = &drvdata->config; in cntr_val_store() local
1608 idx = config->cntr_idx; in cntr_val_store()
1609 config->cntr_val[idx] = val; in cntr_val_store()
1622 struct etmv4_config *config = &drvdata->config; in cntr_ctrl_show() local
1625 idx = config->cntr_idx; in cntr_ctrl_show()
1626 val = config->cntr_ctrl[idx]; in cntr_ctrl_show()
1638 struct etmv4_config *config = &drvdata->config; in cntr_ctrl_store() local
1644 idx = config->cntr_idx; in cntr_ctrl_store()
1645 config->cntr_ctrl[idx] = val; in cntr_ctrl_store()
1657 struct etmv4_config *config = &drvdata->config; in res_idx_show() local
1659 val = config->res_idx; in res_idx_show()
1669 struct etmv4_config *config = &drvdata->config; in res_idx_store() local
1685 config->res_idx = val; in res_idx_store()
1698 struct etmv4_config *config = &drvdata->config; in res_ctrl_show() local
1701 idx = config->res_idx; in res_ctrl_show()
1702 val = config->res_ctrl[idx]; in res_ctrl_show()
1714 struct etmv4_config *config = &drvdata->config; in res_ctrl_store() local
1720 idx = config->res_idx; in res_ctrl_store()
1725 config->res_ctrl[idx] = val & GENMASK(21, 0); in res_ctrl_store()
1736 struct etmv4_config *config = &drvdata->config; in sshot_idx_show() local
1738 val = config->ss_idx; in sshot_idx_show()
1748 struct etmv4_config *config = &drvdata->config; in sshot_idx_store() local
1756 config->ss_idx = val; in sshot_idx_store()
1768 struct etmv4_config *config = &drvdata->config; in sshot_ctrl_show() local
1771 val = config->ss_ctrl[config->ss_idx]; in sshot_ctrl_show()
1783 struct etmv4_config *config = &drvdata->config; in sshot_ctrl_store() local
1789 idx = config->ss_idx; in sshot_ctrl_store()
1790 config->ss_ctrl[idx] = val & GENMASK(24, 0); in sshot_ctrl_store()
1792 config->ss_status[idx] &= ~BIT(31); in sshot_ctrl_store()
1803 struct etmv4_config *config = &drvdata->config; in sshot_status_show() local
1806 val = config->ss_status[config->ss_idx]; in sshot_status_show()
1818 struct etmv4_config *config = &drvdata->config; in sshot_pe_ctrl_show() local
1821 val = config->ss_pe_cmp[config->ss_idx]; in sshot_pe_ctrl_show()
1833 struct etmv4_config *config = &drvdata->config; in sshot_pe_ctrl_store() local
1839 idx = config->ss_idx; in sshot_pe_ctrl_store()
1840 config->ss_pe_cmp[idx] = val & GENMASK(7, 0); in sshot_pe_ctrl_store()
1842 config->ss_status[idx] &= ~BIT(31); in sshot_pe_ctrl_store()
1854 struct etmv4_config *config = &drvdata->config; in ctxid_idx_show() local
1856 val = config->ctxid_idx; in ctxid_idx_show()
1866 struct etmv4_config *config = &drvdata->config; in ctxid_idx_store() local
1878 config->ctxid_idx = val; in ctxid_idx_store()
1891 struct etmv4_config *config = &drvdata->config; in ctxid_pid_show() local
1901 idx = config->ctxid_idx; in ctxid_pid_show()
1902 val = (unsigned long)config->ctxid_pid[idx]; in ctxid_pid_show()
1914 struct etmv4_config *config = &drvdata->config; in ctxid_pid_store() local
1939 idx = config->ctxid_idx; in ctxid_pid_store()
1940 config->ctxid_pid[idx] = (u64)pid; in ctxid_pid_store()
1952 struct etmv4_config *config = &drvdata->config; in ctxid_masks_show() local
1962 val1 = config->ctxid_mask0; in ctxid_masks_show()
1963 val2 = config->ctxid_mask1; in ctxid_masks_show()
1975 struct etmv4_config *config = &drvdata->config; in ctxid_masks_store() local
2005 config->ctxid_mask0 = val1 & 0xFF; in ctxid_masks_store()
2009 config->ctxid_mask0 = val1 & 0xFFFF; in ctxid_masks_store()
2013 config->ctxid_mask0 = val1 & 0xFFFFFF; in ctxid_masks_store()
2017 config->ctxid_mask0 = val1; in ctxid_masks_store()
2021 config->ctxid_mask0 = val1; in ctxid_masks_store()
2022 config->ctxid_mask1 = val2 & 0xFF; in ctxid_masks_store()
2026 config->ctxid_mask0 = val1; in ctxid_masks_store()
2027 config->ctxid_mask1 = val2 & 0xFFFF; in ctxid_masks_store()
2031 config->ctxid_mask0 = val1; in ctxid_masks_store()
2032 config->ctxid_mask1 = val2 & 0xFFFFFF; in ctxid_masks_store()
2036 config->ctxid_mask0 = val1; in ctxid_masks_store()
2037 config->ctxid_mask1 = val2; in ctxid_masks_store()
2048 mask = config->ctxid_mask0; in ctxid_masks_store()
2058 config->ctxid_pid[i] &= ~(0xFFUL << (j * 8)); in ctxid_masks_store()
2064 mask = config->ctxid_mask1; in ctxid_masks_store()
2080 struct etmv4_config *config = &drvdata->config; in vmid_idx_show() local
2082 val = config->vmid_idx; in vmid_idx_show()
2092 struct etmv4_config *config = &drvdata->config; in vmid_idx_store() local
2104 config->vmid_idx = val; in vmid_idx_store()
2116 struct etmv4_config *config = &drvdata->config; in vmid_val_show() local
2118 val = (unsigned long)config->vmid_val[config->vmid_idx]; in vmid_val_show()
2128 struct etmv4_config *config = &drvdata->config; in vmid_val_store() local
2140 config->vmid_val[config->vmid_idx] = (u64)val; in vmid_val_store()
2151 struct etmv4_config *config = &drvdata->config; in vmid_masks_show() local
2154 val1 = config->vmid_mask0; in vmid_masks_show()
2155 val2 = config->vmid_mask1; in vmid_masks_show()
2167 struct etmv4_config *config = &drvdata->config; in vmid_masks_store() local
2190 config->vmid_mask0 = val1 & 0xFF; in vmid_masks_store()
2194 config->vmid_mask0 = val1 & 0xFFFF; in vmid_masks_store()
2198 config->vmid_mask0 = val1 & 0xFFFFFF; in vmid_masks_store()
2202 config->vmid_mask0 = val1; in vmid_masks_store()
2206 config->vmid_mask0 = val1; in vmid_masks_store()
2207 config->vmid_mask1 = val2 & 0xFF; in vmid_masks_store()
2211 config->vmid_mask0 = val1; in vmid_masks_store()
2212 config->vmid_mask1 = val2 & 0xFFFF; in vmid_masks_store()
2216 config->vmid_mask0 = val1; in vmid_masks_store()
2217 config->vmid_mask1 = val2 & 0xFFFFFF; in vmid_masks_store()
2221 config->vmid_mask0 = val1; in vmid_masks_store()
2222 config->vmid_mask1 = val2; in vmid_masks_store()
2234 mask = config->vmid_mask0; in vmid_masks_store()
2244 config->vmid_val[i] &= ~(0xFFUL << (j * 8)); in vmid_masks_store()
2250 mask = config->vmid_mask1; in vmid_masks_store()