Lines Matching full:config

16 	struct etmv4_config *config = &drvdata->config;  in etm4_set_mode_exclude()  local
18 idx = config->addr_idx; in etm4_set_mode_exclude()
24 if (BMVAL(config->addr_acc[idx], 0, 1) == ETM_INSTR_ADDR) { in etm4_set_mode_exclude()
33 if (config->addr_type[idx] != ETM_ADDR_TYPE_RANGE || in etm4_set_mode_exclude()
34 config->addr_type[idx + 1] != ETM_ADDR_TYPE_RANGE) in etm4_set_mode_exclude()
42 config->viiectlr |= BIT(idx / 2 + 16); in etm4_set_mode_exclude()
43 config->viiectlr &= ~BIT(idx / 2); in etm4_set_mode_exclude()
49 config->viiectlr |= BIT(idx / 2); in etm4_set_mode_exclude()
50 config->viiectlr &= ~BIT(idx / 2 + 16); in etm4_set_mode_exclude()
171 struct etmv4_config *config = &drvdata->config; in reset_store() local
178 config->mode = 0x0; in reset_store()
181 config->mode &= ~(ETM_MODE_LOAD | ETM_MODE_STORE); in reset_store()
182 config->cfg &= ~(BIT(1) | BIT(2)); in reset_store()
185 config->mode &= ~(ETM_MODE_DATA_TRACE_ADDR | in reset_store()
187 config->cfg &= ~(BIT(16) | BIT(17)); in reset_store()
190 config->eventctrl0 = 0x0; in reset_store()
191 config->eventctrl1 = 0x0; in reset_store()
194 config->ts_ctrl = 0x0; in reset_store()
197 config->stall_ctrl = 0x0; in reset_store()
201 config->syncfreq = 0x8; in reset_store()
208 config->vinst_ctrl = BIT(0); in reset_store()
210 config->mode |= ETM_MODE_VIEWINST_STARTSTOP; in reset_store()
212 config->vinst_ctrl |= BIT(9); in reset_store()
216 config->viiectlr = 0x0; in reset_store()
219 config->vissctlr = 0x0; in reset_store()
220 config->vipcssctlr = 0x0; in reset_store()
224 config->seq_ctrl[i] = 0x0; in reset_store()
225 config->seq_rst = 0x0; in reset_store()
226 config->seq_state = 0x0; in reset_store()
229 config->ext_inp = 0x0; in reset_store()
231 config->cntr_idx = 0x0; in reset_store()
233 config->cntrldvr[i] = 0x0; in reset_store()
234 config->cntr_ctrl[i] = 0x0; in reset_store()
235 config->cntr_val[i] = 0x0; in reset_store()
238 config->res_idx = 0x0; in reset_store()
240 config->res_ctrl[i] = 0x0; in reset_store()
242 config->ss_idx = 0x0; in reset_store()
244 config->ss_ctrl[i] = 0x0; in reset_store()
245 config->ss_pe_cmp[i] = 0x0; in reset_store()
248 config->addr_idx = 0x0; in reset_store()
250 config->addr_val[i] = 0x0; in reset_store()
251 config->addr_acc[i] = 0x0; in reset_store()
252 config->addr_type[i] = ETM_ADDR_TYPE_NONE; in reset_store()
255 config->ctxid_idx = 0x0; in reset_store()
257 config->ctxid_pid[i] = 0x0; in reset_store()
259 config->ctxid_mask0 = 0x0; in reset_store()
260 config->ctxid_mask1 = 0x0; in reset_store()
262 config->vmid_idx = 0x0; in reset_store()
264 config->vmid_val[i] = 0x0; in reset_store()
265 config->vmid_mask0 = 0x0; in reset_store()
266 config->vmid_mask1 = 0x0; in reset_store()
282 struct etmv4_config *config = &drvdata->config; in mode_show() local
284 val = config->mode; in mode_show()
294 struct etmv4_config *config = &drvdata->config; in mode_store() local
300 config->mode = val & ETMv4_MODE_ALL; in mode_store()
304 config->cfg &= ~(BIT(1) | BIT(2)); in mode_store()
305 if (config->mode & ETM_MODE_LOAD) in mode_store()
307 config->cfg |= BIT(1); in mode_store()
308 if (config->mode & ETM_MODE_STORE) in mode_store()
310 config->cfg |= BIT(2); in mode_store()
311 if (config->mode & ETM_MODE_LOAD_STORE) in mode_store()
316 config->cfg |= BIT(1) | BIT(2); in mode_store()
320 if ((config->mode & ETM_MODE_BB) && (drvdata->trcbb == true)) in mode_store()
321 config->cfg |= BIT(3); in mode_store()
323 config->cfg &= ~BIT(3); in mode_store()
326 if ((config->mode & ETMv4_MODE_CYCACC) && in mode_store()
328 config->cfg |= BIT(4); in mode_store()
330 config->cfg &= ~BIT(4); in mode_store()
333 if ((config->mode & ETMv4_MODE_CTXID) && (drvdata->ctxid_size)) in mode_store()
334 config->cfg |= BIT(6); in mode_store()
336 config->cfg &= ~BIT(6); in mode_store()
338 if ((config->mode & ETM_MODE_VMID) && (drvdata->vmid_size)) in mode_store()
339 config->cfg |= BIT(7); in mode_store()
341 config->cfg &= ~BIT(7); in mode_store()
344 mode = ETM_MODE_COND(config->mode); in mode_store()
346 config->cfg &= ~(BIT(8) | BIT(9) | BIT(10)); in mode_store()
347 config->cfg |= mode << 8; in mode_store()
351 if ((config->mode & ETMv4_MODE_TIMESTAMP) && (drvdata->ts_size)) in mode_store()
352 config->cfg |= BIT(11); in mode_store()
354 config->cfg &= ~BIT(11); in mode_store()
357 if ((config->mode & ETM_MODE_RETURNSTACK) && in mode_store()
359 config->cfg |= BIT(12); in mode_store()
361 config->cfg &= ~BIT(12); in mode_store()
364 mode = ETM_MODE_QELEM(config->mode); in mode_store()
366 config->cfg &= ~(BIT(13) | BIT(14)); in mode_store()
369 config->cfg |= BIT(13); in mode_store()
375 config->cfg |= BIT(14); in mode_store()
378 if ((config->mode & ETM_MODE_ATB_TRIGGER) && in mode_store()
380 config->eventctrl1 |= BIT(11); in mode_store()
382 config->eventctrl1 &= ~BIT(11); in mode_store()
385 if ((config->mode & ETM_MODE_LPOVERRIDE) && in mode_store()
387 config->eventctrl1 |= BIT(12); in mode_store()
389 config->eventctrl1 &= ~BIT(12); in mode_store()
392 if (config->mode & ETM_MODE_ISTALL_EN) in mode_store()
393 config->stall_ctrl |= BIT(8); in mode_store()
395 config->stall_ctrl &= ~BIT(8); in mode_store()
398 if (config->mode & ETM_MODE_INSTPRIO) in mode_store()
399 config->stall_ctrl |= BIT(10); in mode_store()
401 config->stall_ctrl &= ~BIT(10); in mode_store()
404 if ((config->mode & ETM_MODE_NOOVERFLOW) && in mode_store()
406 config->stall_ctrl |= BIT(13); in mode_store()
408 config->stall_ctrl &= ~BIT(13); in mode_store()
411 if (config->mode & ETM_MODE_VIEWINST_STARTSTOP) in mode_store()
412 config->vinst_ctrl |= BIT(9); in mode_store()
414 config->vinst_ctrl &= ~BIT(9); in mode_store()
417 if (config->mode & ETM_MODE_TRACE_RESET) in mode_store()
418 config->vinst_ctrl |= BIT(10); in mode_store()
420 config->vinst_ctrl &= ~BIT(10); in mode_store()
423 if ((config->mode & ETM_MODE_TRACE_ERR) && in mode_store()
425 config->vinst_ctrl |= BIT(11); in mode_store()
427 config->vinst_ctrl &= ~BIT(11); in mode_store()
429 if (config->mode & (ETM_MODE_EXCL_KERN | ETM_MODE_EXCL_USER)) in mode_store()
430 etm4_config_trace_mode(config); in mode_store()
444 struct etmv4_config *config = &drvdata->config; in pe_show() local
446 val = config->pe_sel; in pe_show()
456 struct etmv4_config *config = &drvdata->config; in pe_store() local
467 config->pe_sel = val; in pe_store()
479 struct etmv4_config *config = &drvdata->config; in event_show() local
481 val = config->eventctrl0; in event_show()
491 struct etmv4_config *config = &drvdata->config; in event_store() local
500 config->eventctrl0 = val & 0xFF; in event_store()
504 config->eventctrl0 = val & 0xFFFF; in event_store()
508 config->eventctrl0 = val & 0xFFFFFF; in event_store()
512 config->eventctrl0 = val; in event_store()
528 struct etmv4_config *config = &drvdata->config; in event_instren_show() local
530 val = BMVAL(config->eventctrl1, 0, 3); in event_instren_show()
540 struct etmv4_config *config = &drvdata->config; in event_instren_store() local
547 config->eventctrl1 &= ~(BIT(0) | BIT(1) | BIT(2) | BIT(3)); in event_instren_store()
551 config->eventctrl1 |= val & BIT(1); in event_instren_store()
555 config->eventctrl1 |= val & (BIT(0) | BIT(1)); in event_instren_store()
559 config->eventctrl1 |= val & (BIT(0) | BIT(1) | BIT(2)); in event_instren_store()
563 config->eventctrl1 |= val & 0xF; in event_instren_store()
579 struct etmv4_config *config = &drvdata->config; in event_ts_show() local
581 val = config->ts_ctrl; in event_ts_show()
591 struct etmv4_config *config = &drvdata->config; in event_ts_store() local
598 config->ts_ctrl = val & ETMv4_EVENT_MASK; in event_ts_store()
609 struct etmv4_config *config = &drvdata->config; in syncfreq_show() local
611 val = config->syncfreq; in syncfreq_show()
621 struct etmv4_config *config = &drvdata->config; in syncfreq_store() local
628 config->syncfreq = val & ETMv4_SYNC_MASK; in syncfreq_store()
639 struct etmv4_config *config = &drvdata->config; in cyc_threshold_show() local
641 val = config->ccctlr; in cyc_threshold_show()
651 struct etmv4_config *config = &drvdata->config; in cyc_threshold_store() local
661 config->ccctlr = val; in cyc_threshold_store()
672 struct etmv4_config *config = &drvdata->config; in bb_ctrl_show() local
674 val = config->bb_ctrl; in bb_ctrl_show()
684 struct etmv4_config *config = &drvdata->config; in bb_ctrl_store() local
701 config->bb_ctrl = val & GENMASK(8, 0); in bb_ctrl_store()
712 struct etmv4_config *config = &drvdata->config; in event_vinst_show() local
714 val = config->vinst_ctrl & ETMv4_EVENT_MASK; in event_vinst_show()
724 struct etmv4_config *config = &drvdata->config; in event_vinst_store() local
731 config->vinst_ctrl &= ~ETMv4_EVENT_MASK; in event_vinst_store()
732 config->vinst_ctrl |= val; in event_vinst_store()
744 struct etmv4_config *config = &drvdata->config; in s_exlevel_vinst_show() local
746 val = (config->vinst_ctrl & ETM_EXLEVEL_S_VICTLR_MASK) >> 16; in s_exlevel_vinst_show()
756 struct etmv4_config *config = &drvdata->config; in s_exlevel_vinst_store() local
763 config->vinst_ctrl &= ~(ETM_EXLEVEL_S_VICTLR_MASK); in s_exlevel_vinst_store()
766 config->vinst_ctrl |= (val << 16); in s_exlevel_vinst_store()
778 struct etmv4_config *config = &drvdata->config; in ns_exlevel_vinst_show() local
781 val = (config->vinst_ctrl & ETM_EXLEVEL_NS_VICTLR_MASK) >> 20; in ns_exlevel_vinst_show()
791 struct etmv4_config *config = &drvdata->config; in ns_exlevel_vinst_store() local
798 config->vinst_ctrl &= ~(ETM_EXLEVEL_NS_VICTLR_MASK); in ns_exlevel_vinst_store()
801 config->vinst_ctrl |= (val << 20); in ns_exlevel_vinst_store()
813 struct etmv4_config *config = &drvdata->config; in addr_idx_show() local
815 val = config->addr_idx; in addr_idx_show()
825 struct etmv4_config *config = &drvdata->config; in addr_idx_store() local
837 config->addr_idx = val; in addr_idx_store()
850 struct etmv4_config *config = &drvdata->config; in addr_instdatatype_show() local
853 idx = config->addr_idx; in addr_instdatatype_show()
854 val = BMVAL(config->addr_acc[idx], 0, 1); in addr_instdatatype_show()
871 struct etmv4_config *config = &drvdata->config; in addr_instdatatype_store() local
879 idx = config->addr_idx; in addr_instdatatype_store()
882 config->addr_acc[idx] &= ~(BIT(0) | BIT(1)); in addr_instdatatype_store()
896 struct etmv4_config *config = &drvdata->config; in addr_single_show() local
898 idx = config->addr_idx; in addr_single_show()
900 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_show()
901 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_show()
905 val = (unsigned long)config->addr_val[idx]; in addr_single_show()
917 struct etmv4_config *config = &drvdata->config; in addr_single_store() local
923 idx = config->addr_idx; in addr_single_store()
924 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_store()
925 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_store()
930 config->addr_val[idx] = (u64)val; in addr_single_store()
931 config->addr_type[idx] = ETM_ADDR_TYPE_SINGLE; in addr_single_store()
944 struct etmv4_config *config = &drvdata->config; in addr_range_show() local
947 idx = config->addr_idx; in addr_range_show()
952 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_show()
953 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_show()
954 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_show()
955 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_show()
960 val1 = (unsigned long)config->addr_val[idx]; in addr_range_show()
961 val2 = (unsigned long)config->addr_val[idx + 1]; in addr_range_show()
973 struct etmv4_config *config = &drvdata->config; in addr_range_store() local
986 idx = config->addr_idx; in addr_range_store()
992 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_store()
993 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_store()
994 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_store()
995 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_store()
1000 config->addr_val[idx] = (u64)val1; in addr_range_store()
1001 config->addr_type[idx] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
1002 config->addr_val[idx + 1] = (u64)val2; in addr_range_store()
1003 config->addr_type[idx + 1] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
1010 exclude = config->mode & ETM_MODE_EXCLUDE; in addr_range_store()
1025 struct etmv4_config *config = &drvdata->config; in addr_start_show() local
1028 idx = config->addr_idx; in addr_start_show()
1030 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_show()
1031 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_show()
1036 val = (unsigned long)config->addr_val[idx]; in addr_start_show()
1048 struct etmv4_config *config = &drvdata->config; in addr_start_store() local
1054 idx = config->addr_idx; in addr_start_store()
1059 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_store()
1060 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_store()
1065 config->addr_val[idx] = (u64)val; in addr_start_store()
1066 config->addr_type[idx] = ETM_ADDR_TYPE_START; in addr_start_store()
1067 config->vissctlr |= BIT(idx); in addr_start_store()
1080 struct etmv4_config *config = &drvdata->config; in addr_stop_show() local
1083 idx = config->addr_idx; in addr_stop_show()
1085 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_show()
1086 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_show()
1091 val = (unsigned long)config->addr_val[idx]; in addr_stop_show()
1103 struct etmv4_config *config = &drvdata->config; in addr_stop_store() local
1109 idx = config->addr_idx; in addr_stop_store()
1114 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_store()
1115 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_store()
1120 config->addr_val[idx] = (u64)val; in addr_stop_store()
1121 config->addr_type[idx] = ETM_ADDR_TYPE_STOP; in addr_stop_store()
1122 config->vissctlr |= BIT(idx + 16); in addr_stop_store()
1135 struct etmv4_config *config = &drvdata->config; in addr_ctxtype_show() local
1138 idx = config->addr_idx; in addr_ctxtype_show()
1140 val = BMVAL(config->addr_acc[idx], 2, 3); in addr_ctxtype_show()
1155 struct etmv4_config *config = &drvdata->config; in addr_ctxtype_store() local
1163 idx = config->addr_idx; in addr_ctxtype_store()
1166 config->addr_acc[idx] &= ~(BIT(2) | BIT(3)); in addr_ctxtype_store()
1170 config->addr_acc[idx] |= BIT(2); in addr_ctxtype_store()
1171 config->addr_acc[idx] &= ~BIT(3); in addr_ctxtype_store()
1176 config->addr_acc[idx] &= ~BIT(2); in addr_ctxtype_store()
1177 config->addr_acc[idx] |= BIT(3); in addr_ctxtype_store()
1185 config->addr_acc[idx] |= BIT(2); in addr_ctxtype_store()
1187 config->addr_acc[idx] |= BIT(3); in addr_ctxtype_store()
1201 struct etmv4_config *config = &drvdata->config; in addr_context_show() local
1204 idx = config->addr_idx; in addr_context_show()
1206 val = BMVAL(config->addr_acc[idx], 4, 6); in addr_context_show()
1218 struct etmv4_config *config = &drvdata->config; in addr_context_store() local
1229 idx = config->addr_idx; in addr_context_store()
1231 config->addr_acc[idx] &= ~(BIT(4) | BIT(5) | BIT(6)); in addr_context_store()
1232 config->addr_acc[idx] |= (val << 4); in addr_context_store()
1245 struct etmv4_config *config = &drvdata->config; in addr_exlevel_s_ns_show() local
1248 idx = config->addr_idx; in addr_exlevel_s_ns_show()
1249 val = BMVAL(config->addr_acc[idx], 8, 14); in addr_exlevel_s_ns_show()
1261 struct etmv4_config *config = &drvdata->config; in addr_exlevel_s_ns_store() local
1270 idx = config->addr_idx; in addr_exlevel_s_ns_store()
1272 config->addr_acc[idx] &= ~(GENMASK(14, 8)); in addr_exlevel_s_ns_store()
1273 config->addr_acc[idx] |= (val << 8); in addr_exlevel_s_ns_store()
1293 struct etmv4_config *config = &drvdata->config; in addr_cmp_view_show() local
1298 idx = config->addr_idx; in addr_cmp_view_show()
1299 addr_v = config->addr_val[idx]; in addr_cmp_view_show()
1300 addr_ctrl = config->addr_acc[idx]; in addr_cmp_view_show()
1301 addr_type = config->addr_type[idx]; in addr_cmp_view_show()
1306 addr_v = config->addr_val[idx]; in addr_cmp_view_show()
1308 addr_v2 = config->addr_val[idx + 1]; in addr_cmp_view_show()
1310 exclude = config->viiectlr & BIT(idx / 2 + 16); in addr_cmp_view_show()
1336 struct etmv4_config *config = &drvdata->config; in vinst_pe_cmp_start_stop_show() local
1340 val = config->vipcssctlr; in vinst_pe_cmp_start_stop_show()
1349 struct etmv4_config *config = &drvdata->config; in vinst_pe_cmp_start_stop_store() local
1357 config->vipcssctlr = val; in vinst_pe_cmp_start_stop_store()
1369 struct etmv4_config *config = &drvdata->config; in seq_idx_show() local
1371 val = config->seq_idx; in seq_idx_show()
1381 struct etmv4_config *config = &drvdata->config; in seq_idx_store() local
1393 config->seq_idx = val; in seq_idx_store()
1405 struct etmv4_config *config = &drvdata->config; in seq_state_show() local
1407 val = config->seq_state; in seq_state_show()
1417 struct etmv4_config *config = &drvdata->config; in seq_state_store() local
1424 config->seq_state = val; in seq_state_store()
1436 struct etmv4_config *config = &drvdata->config; in seq_event_show() local
1439 idx = config->seq_idx; in seq_event_show()
1440 val = config->seq_ctrl[idx]; in seq_event_show()
1452 struct etmv4_config *config = &drvdata->config; in seq_event_store() local
1458 idx = config->seq_idx; in seq_event_store()
1460 config->seq_ctrl[idx] = val & 0xFFFF; in seq_event_store()
1472 struct etmv4_config *config = &drvdata->config; in seq_reset_event_show() local
1474 val = config->seq_rst; in seq_reset_event_show()
1484 struct etmv4_config *config = &drvdata->config; in seq_reset_event_store() local
1491 config->seq_rst = val & ETMv4_EVENT_MASK; in seq_reset_event_store()
1502 struct etmv4_config *config = &drvdata->config; in cntr_idx_show() local
1504 val = config->cntr_idx; in cntr_idx_show()
1514 struct etmv4_config *config = &drvdata->config; in cntr_idx_store() local
1526 config->cntr_idx = val; in cntr_idx_store()
1539 struct etmv4_config *config = &drvdata->config; in cntrldvr_show() local
1542 idx = config->cntr_idx; in cntrldvr_show()
1543 val = config->cntrldvr[idx]; in cntrldvr_show()
1555 struct etmv4_config *config = &drvdata->config; in cntrldvr_store() local
1563 idx = config->cntr_idx; in cntrldvr_store()
1564 config->cntrldvr[idx] = val; in cntrldvr_store()
1577 struct etmv4_config *config = &drvdata->config; in cntr_val_show() local
1580 idx = config->cntr_idx; in cntr_val_show()
1581 val = config->cntr_val[idx]; in cntr_val_show()
1593 struct etmv4_config *config = &drvdata->config; in cntr_val_store() local
1601 idx = config->cntr_idx; in cntr_val_store()
1602 config->cntr_val[idx] = val; in cntr_val_store()
1615 struct etmv4_config *config = &drvdata->config; in cntr_ctrl_show() local
1618 idx = config->cntr_idx; in cntr_ctrl_show()
1619 val = config->cntr_ctrl[idx]; in cntr_ctrl_show()
1631 struct etmv4_config *config = &drvdata->config; in cntr_ctrl_store() local
1637 idx = config->cntr_idx; in cntr_ctrl_store()
1638 config->cntr_ctrl[idx] = val; in cntr_ctrl_store()
1650 struct etmv4_config *config = &drvdata->config; in res_idx_show() local
1652 val = config->res_idx; in res_idx_show()
1662 struct etmv4_config *config = &drvdata->config; in res_idx_store() local
1678 config->res_idx = val; in res_idx_store()
1691 struct etmv4_config *config = &drvdata->config; in res_ctrl_show() local
1694 idx = config->res_idx; in res_ctrl_show()
1695 val = config->res_ctrl[idx]; in res_ctrl_show()
1707 struct etmv4_config *config = &drvdata->config; in res_ctrl_store() local
1713 idx = config->res_idx; in res_ctrl_store()
1718 config->res_ctrl[idx] = val & GENMASK(21, 0); in res_ctrl_store()
1729 struct etmv4_config *config = &drvdata->config; in sshot_idx_show() local
1731 val = config->ss_idx; in sshot_idx_show()
1741 struct etmv4_config *config = &drvdata->config; in sshot_idx_store() local
1749 config->ss_idx = val; in sshot_idx_store()
1761 struct etmv4_config *config = &drvdata->config; in sshot_ctrl_show() local
1764 val = config->ss_ctrl[config->ss_idx]; in sshot_ctrl_show()
1776 struct etmv4_config *config = &drvdata->config; in sshot_ctrl_store() local
1782 idx = config->ss_idx; in sshot_ctrl_store()
1783 config->ss_ctrl[idx] = val & GENMASK(24, 0); in sshot_ctrl_store()
1785 config->ss_status[idx] &= ~BIT(31); in sshot_ctrl_store()
1796 struct etmv4_config *config = &drvdata->config; in sshot_status_show() local
1799 val = config->ss_status[config->ss_idx]; in sshot_status_show()
1811 struct etmv4_config *config = &drvdata->config; in sshot_pe_ctrl_show() local
1814 val = config->ss_pe_cmp[config->ss_idx]; in sshot_pe_ctrl_show()
1826 struct etmv4_config *config = &drvdata->config; in sshot_pe_ctrl_store() local
1832 idx = config->ss_idx; in sshot_pe_ctrl_store()
1833 config->ss_pe_cmp[idx] = val & GENMASK(7, 0); in sshot_pe_ctrl_store()
1835 config->ss_status[idx] &= ~BIT(31); in sshot_pe_ctrl_store()
1847 struct etmv4_config *config = &drvdata->config; in ctxid_idx_show() local
1849 val = config->ctxid_idx; in ctxid_idx_show()
1859 struct etmv4_config *config = &drvdata->config; in ctxid_idx_store() local
1871 config->ctxid_idx = val; in ctxid_idx_store()
1884 struct etmv4_config *config = &drvdata->config; in ctxid_pid_show() local
1894 idx = config->ctxid_idx; in ctxid_pid_show()
1895 val = (unsigned long)config->ctxid_pid[idx]; in ctxid_pid_show()
1907 struct etmv4_config *config = &drvdata->config; in ctxid_pid_store() local
1932 idx = config->ctxid_idx; in ctxid_pid_store()
1933 config->ctxid_pid[idx] = (u64)pid; in ctxid_pid_store()
1945 struct etmv4_config *config = &drvdata->config; in ctxid_masks_show() local
1955 val1 = config->ctxid_mask0; in ctxid_masks_show()
1956 val2 = config->ctxid_mask1; in ctxid_masks_show()
1968 struct etmv4_config *config = &drvdata->config; in ctxid_masks_store() local
1998 config->ctxid_mask0 = val1 & 0xFF; in ctxid_masks_store()
2002 config->ctxid_mask0 = val1 & 0xFFFF; in ctxid_masks_store()
2006 config->ctxid_mask0 = val1 & 0xFFFFFF; in ctxid_masks_store()
2010 config->ctxid_mask0 = val1; in ctxid_masks_store()
2014 config->ctxid_mask0 = val1; in ctxid_masks_store()
2015 config->ctxid_mask1 = val2 & 0xFF; in ctxid_masks_store()
2019 config->ctxid_mask0 = val1; in ctxid_masks_store()
2020 config->ctxid_mask1 = val2 & 0xFFFF; in ctxid_masks_store()
2024 config->ctxid_mask0 = val1; in ctxid_masks_store()
2025 config->ctxid_mask1 = val2 & 0xFFFFFF; in ctxid_masks_store()
2029 config->ctxid_mask0 = val1; in ctxid_masks_store()
2030 config->ctxid_mask1 = val2; in ctxid_masks_store()
2041 mask = config->ctxid_mask0; in ctxid_masks_store()
2051 config->ctxid_pid[i] &= ~(0xFFUL << (j * 8)); in ctxid_masks_store()
2057 mask = config->ctxid_mask1; in ctxid_masks_store()
2073 struct etmv4_config *config = &drvdata->config; in vmid_idx_show() local
2075 val = config->vmid_idx; in vmid_idx_show()
2085 struct etmv4_config *config = &drvdata->config; in vmid_idx_store() local
2097 config->vmid_idx = val; in vmid_idx_store()
2109 struct etmv4_config *config = &drvdata->config; in vmid_val_show() local
2111 val = (unsigned long)config->vmid_val[config->vmid_idx]; in vmid_val_show()
2121 struct etmv4_config *config = &drvdata->config; in vmid_val_store() local
2133 config->vmid_val[config->vmid_idx] = (u64)val; in vmid_val_store()
2144 struct etmv4_config *config = &drvdata->config; in vmid_masks_show() local
2147 val1 = config->vmid_mask0; in vmid_masks_show()
2148 val2 = config->vmid_mask1; in vmid_masks_show()
2160 struct etmv4_config *config = &drvdata->config; in vmid_masks_store() local
2183 config->vmid_mask0 = val1 & 0xFF; in vmid_masks_store()
2187 config->vmid_mask0 = val1 & 0xFFFF; in vmid_masks_store()
2191 config->vmid_mask0 = val1 & 0xFFFFFF; in vmid_masks_store()
2195 config->vmid_mask0 = val1; in vmid_masks_store()
2199 config->vmid_mask0 = val1; in vmid_masks_store()
2200 config->vmid_mask1 = val2 & 0xFF; in vmid_masks_store()
2204 config->vmid_mask0 = val1; in vmid_masks_store()
2205 config->vmid_mask1 = val2 & 0xFFFF; in vmid_masks_store()
2209 config->vmid_mask0 = val1; in vmid_masks_store()
2210 config->vmid_mask1 = val2 & 0xFFFFFF; in vmid_masks_store()
2214 config->vmid_mask0 = val1; in vmid_masks_store()
2215 config->vmid_mask1 = val2; in vmid_masks_store()
2227 mask = config->vmid_mask0; in vmid_masks_store()
2237 config->vmid_val[i] &= ~(0xFFUL << (j * 8)); in vmid_masks_store()
2243 mask = config->vmid_mask1; in vmid_masks_store()