Lines Matching refs: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()
101 struct etm_config *config = &drvdata->config; in mode_show() local
103 val = config->mode; in mode_show()
114 struct etm_config *config = &drvdata->config; in mode_store() local
121 config->mode = val & ETM_MODE_ALL; in mode_store()
123 if (config->mode & ETM_MODE_EXCLUDE) in mode_store()
124 config->enable_ctrl1 |= ETMTECR1_INC_EXC; in mode_store()
126 config->enable_ctrl1 &= ~ETMTECR1_INC_EXC; in mode_store()
128 if (config->mode & ETM_MODE_CYCACC) in mode_store()
129 config->ctrl |= ETMCR_CYC_ACC; in mode_store()
131 config->ctrl &= ~ETMCR_CYC_ACC; in mode_store()
133 if (config->mode & ETM_MODE_STALL) { in mode_store()
139 config->ctrl |= ETMCR_STALL_MODE; in mode_store()
141 config->ctrl &= ~ETMCR_STALL_MODE; in mode_store()
143 if (config->mode & ETM_MODE_TIMESTAMP) { in mode_store()
149 config->ctrl |= ETMCR_TIMESTAMP_EN; in mode_store()
151 config->ctrl &= ~ETMCR_TIMESTAMP_EN; in mode_store()
153 if (config->mode & ETM_MODE_CTXID) in mode_store()
154 config->ctrl |= ETMCR_CTXID_SIZE; in mode_store()
156 config->ctrl &= ~ETMCR_CTXID_SIZE; in mode_store()
158 if (config->mode & ETM_MODE_BBROAD) in mode_store()
159 config->ctrl |= ETMCR_BRANCH_BROADCAST; in mode_store()
161 config->ctrl &= ~ETMCR_BRANCH_BROADCAST; in mode_store()
163 if (config->mode & ETM_MODE_RET_STACK) in mode_store()
164 config->ctrl |= ETMCR_RETURN_STACK; in mode_store()
166 config->ctrl &= ~ETMCR_RETURN_STACK; in mode_store()
168 if (config->mode & (ETM_MODE_EXCL_KERN | ETM_MODE_EXCL_USER)) in mode_store()
169 etm_config_trace_mode(config); in mode_store()
186 struct etm_config *config = &drvdata->config; in trigger_event_show() local
188 val = config->trigger_event; in trigger_event_show()
199 struct etm_config *config = &drvdata->config; in trigger_event_store() local
205 config->trigger_event = val & ETM_EVENT_MASK; in trigger_event_store()
216 struct etm_config *config = &drvdata->config; in enable_event_show() local
218 val = config->enable_event; in enable_event_show()
229 struct etm_config *config = &drvdata->config; in enable_event_store() local
235 config->enable_event = val & ETM_EVENT_MASK; in enable_event_store()
246 struct etm_config *config = &drvdata->config; in fifofull_level_show() local
248 val = config->fifofull_level; in fifofull_level_show()
259 struct etm_config *config = &drvdata->config; in fifofull_level_store() local
265 config->fifofull_level = val; in fifofull_level_store()
276 struct etm_config *config = &drvdata->config; in addr_idx_show() local
278 val = config->addr_idx; in addr_idx_show()
289 struct etm_config *config = &drvdata->config; in addr_idx_store() local
303 config->addr_idx = val; in addr_idx_store()
316 struct etm_config *config = &drvdata->config; in addr_single_show() local
319 idx = config->addr_idx; in addr_single_show()
320 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_show()
321 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_show()
326 val = config->addr_val[idx]; in addr_single_show()
340 struct etm_config *config = &drvdata->config; in addr_single_store() local
347 idx = config->addr_idx; in addr_single_store()
348 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_store()
349 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_store()
354 config->addr_val[idx] = val; in addr_single_store()
355 config->addr_type[idx] = ETM_ADDR_TYPE_SINGLE; in addr_single_store()
368 struct etm_config *config = &drvdata->config; in addr_range_show() local
371 idx = config->addr_idx; in addr_range_show()
376 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_show()
377 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_show()
378 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_show()
379 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_show()
384 val1 = config->addr_val[idx]; in addr_range_show()
385 val2 = config->addr_val[idx + 1]; in addr_range_show()
398 struct etm_config *config = &drvdata->config; in addr_range_store() local
407 idx = config->addr_idx; in addr_range_store()
412 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_store()
413 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_store()
414 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_store()
415 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_store()
420 config->addr_val[idx] = val1; in addr_range_store()
421 config->addr_type[idx] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
422 config->addr_val[idx + 1] = val2; in addr_range_store()
423 config->addr_type[idx + 1] = ETM_ADDR_TYPE_RANGE; in addr_range_store()
424 config->enable_ctrl1 |= (1 << (idx/2)); in addr_range_store()
437 struct etm_config *config = &drvdata->config; in addr_start_show() local
440 idx = config->addr_idx; in addr_start_show()
441 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_show()
442 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_show()
447 val = config->addr_val[idx]; in addr_start_show()
461 struct etm_config *config = &drvdata->config; in addr_start_store() local
468 idx = config->addr_idx; in addr_start_store()
469 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_start_store()
470 config->addr_type[idx] == ETM_ADDR_TYPE_START)) { in addr_start_store()
475 config->addr_val[idx] = val; in addr_start_store()
476 config->addr_type[idx] = ETM_ADDR_TYPE_START; in addr_start_store()
477 config->startstop_ctrl |= (1 << idx); in addr_start_store()
478 config->enable_ctrl1 |= ETMTECR1_START_STOP; in addr_start_store()
491 struct etm_config *config = &drvdata->config; in addr_stop_show() local
494 idx = config->addr_idx; in addr_stop_show()
495 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_show()
496 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_show()
501 val = config->addr_val[idx]; in addr_stop_show()
515 struct etm_config *config = &drvdata->config; in addr_stop_store() local
522 idx = config->addr_idx; in addr_stop_store()
523 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_stop_store()
524 config->addr_type[idx] == ETM_ADDR_TYPE_STOP)) { in addr_stop_store()
529 config->addr_val[idx] = val; in addr_stop_store()
530 config->addr_type[idx] = ETM_ADDR_TYPE_STOP; in addr_stop_store()
531 config->startstop_ctrl |= (1 << (idx + 16)); in addr_stop_store()
532 config->enable_ctrl1 |= ETMTECR1_START_STOP; in addr_stop_store()
544 struct etm_config *config = &drvdata->config; in addr_acctype_show() local
547 val = config->addr_acctype[config->addr_idx]; in addr_acctype_show()
560 struct etm_config *config = &drvdata->config; in addr_acctype_store() local
567 config->addr_acctype[config->addr_idx] = val; in addr_acctype_store()
579 struct etm_config *config = &drvdata->config; in cntr_idx_show() local
581 val = config->cntr_idx; in cntr_idx_show()
592 struct etm_config *config = &drvdata->config; in cntr_idx_store() local
605 config->cntr_idx = val; in cntr_idx_store()
617 struct etm_config *config = &drvdata->config; in cntr_rld_val_show() local
620 val = config->cntr_rld_val[config->cntr_idx]; in cntr_rld_val_show()
633 struct etm_config *config = &drvdata->config; in cntr_rld_val_store() local
640 config->cntr_rld_val[config->cntr_idx] = val; in cntr_rld_val_store()
652 struct etm_config *config = &drvdata->config; in cntr_event_show() local
655 val = config->cntr_event[config->cntr_idx]; in cntr_event_show()
668 struct etm_config *config = &drvdata->config; in cntr_event_store() local
675 config->cntr_event[config->cntr_idx] = val & ETM_EVENT_MASK; in cntr_event_store()
687 struct etm_config *config = &drvdata->config; in cntr_rld_event_show() local
690 val = config->cntr_rld_event[config->cntr_idx]; in cntr_rld_event_show()
703 struct etm_config *config = &drvdata->config; in cntr_rld_event_store() local
710 config->cntr_rld_event[config->cntr_idx] = val & ETM_EVENT_MASK; in cntr_rld_event_store()
723 struct etm_config *config = &drvdata->config; in cntr_val_show() local
729 i, config->cntr_val[i]); in cntr_val_show()
749 struct etm_config *config = &drvdata->config; in cntr_val_store() local
756 config->cntr_val[config->cntr_idx] = val; in cntr_val_store()
768 struct etm_config *config = &drvdata->config; in seq_12_event_show() local
770 val = config->seq_12_event; in seq_12_event_show()
781 struct etm_config *config = &drvdata->config; in seq_12_event_store() local
787 config->seq_12_event = val & ETM_EVENT_MASK; in seq_12_event_store()
797 struct etm_config *config = &drvdata->config; in seq_21_event_show() local
799 val = config->seq_21_event; in seq_21_event_show()
810 struct etm_config *config = &drvdata->config; in seq_21_event_store() local
816 config->seq_21_event = val & ETM_EVENT_MASK; in seq_21_event_store()
826 struct etm_config *config = &drvdata->config; in seq_23_event_show() local
828 val = config->seq_23_event; in seq_23_event_show()
839 struct etm_config *config = &drvdata->config; in seq_23_event_store() local
845 config->seq_23_event = val & ETM_EVENT_MASK; in seq_23_event_store()
855 struct etm_config *config = &drvdata->config; in seq_31_event_show() local
857 val = config->seq_31_event; in seq_31_event_show()
868 struct etm_config *config = &drvdata->config; in seq_31_event_store() local
874 config->seq_31_event = val & ETM_EVENT_MASK; in seq_31_event_store()
884 struct etm_config *config = &drvdata->config; in seq_32_event_show() local
886 val = config->seq_32_event; in seq_32_event_show()
897 struct etm_config *config = &drvdata->config; in seq_32_event_store() local
903 config->seq_32_event = val & ETM_EVENT_MASK; in seq_32_event_store()
913 struct etm_config *config = &drvdata->config; in seq_13_event_show() local
915 val = config->seq_13_event; in seq_13_event_show()
926 struct etm_config *config = &drvdata->config; in seq_13_event_store() local
932 config->seq_13_event = val & ETM_EVENT_MASK; in seq_13_event_store()
942 struct etm_config *config = &drvdata->config; in seq_curr_state_show() local
945 val = config->seq_curr_state; in seq_curr_state_show()
969 struct etm_config *config = &drvdata->config; in seq_curr_state_store() local
978 config->seq_curr_state = val; in seq_curr_state_store()
989 struct etm_config *config = &drvdata->config; in ctxid_idx_show() local
991 val = config->ctxid_idx; in ctxid_idx_show()
1002 struct etm_config *config = &drvdata->config; in ctxid_idx_store() local
1016 config->ctxid_idx = val; in ctxid_idx_store()
1028 struct etm_config *config = &drvdata->config; in ctxid_pid_show() local
1038 val = config->ctxid_pid[config->ctxid_idx]; in ctxid_pid_show()
1051 struct etm_config *config = &drvdata->config; in ctxid_pid_store() local
1070 config->ctxid_pid[config->ctxid_idx] = pid; in ctxid_pid_store()
1082 struct etm_config *config = &drvdata->config; in ctxid_mask_show() local
1091 val = config->ctxid_mask; in ctxid_mask_show()
1102 struct etm_config *config = &drvdata->config; in ctxid_mask_store() local
1115 config->ctxid_mask = val; in ctxid_mask_store()
1125 struct etm_config *config = &drvdata->config; in sync_freq_show() local
1127 val = config->sync_freq; in sync_freq_show()
1138 struct etm_config *config = &drvdata->config; in sync_freq_store() local
1144 config->sync_freq = val & ETM_SYNC_MASK; in sync_freq_store()
1154 struct etm_config *config = &drvdata->config; in timestamp_event_show() local
1156 val = config->timestamp_event; in timestamp_event_show()
1167 struct etm_config *config = &drvdata->config; in timestamp_event_store() local
1173 config->timestamp_event = val & ETM_EVENT_MASK; in timestamp_event_store()