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()
372 config->cfg |= BIT(13); in mode_store()
378 config->cfg |= BIT(14); in mode_store()
381 if ((config->mode & ETM_MODE_ATB_TRIGGER) && in mode_store()
383 config->eventctrl1 |= BIT(11); in mode_store()
385 config->eventctrl1 &= ~BIT(11); in mode_store()
388 if ((config->mode & ETM_MODE_LPOVERRIDE) && in mode_store()
390 config->eventctrl1 |= BIT(12); in mode_store()
392 config->eventctrl1 &= ~BIT(12); in mode_store()
395 if ((config->mode & ETM_MODE_ISTALL_EN) && (drvdata->stallctl == true)) in mode_store()
396 config->stall_ctrl |= BIT(8); in mode_store()
398 config->stall_ctrl &= ~BIT(8); in mode_store()
401 if (config->mode & ETM_MODE_INSTPRIO) in mode_store()
402 config->stall_ctrl |= BIT(10); in mode_store()
404 config->stall_ctrl &= ~BIT(10); in mode_store()
407 if ((config->mode & ETM_MODE_NOOVERFLOW) && in mode_store()
409 config->stall_ctrl |= BIT(13); in mode_store()
411 config->stall_ctrl &= ~BIT(13); in mode_store()
414 if (config->mode & ETM_MODE_VIEWINST_STARTSTOP) in mode_store()
415 config->vinst_ctrl |= BIT(9); in mode_store()
417 config->vinst_ctrl &= ~BIT(9); in mode_store()
420 if (config->mode & ETM_MODE_TRACE_RESET) in mode_store()
421 config->vinst_ctrl |= BIT(10); in mode_store()
423 config->vinst_ctrl &= ~BIT(10); in mode_store()
426 if ((config->mode & ETM_MODE_TRACE_ERR) && in mode_store()
428 config->vinst_ctrl |= BIT(11); in mode_store()
430 config->vinst_ctrl &= ~BIT(11); in mode_store()
432 if (config->mode & (ETM_MODE_EXCL_KERN | ETM_MODE_EXCL_USER)) in mode_store()
433 etm4_config_trace_mode(config); in mode_store()
447 struct etmv4_config *config = &drvdata->config; in pe_show() local
449 val = config->pe_sel; in pe_show()
459 struct etmv4_config *config = &drvdata->config; in pe_store() local
470 config->pe_sel = val; in pe_store()
482 struct etmv4_config *config = &drvdata->config; in event_show() local
484 val = config->eventctrl0; in event_show()
494 struct etmv4_config *config = &drvdata->config; in event_store() local
503 config->eventctrl0 = val & 0xFF; in event_store()
507 config->eventctrl0 = val & 0xFFFF; in event_store()
511 config->eventctrl0 = val & 0xFFFFFF; in event_store()
515 config->eventctrl0 = val; in event_store()
531 struct etmv4_config *config = &drvdata->config; in event_instren_show() local
533 val = BMVAL(config->eventctrl1, 0, 3); in event_instren_show()
543 struct etmv4_config *config = &drvdata->config; in event_instren_store() local
550 config->eventctrl1 &= ~(BIT(0) | BIT(1) | BIT(2) | BIT(3)); in event_instren_store()
554 config->eventctrl1 |= val & BIT(1); in event_instren_store()
558 config->eventctrl1 |= val & (BIT(0) | BIT(1)); in event_instren_store()
562 config->eventctrl1 |= val & (BIT(0) | BIT(1) | BIT(2)); in event_instren_store()
566 config->eventctrl1 |= val & 0xF; in event_instren_store()
582 struct etmv4_config *config = &drvdata->config; in event_ts_show() local
584 val = config->ts_ctrl; in event_ts_show()
594 struct etmv4_config *config = &drvdata->config; in event_ts_store() local
601 config->ts_ctrl = val & ETMv4_EVENT_MASK; in event_ts_store()
612 struct etmv4_config *config = &drvdata->config; in syncfreq_show() local
614 val = config->syncfreq; in syncfreq_show()
624 struct etmv4_config *config = &drvdata->config; in syncfreq_store() local
631 config->syncfreq = val & ETMv4_SYNC_MASK; in syncfreq_store()
642 struct etmv4_config *config = &drvdata->config; in cyc_threshold_show() local
644 val = config->ccctlr; in cyc_threshold_show()
654 struct etmv4_config *config = &drvdata->config; in cyc_threshold_store() local
664 config->ccctlr = val; in cyc_threshold_store()
675 struct etmv4_config *config = &drvdata->config; in bb_ctrl_show() local
677 val = config->bb_ctrl; in bb_ctrl_show()
687 struct etmv4_config *config = &drvdata->config; in bb_ctrl_store() local
704 config->bb_ctrl = val & GENMASK(8, 0); in bb_ctrl_store()
715 struct etmv4_config *config = &drvdata->config; in event_vinst_show() local
717 val = config->vinst_ctrl & ETMv4_EVENT_MASK; in event_vinst_show()
727 struct etmv4_config *config = &drvdata->config; in event_vinst_store() local
734 config->vinst_ctrl &= ~ETMv4_EVENT_MASK; in event_vinst_store()
735 config->vinst_ctrl |= val; in event_vinst_store()
747 struct etmv4_config *config = &drvdata->config; in s_exlevel_vinst_show() local
749 val = (config->vinst_ctrl & TRCVICTLR_EXLEVEL_S_MASK) >> TRCVICTLR_EXLEVEL_S_SHIFT; in s_exlevel_vinst_show()
759 struct etmv4_config *config = &drvdata->config; in s_exlevel_vinst_store() local
766 config->vinst_ctrl &= ~(TRCVICTLR_EXLEVEL_S_MASK); in s_exlevel_vinst_store()
769 config->vinst_ctrl |= (val << TRCVICTLR_EXLEVEL_S_SHIFT); in s_exlevel_vinst_store()
781 struct etmv4_config *config = &drvdata->config; in ns_exlevel_vinst_show() local
784 val = (config->vinst_ctrl & TRCVICTLR_EXLEVEL_NS_MASK) >> TRCVICTLR_EXLEVEL_NS_SHIFT; in ns_exlevel_vinst_show()
794 struct etmv4_config *config = &drvdata->config; in ns_exlevel_vinst_store() local
801 config->vinst_ctrl &= ~(TRCVICTLR_EXLEVEL_NS_MASK); in ns_exlevel_vinst_store()
804 config->vinst_ctrl |= (val << TRCVICTLR_EXLEVEL_NS_SHIFT); in ns_exlevel_vinst_store()
816 struct etmv4_config *config = &drvdata->config; in addr_idx_show() local
818 val = config->addr_idx; in addr_idx_show()
828 struct etmv4_config *config = &drvdata->config; in addr_idx_store() local
840 config->addr_idx = val; in addr_idx_store()
853 struct etmv4_config *config = &drvdata->config; in addr_instdatatype_show() local
856 idx = config->addr_idx; in addr_instdatatype_show()
857 val = BMVAL(config->addr_acc[idx], 0, 1); in addr_instdatatype_show()
874 struct etmv4_config *config = &drvdata->config; in addr_instdatatype_store() local
882 idx = config->addr_idx; in addr_instdatatype_store()
885 config->addr_acc[idx] &= ~(BIT(0) | BIT(1)); in addr_instdatatype_store()
899 struct etmv4_config *config = &drvdata->config; in addr_single_show() local
901 idx = config->addr_idx; in addr_single_show()
903 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_show()
904 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_show()
908 val = (unsigned long)config->addr_val[idx]; in addr_single_show()
920 struct etmv4_config *config = &drvdata->config; in addr_single_store() local
926 idx = config->addr_idx; in addr_single_store()
927 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_store()
928 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_store()
933 config->addr_val[idx] = (u64)val; in addr_single_store()
934 config->addr_type[idx] = ETM_ADDR_TYPE_SINGLE; in addr_single_store()
947 struct etmv4_config *config = &drvdata->config; in addr_range_show() local
950 idx = config->addr_idx; in addr_range_show()
955 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_show()
956 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_show()
957 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_show()
958 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_show()
963 val1 = (unsigned long)config->addr_val[idx]; in addr_range_show()
964 val2 = (unsigned long)config->addr_val[idx + 1]; in addr_range_show()
976 struct etmv4_config *config = &drvdata->config; in addr_range_store() local
989 idx = config->addr_idx; in addr_range_store()
995 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_store()
996 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_store()
997 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_store()
998 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_store()
1003 config->addr_val[idx] = (u64)val1; in addr_range_store()
1004 config->addr_type[idx] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
1005 config->addr_val[idx + 1] = (u64)val2; in addr_range_store()
1006 config->addr_type[idx + 1] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
1013 exclude = config->mode & ETM_MODE_EXCLUDE; in addr_range_store()
1028 struct etmv4_config *config = &drvdata->config; in addr_start_show() local
1031 idx = config->addr_idx; in addr_start_show()
1033 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_show()
1034 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_show()
1039 val = (unsigned long)config->addr_val[idx]; in addr_start_show()
1051 struct etmv4_config *config = &drvdata->config; in addr_start_store() local
1057 idx = config->addr_idx; in addr_start_store()
1062 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_store()
1063 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_store()
1068 config->addr_val[idx] = (u64)val; in addr_start_store()
1069 config->addr_type[idx] = ETM_ADDR_TYPE_START; in addr_start_store()
1070 config->vissctlr |= BIT(idx); in addr_start_store()
1083 struct etmv4_config *config = &drvdata->config; in addr_stop_show() local
1086 idx = config->addr_idx; in addr_stop_show()
1088 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_show()
1089 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_show()
1094 val = (unsigned long)config->addr_val[idx]; in addr_stop_show()
1106 struct etmv4_config *config = &drvdata->config; in addr_stop_store() local
1112 idx = config->addr_idx; in addr_stop_store()
1117 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_store()
1118 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_store()
1123 config->addr_val[idx] = (u64)val; in addr_stop_store()
1124 config->addr_type[idx] = ETM_ADDR_TYPE_STOP; in addr_stop_store()
1125 config->vissctlr |= BIT(idx + 16); in addr_stop_store()
1138 struct etmv4_config *config = &drvdata->config; in addr_ctxtype_show() local
1141 idx = config->addr_idx; in addr_ctxtype_show()
1143 val = BMVAL(config->addr_acc[idx], 2, 3); in addr_ctxtype_show()
1158 struct etmv4_config *config = &drvdata->config; in addr_ctxtype_store() local
1166 idx = config->addr_idx; in addr_ctxtype_store()
1169 config->addr_acc[idx] &= ~(BIT(2) | BIT(3)); in addr_ctxtype_store()
1173 config->addr_acc[idx] |= BIT(2); in addr_ctxtype_store()
1174 config->addr_acc[idx] &= ~BIT(3); in addr_ctxtype_store()
1179 config->addr_acc[idx] &= ~BIT(2); in addr_ctxtype_store()
1180 config->addr_acc[idx] |= BIT(3); in addr_ctxtype_store()
1188 config->addr_acc[idx] |= BIT(2); in addr_ctxtype_store()
1190 config->addr_acc[idx] |= BIT(3); in addr_ctxtype_store()
1204 struct etmv4_config *config = &drvdata->config; in addr_context_show() local
1207 idx = config->addr_idx; in addr_context_show()
1209 val = BMVAL(config->addr_acc[idx], 4, 6); in addr_context_show()
1221 struct etmv4_config *config = &drvdata->config; in addr_context_store() local
1232 idx = config->addr_idx; in addr_context_store()
1234 config->addr_acc[idx] &= ~(BIT(4) | BIT(5) | BIT(6)); in addr_context_store()
1235 config->addr_acc[idx] |= (val << 4); in addr_context_store()
1248 struct etmv4_config *config = &drvdata->config; in addr_exlevel_s_ns_show() local
1251 idx = config->addr_idx; in addr_exlevel_s_ns_show()
1252 val = BMVAL(config->addr_acc[idx], 8, 14); in addr_exlevel_s_ns_show()
1264 struct etmv4_config *config = &drvdata->config; in addr_exlevel_s_ns_store() local
1273 idx = config->addr_idx; in addr_exlevel_s_ns_store()
1275 config->addr_acc[idx] &= ~(GENMASK(14, 8)); in addr_exlevel_s_ns_store()
1276 config->addr_acc[idx] |= (val << 8); in addr_exlevel_s_ns_store()
1296 struct etmv4_config *config = &drvdata->config; in addr_cmp_view_show() local
1301 idx = config->addr_idx; in addr_cmp_view_show()
1302 addr_v = config->addr_val[idx]; in addr_cmp_view_show()
1303 addr_ctrl = config->addr_acc[idx]; in addr_cmp_view_show()
1304 addr_type = config->addr_type[idx]; in addr_cmp_view_show()
1309 addr_v = config->addr_val[idx]; in addr_cmp_view_show()
1311 addr_v2 = config->addr_val[idx + 1]; in addr_cmp_view_show()
1313 exclude = config->viiectlr & BIT(idx / 2 + 16); in addr_cmp_view_show()
1339 struct etmv4_config *config = &drvdata->config; in vinst_pe_cmp_start_stop_show() local
1343 val = config->vipcssctlr; in vinst_pe_cmp_start_stop_show()
1352 struct etmv4_config *config = &drvdata->config; in vinst_pe_cmp_start_stop_store() local
1360 config->vipcssctlr = val; in vinst_pe_cmp_start_stop_store()
1372 struct etmv4_config *config = &drvdata->config; in seq_idx_show() local
1374 val = config->seq_idx; in seq_idx_show()
1384 struct etmv4_config *config = &drvdata->config; in seq_idx_store() local
1396 config->seq_idx = val; in seq_idx_store()
1408 struct etmv4_config *config = &drvdata->config; in seq_state_show() local
1410 val = config->seq_state; in seq_state_show()
1420 struct etmv4_config *config = &drvdata->config; in seq_state_store() local
1427 config->seq_state = val; in seq_state_store()
1439 struct etmv4_config *config = &drvdata->config; in seq_event_show() local
1442 idx = config->seq_idx; in seq_event_show()
1443 val = config->seq_ctrl[idx]; in seq_event_show()
1455 struct etmv4_config *config = &drvdata->config; in seq_event_store() local
1461 idx = config->seq_idx; in seq_event_store()
1463 config->seq_ctrl[idx] = val & 0xFFFF; in seq_event_store()
1475 struct etmv4_config *config = &drvdata->config; in seq_reset_event_show() local
1477 val = config->seq_rst; in seq_reset_event_show()
1487 struct etmv4_config *config = &drvdata->config; in seq_reset_event_store() local
1494 config->seq_rst = val & ETMv4_EVENT_MASK; in seq_reset_event_store()
1505 struct etmv4_config *config = &drvdata->config; in cntr_idx_show() local
1507 val = config->cntr_idx; in cntr_idx_show()
1517 struct etmv4_config *config = &drvdata->config; in cntr_idx_store() local
1529 config->cntr_idx = val; in cntr_idx_store()
1542 struct etmv4_config *config = &drvdata->config; in cntrldvr_show() local
1545 idx = config->cntr_idx; in cntrldvr_show()
1546 val = config->cntrldvr[idx]; in cntrldvr_show()
1558 struct etmv4_config *config = &drvdata->config; in cntrldvr_store() local
1566 idx = config->cntr_idx; in cntrldvr_store()
1567 config->cntrldvr[idx] = val; in cntrldvr_store()
1580 struct etmv4_config *config = &drvdata->config; in cntr_val_show() local
1583 idx = config->cntr_idx; in cntr_val_show()
1584 val = config->cntr_val[idx]; in cntr_val_show()
1596 struct etmv4_config *config = &drvdata->config; in cntr_val_store() local
1604 idx = config->cntr_idx; in cntr_val_store()
1605 config->cntr_val[idx] = val; in cntr_val_store()
1618 struct etmv4_config *config = &drvdata->config; in cntr_ctrl_show() local
1621 idx = config->cntr_idx; in cntr_ctrl_show()
1622 val = config->cntr_ctrl[idx]; in cntr_ctrl_show()
1634 struct etmv4_config *config = &drvdata->config; in cntr_ctrl_store() local
1640 idx = config->cntr_idx; in cntr_ctrl_store()
1641 config->cntr_ctrl[idx] = val; in cntr_ctrl_store()
1653 struct etmv4_config *config = &drvdata->config; in res_idx_show() local
1655 val = config->res_idx; in res_idx_show()
1665 struct etmv4_config *config = &drvdata->config; in res_idx_store() local
1681 config->res_idx = val; in res_idx_store()
1694 struct etmv4_config *config = &drvdata->config; in res_ctrl_show() local
1697 idx = config->res_idx; in res_ctrl_show()
1698 val = config->res_ctrl[idx]; in res_ctrl_show()
1710 struct etmv4_config *config = &drvdata->config; in res_ctrl_store() local
1716 idx = config->res_idx; in res_ctrl_store()
1721 config->res_ctrl[idx] = val & GENMASK(21, 0); in res_ctrl_store()
1732 struct etmv4_config *config = &drvdata->config; in sshot_idx_show() local
1734 val = config->ss_idx; in sshot_idx_show()
1744 struct etmv4_config *config = &drvdata->config; in sshot_idx_store() local
1752 config->ss_idx = val; in sshot_idx_store()
1764 struct etmv4_config *config = &drvdata->config; in sshot_ctrl_show() local
1767 val = config->ss_ctrl[config->ss_idx]; in sshot_ctrl_show()
1779 struct etmv4_config *config = &drvdata->config; in sshot_ctrl_store() local
1785 idx = config->ss_idx; in sshot_ctrl_store()
1786 config->ss_ctrl[idx] = val & GENMASK(24, 0); in sshot_ctrl_store()
1788 config->ss_status[idx] &= ~BIT(31); in sshot_ctrl_store()
1799 struct etmv4_config *config = &drvdata->config; in sshot_status_show() local
1802 val = config->ss_status[config->ss_idx]; in sshot_status_show()
1814 struct etmv4_config *config = &drvdata->config; in sshot_pe_ctrl_show() local
1817 val = config->ss_pe_cmp[config->ss_idx]; in sshot_pe_ctrl_show()
1829 struct etmv4_config *config = &drvdata->config; in sshot_pe_ctrl_store() local
1835 idx = config->ss_idx; in sshot_pe_ctrl_store()
1836 config->ss_pe_cmp[idx] = val & GENMASK(7, 0); in sshot_pe_ctrl_store()
1838 config->ss_status[idx] &= ~BIT(31); in sshot_pe_ctrl_store()
1850 struct etmv4_config *config = &drvdata->config; in ctxid_idx_show() local
1852 val = config->ctxid_idx; in ctxid_idx_show()
1862 struct etmv4_config *config = &drvdata->config; in ctxid_idx_store() local
1874 config->ctxid_idx = val; in ctxid_idx_store()
1887 struct etmv4_config *config = &drvdata->config; in ctxid_pid_show() local
1897 idx = config->ctxid_idx; in ctxid_pid_show()
1898 val = (unsigned long)config->ctxid_pid[idx]; in ctxid_pid_show()
1910 struct etmv4_config *config = &drvdata->config; in ctxid_pid_store() local
1935 idx = config->ctxid_idx; in ctxid_pid_store()
1936 config->ctxid_pid[idx] = (u64)pid; in ctxid_pid_store()
1948 struct etmv4_config *config = &drvdata->config; in ctxid_masks_show() local
1958 val1 = config->ctxid_mask0; in ctxid_masks_show()
1959 val2 = config->ctxid_mask1; in ctxid_masks_show()
1971 struct etmv4_config *config = &drvdata->config; in ctxid_masks_store() local
2001 config->ctxid_mask0 = val1 & 0xFF; in ctxid_masks_store()
2005 config->ctxid_mask0 = val1 & 0xFFFF; in ctxid_masks_store()
2009 config->ctxid_mask0 = val1 & 0xFFFFFF; in ctxid_masks_store()
2013 config->ctxid_mask0 = val1; in ctxid_masks_store()
2017 config->ctxid_mask0 = val1; in ctxid_masks_store()
2018 config->ctxid_mask1 = val2 & 0xFF; in ctxid_masks_store()
2022 config->ctxid_mask0 = val1; in ctxid_masks_store()
2023 config->ctxid_mask1 = val2 & 0xFFFF; in ctxid_masks_store()
2027 config->ctxid_mask0 = val1; in ctxid_masks_store()
2028 config->ctxid_mask1 = val2 & 0xFFFFFF; in ctxid_masks_store()
2032 config->ctxid_mask0 = val1; in ctxid_masks_store()
2033 config->ctxid_mask1 = val2; in ctxid_masks_store()
2044 mask = config->ctxid_mask0; in ctxid_masks_store()
2054 config->ctxid_pid[i] &= ~(0xFFUL << (j * 8)); in ctxid_masks_store()
2060 mask = config->ctxid_mask1; in ctxid_masks_store()
2076 struct etmv4_config *config = &drvdata->config; in vmid_idx_show() local
2078 val = config->vmid_idx; in vmid_idx_show()
2088 struct etmv4_config *config = &drvdata->config; in vmid_idx_store() local
2100 config->vmid_idx = val; in vmid_idx_store()
2112 struct etmv4_config *config = &drvdata->config; in vmid_val_show() local
2114 val = (unsigned long)config->vmid_val[config->vmid_idx]; in vmid_val_show()
2124 struct etmv4_config *config = &drvdata->config; in vmid_val_store() local
2136 config->vmid_val[config->vmid_idx] = (u64)val; in vmid_val_store()
2147 struct etmv4_config *config = &drvdata->config; in vmid_masks_show() local
2150 val1 = config->vmid_mask0; in vmid_masks_show()
2151 val2 = config->vmid_mask1; in vmid_masks_show()
2163 struct etmv4_config *config = &drvdata->config; in vmid_masks_store() local
2186 config->vmid_mask0 = val1 & 0xFF; in vmid_masks_store()
2190 config->vmid_mask0 = val1 & 0xFFFF; in vmid_masks_store()
2194 config->vmid_mask0 = val1 & 0xFFFFFF; in vmid_masks_store()
2198 config->vmid_mask0 = val1; in vmid_masks_store()
2202 config->vmid_mask0 = val1; in vmid_masks_store()
2203 config->vmid_mask1 = val2 & 0xFF; in vmid_masks_store()
2207 config->vmid_mask0 = val1; in vmid_masks_store()
2208 config->vmid_mask1 = val2 & 0xFFFF; in vmid_masks_store()
2212 config->vmid_mask0 = val1; in vmid_masks_store()
2213 config->vmid_mask1 = val2 & 0xFFFFFF; in vmid_masks_store()
2217 config->vmid_mask0 = val1; in vmid_masks_store()
2218 config->vmid_mask1 = val2; in vmid_masks_store()
2230 mask = config->vmid_mask0; in vmid_masks_store()
2240 config->vmid_val[i] &= ~(0xFFUL << (j * 8)); in vmid_masks_store()
2246 mask = config->vmid_mask1; in vmid_masks_store()