Lines Matching full:config
72 struct etm_config *config = &drvdata->config; in reset_store() local
80 memset(config, 0, sizeof(struct etm_config)); in reset_store()
81 config->mode = ETM_MODE_EXCLUDE; in reset_store()
82 config->trigger_event = ETM_DEFAULT_EVENT_VAL; in reset_store()
84 config->addr_type[i] = ETM_ADDR_TYPE_NONE; in reset_store()
87 etm_set_default(config); in reset_store()
100 struct etm_config *config = &drvdata->config; in mode_show() local
102 val = config->mode; in mode_show()
113 struct etm_config *config = &drvdata->config; in mode_store() local
120 config->mode = val & ETM_MODE_ALL; in mode_store()
122 if (config->mode & ETM_MODE_EXCLUDE) in mode_store()
123 config->enable_ctrl1 |= ETMTECR1_INC_EXC; in mode_store()
125 config->enable_ctrl1 &= ~ETMTECR1_INC_EXC; in mode_store()
127 if (config->mode & ETM_MODE_CYCACC) in mode_store()
128 config->ctrl |= ETMCR_CYC_ACC; in mode_store()
130 config->ctrl &= ~ETMCR_CYC_ACC; in mode_store()
132 if (config->mode & ETM_MODE_STALL) { in mode_store()
138 config->ctrl |= ETMCR_STALL_MODE; in mode_store()
140 config->ctrl &= ~ETMCR_STALL_MODE; in mode_store()
142 if (config->mode & ETM_MODE_TIMESTAMP) { in mode_store()
148 config->ctrl |= ETMCR_TIMESTAMP_EN; in mode_store()
150 config->ctrl &= ~ETMCR_TIMESTAMP_EN; in mode_store()
152 if (config->mode & ETM_MODE_CTXID) in mode_store()
153 config->ctrl |= ETMCR_CTXID_SIZE; in mode_store()
155 config->ctrl &= ~ETMCR_CTXID_SIZE; in mode_store()
157 if (config->mode & ETM_MODE_BBROAD) in mode_store()
158 config->ctrl |= ETMCR_BRANCH_BROADCAST; in mode_store()
160 config->ctrl &= ~ETMCR_BRANCH_BROADCAST; in mode_store()
162 if (config->mode & ETM_MODE_RET_STACK) in mode_store()
163 config->ctrl |= ETMCR_RETURN_STACK; in mode_store()
165 config->ctrl &= ~ETMCR_RETURN_STACK; in mode_store()
167 if (config->mode & (ETM_MODE_EXCL_KERN | ETM_MODE_EXCL_USER)) in mode_store()
168 etm_config_trace_mode(config); in mode_store()
185 struct etm_config *config = &drvdata->config; in trigger_event_show() local
187 val = config->trigger_event; in trigger_event_show()
198 struct etm_config *config = &drvdata->config; in trigger_event_store() local
204 config->trigger_event = val & ETM_EVENT_MASK; in trigger_event_store()
215 struct etm_config *config = &drvdata->config; in enable_event_show() local
217 val = config->enable_event; in enable_event_show()
228 struct etm_config *config = &drvdata->config; in enable_event_store() local
234 config->enable_event = val & ETM_EVENT_MASK; in enable_event_store()
245 struct etm_config *config = &drvdata->config; in fifofull_level_show() local
247 val = config->fifofull_level; in fifofull_level_show()
258 struct etm_config *config = &drvdata->config; in fifofull_level_store() local
264 config->fifofull_level = val; in fifofull_level_store()
275 struct etm_config *config = &drvdata->config; in addr_idx_show() local
277 val = config->addr_idx; in addr_idx_show()
288 struct etm_config *config = &drvdata->config; in addr_idx_store() local
302 config->addr_idx = val; in addr_idx_store()
315 struct etm_config *config = &drvdata->config; in addr_single_show() local
318 idx = config->addr_idx; in addr_single_show()
319 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_show()
320 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_show()
325 val = config->addr_val[idx]; in addr_single_show()
339 struct etm_config *config = &drvdata->config; in addr_single_store() local
346 idx = config->addr_idx; in addr_single_store()
347 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_store()
348 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_store()
353 config->addr_val[idx] = val; in addr_single_store()
354 config->addr_type[idx] = ETM_ADDR_TYPE_SINGLE; in addr_single_store()
367 struct etm_config *config = &drvdata->config; in addr_range_show() local
370 idx = config->addr_idx; in addr_range_show()
375 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_show()
376 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_show()
377 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_show()
378 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_show()
383 val1 = config->addr_val[idx]; in addr_range_show()
384 val2 = config->addr_val[idx + 1]; in addr_range_show()
397 struct etm_config *config = &drvdata->config; in addr_range_store() local
406 idx = config->addr_idx; in addr_range_store()
411 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_store()
412 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_store()
413 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_store()
414 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_store()
419 config->addr_val[idx] = val1; in addr_range_store()
420 config->addr_type[idx] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
421 config->addr_val[idx + 1] = val2; in addr_range_store()
422 config->addr_type[idx + 1] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
423 config->enable_ctrl1 |= (1 << (idx/2)); in addr_range_store()
436 struct etm_config *config = &drvdata->config; in addr_start_show() local
439 idx = config->addr_idx; in addr_start_show()
440 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_show()
441 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_show()
446 val = config->addr_val[idx]; in addr_start_show()
460 struct etm_config *config = &drvdata->config; in addr_start_store() local
467 idx = config->addr_idx; in addr_start_store()
468 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_store()
469 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_store()
474 config->addr_val[idx] = val; in addr_start_store()
475 config->addr_type[idx] = ETM_ADDR_TYPE_START; in addr_start_store()
476 config->startstop_ctrl |= (1 << idx); in addr_start_store()
477 config->enable_ctrl1 |= ETMTECR1_START_STOP; in addr_start_store()
490 struct etm_config *config = &drvdata->config; in addr_stop_show() local
493 idx = config->addr_idx; in addr_stop_show()
494 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_show()
495 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_show()
500 val = config->addr_val[idx]; in addr_stop_show()
514 struct etm_config *config = &drvdata->config; in addr_stop_store() local
521 idx = config->addr_idx; in addr_stop_store()
522 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_store()
523 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_store()
528 config->addr_val[idx] = val; in addr_stop_store()
529 config->addr_type[idx] = ETM_ADDR_TYPE_STOP; in addr_stop_store()
530 config->startstop_ctrl |= (1 << (idx + 16)); in addr_stop_store()
531 config->enable_ctrl1 |= ETMTECR1_START_STOP; in addr_stop_store()
543 struct etm_config *config = &drvdata->config; in addr_acctype_show() local
546 val = config->addr_acctype[config->addr_idx]; in addr_acctype_show()
559 struct etm_config *config = &drvdata->config; in addr_acctype_store() local
566 config->addr_acctype[config->addr_idx] = val; in addr_acctype_store()
578 struct etm_config *config = &drvdata->config; in cntr_idx_show() local
580 val = config->cntr_idx; in cntr_idx_show()
591 struct etm_config *config = &drvdata->config; in cntr_idx_store() local
604 config->cntr_idx = val; in cntr_idx_store()
616 struct etm_config *config = &drvdata->config; in cntr_rld_val_show() local
619 val = config->cntr_rld_val[config->cntr_idx]; in cntr_rld_val_show()
632 struct etm_config *config = &drvdata->config; in cntr_rld_val_store() local
639 config->cntr_rld_val[config->cntr_idx] = val; in cntr_rld_val_store()
651 struct etm_config *config = &drvdata->config; in cntr_event_show() local
654 val = config->cntr_event[config->cntr_idx]; in cntr_event_show()
667 struct etm_config *config = &drvdata->config; in cntr_event_store() local
674 config->cntr_event[config->cntr_idx] = val & ETM_EVENT_MASK; in cntr_event_store()
686 struct etm_config *config = &drvdata->config; in cntr_rld_event_show() local
689 val = config->cntr_rld_event[config->cntr_idx]; in cntr_rld_event_show()
702 struct etm_config *config = &drvdata->config; in cntr_rld_event_store() local
709 config->cntr_rld_event[config->cntr_idx] = val & ETM_EVENT_MASK; in cntr_rld_event_store()
722 struct etm_config *config = &drvdata->config; in cntr_val_show() local
728 i, config->cntr_val[i]); in cntr_val_show()
748 struct etm_config *config = &drvdata->config; in cntr_val_store() local
755 config->cntr_val[config->cntr_idx] = val; in cntr_val_store()
767 struct etm_config *config = &drvdata->config; in seq_12_event_show() local
769 val = config->seq_12_event; in seq_12_event_show()
780 struct etm_config *config = &drvdata->config; in seq_12_event_store() local
786 config->seq_12_event = val & ETM_EVENT_MASK; in seq_12_event_store()
796 struct etm_config *config = &drvdata->config; in seq_21_event_show() local
798 val = config->seq_21_event; in seq_21_event_show()
809 struct etm_config *config = &drvdata->config; in seq_21_event_store() local
815 config->seq_21_event = val & ETM_EVENT_MASK; in seq_21_event_store()
825 struct etm_config *config = &drvdata->config; in seq_23_event_show() local
827 val = config->seq_23_event; in seq_23_event_show()
838 struct etm_config *config = &drvdata->config; in seq_23_event_store() local
844 config->seq_23_event = val & ETM_EVENT_MASK; in seq_23_event_store()
854 struct etm_config *config = &drvdata->config; in seq_31_event_show() local
856 val = config->seq_31_event; in seq_31_event_show()
867 struct etm_config *config = &drvdata->config; in seq_31_event_store() local
873 config->seq_31_event = val & ETM_EVENT_MASK; in seq_31_event_store()
883 struct etm_config *config = &drvdata->config; in seq_32_event_show() local
885 val = config->seq_32_event; in seq_32_event_show()
896 struct etm_config *config = &drvdata->config; in seq_32_event_store() local
902 config->seq_32_event = val & ETM_EVENT_MASK; in seq_32_event_store()
912 struct etm_config *config = &drvdata->config; in seq_13_event_show() local
914 val = config->seq_13_event; in seq_13_event_show()
925 struct etm_config *config = &drvdata->config; in seq_13_event_store() local
931 config->seq_13_event = val & ETM_EVENT_MASK; in seq_13_event_store()
941 struct etm_config *config = &drvdata->config; in seq_curr_state_show() local
944 val = config->seq_curr_state; in seq_curr_state_show()
968 struct etm_config *config = &drvdata->config; in seq_curr_state_store() local
977 config->seq_curr_state = val; in seq_curr_state_store()
988 struct etm_config *config = &drvdata->config; in ctxid_idx_show() local
990 val = config->ctxid_idx; in ctxid_idx_show()
1001 struct etm_config *config = &drvdata->config; in ctxid_idx_store() local
1015 config->ctxid_idx = val; in ctxid_idx_store()
1027 struct etm_config *config = &drvdata->config; in ctxid_pid_show() local
1037 val = config->ctxid_pid[config->ctxid_idx]; in ctxid_pid_show()
1050 struct etm_config *config = &drvdata->config; in ctxid_pid_store() local
1069 config->ctxid_pid[config->ctxid_idx] = pid; in ctxid_pid_store()
1081 struct etm_config *config = &drvdata->config; in ctxid_mask_show() local
1090 val = config->ctxid_mask; in ctxid_mask_show()
1101 struct etm_config *config = &drvdata->config; in ctxid_mask_store() local
1114 config->ctxid_mask = val; in ctxid_mask_store()
1124 struct etm_config *config = &drvdata->config; in sync_freq_show() local
1126 val = config->sync_freq; in sync_freq_show()
1137 struct etm_config *config = &drvdata->config; in sync_freq_store() local
1143 config->sync_freq = val & ETM_SYNC_MASK; in sync_freq_store()
1153 struct etm_config *config = &drvdata->config; in timestamp_event_show() local
1155 val = config->timestamp_event; in timestamp_event_show()
1166 struct etm_config *config = &drvdata->config; in timestamp_event_store() local
1172 config->timestamp_event = val & ETM_EVENT_MASK; in timestamp_event_store()