Lines Matching refs:drvdata

17 	struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent);  in nr_addr_cmp_show()  local
19 val = drvdata->nr_addr_cmp; in nr_addr_cmp_show()
27 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in nr_cntr_show() local
29 val = drvdata->nr_cntr; in nr_cntr_show()
38 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in nr_ctxid_cmp_show() local
40 val = drvdata->nr_ctxid_cmp; in nr_ctxid_cmp_show()
49 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in etmsr_show() local
52 spin_lock_irqsave(&drvdata->spinlock, flags); in etmsr_show()
53 CS_UNLOCK(drvdata->base); in etmsr_show()
55 val = etm_readl(drvdata, ETMSR); in etmsr_show()
57 CS_LOCK(drvdata->base); in etmsr_show()
58 spin_unlock_irqrestore(&drvdata->spinlock, flags); in etmsr_show()
71 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in reset_store() local
72 struct etm_config *config = &drvdata->config; in reset_store()
79 spin_lock(&drvdata->spinlock); in reset_store()
83 for (i = 0; i < drvdata->nr_addr_cmp; i++) { in reset_store()
88 spin_unlock(&drvdata->spinlock); in reset_store()
99 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in mode_show() local
100 struct etm_config *config = &drvdata->config; in mode_show()
112 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in mode_store() local
113 struct etm_config *config = &drvdata->config; in mode_store()
119 spin_lock(&drvdata->spinlock); in mode_store()
133 if (!(drvdata->etmccr & ETMCCR_FIFOFULL)) { in mode_store()
143 if (!(drvdata->etmccer & ETMCCER_TIMESTAMP)) { in mode_store()
170 spin_unlock(&drvdata->spinlock); in mode_store()
175 spin_unlock(&drvdata->spinlock); in mode_store()
184 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in trigger_event_show() local
185 struct etm_config *config = &drvdata->config; in trigger_event_show()
197 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in trigger_event_store() local
198 struct etm_config *config = &drvdata->config; in trigger_event_store()
214 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in enable_event_show() local
215 struct etm_config *config = &drvdata->config; in enable_event_show()
227 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in enable_event_store() local
228 struct etm_config *config = &drvdata->config; in enable_event_store()
244 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in fifofull_level_show() local
245 struct etm_config *config = &drvdata->config; in fifofull_level_show()
257 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in fifofull_level_store() local
258 struct etm_config *config = &drvdata->config; in fifofull_level_store()
274 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in addr_idx_show() local
275 struct etm_config *config = &drvdata->config; in addr_idx_show()
287 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in addr_idx_store() local
288 struct etm_config *config = &drvdata->config; in addr_idx_store()
294 if (val >= drvdata->nr_addr_cmp) in addr_idx_store()
301 spin_lock(&drvdata->spinlock); in addr_idx_store()
303 spin_unlock(&drvdata->spinlock); in addr_idx_store()
314 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in addr_single_show() local
315 struct etm_config *config = &drvdata->config; in addr_single_show()
317 spin_lock(&drvdata->spinlock); in addr_single_show()
321 spin_unlock(&drvdata->spinlock); in addr_single_show()
326 spin_unlock(&drvdata->spinlock); in addr_single_show()
338 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in addr_single_store() local
339 struct etm_config *config = &drvdata->config; in addr_single_store()
345 spin_lock(&drvdata->spinlock); in addr_single_store()
349 spin_unlock(&drvdata->spinlock); in addr_single_store()
355 spin_unlock(&drvdata->spinlock); in addr_single_store()
366 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in addr_range_show() local
367 struct etm_config *config = &drvdata->config; in addr_range_show()
369 spin_lock(&drvdata->spinlock); in addr_range_show()
372 spin_unlock(&drvdata->spinlock); in addr_range_show()
379 spin_unlock(&drvdata->spinlock); in addr_range_show()
385 spin_unlock(&drvdata->spinlock); in addr_range_show()
396 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in addr_range_store() local
397 struct etm_config *config = &drvdata->config; in addr_range_store()
405 spin_lock(&drvdata->spinlock); in addr_range_store()
408 spin_unlock(&drvdata->spinlock); in addr_range_store()
415 spin_unlock(&drvdata->spinlock); in addr_range_store()
424 spin_unlock(&drvdata->spinlock); in addr_range_store()
435 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in addr_start_show() local
436 struct etm_config *config = &drvdata->config; in addr_start_show()
438 spin_lock(&drvdata->spinlock); in addr_start_show()
442 spin_unlock(&drvdata->spinlock); in addr_start_show()
447 spin_unlock(&drvdata->spinlock); in addr_start_show()
459 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in addr_start_store() local
460 struct etm_config *config = &drvdata->config; in addr_start_store()
466 spin_lock(&drvdata->spinlock); in addr_start_store()
470 spin_unlock(&drvdata->spinlock); in addr_start_store()
478 spin_unlock(&drvdata->spinlock); in addr_start_store()
489 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in addr_stop_show() local
490 struct etm_config *config = &drvdata->config; in addr_stop_show()
492 spin_lock(&drvdata->spinlock); in addr_stop_show()
496 spin_unlock(&drvdata->spinlock); in addr_stop_show()
501 spin_unlock(&drvdata->spinlock); in addr_stop_show()
513 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in addr_stop_store() local
514 struct etm_config *config = &drvdata->config; in addr_stop_store()
520 spin_lock(&drvdata->spinlock); in addr_stop_store()
524 spin_unlock(&drvdata->spinlock); in addr_stop_store()
532 spin_unlock(&drvdata->spinlock); in addr_stop_store()
542 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in addr_acctype_show() local
543 struct etm_config *config = &drvdata->config; in addr_acctype_show()
545 spin_lock(&drvdata->spinlock); in addr_acctype_show()
547 spin_unlock(&drvdata->spinlock); in addr_acctype_show()
558 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in addr_acctype_store() local
559 struct etm_config *config = &drvdata->config; in addr_acctype_store()
565 spin_lock(&drvdata->spinlock); in addr_acctype_store()
567 spin_unlock(&drvdata->spinlock); in addr_acctype_store()
577 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in cntr_idx_show() local
578 struct etm_config *config = &drvdata->config; in cntr_idx_show()
590 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in cntr_idx_store() local
591 struct etm_config *config = &drvdata->config; in cntr_idx_store()
597 if (val >= drvdata->nr_cntr) in cntr_idx_store()
603 spin_lock(&drvdata->spinlock); in cntr_idx_store()
605 spin_unlock(&drvdata->spinlock); in cntr_idx_store()
615 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in cntr_rld_val_show() local
616 struct etm_config *config = &drvdata->config; in cntr_rld_val_show()
618 spin_lock(&drvdata->spinlock); in cntr_rld_val_show()
620 spin_unlock(&drvdata->spinlock); in cntr_rld_val_show()
631 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in cntr_rld_val_store() local
632 struct etm_config *config = &drvdata->config; in cntr_rld_val_store()
638 spin_lock(&drvdata->spinlock); in cntr_rld_val_store()
640 spin_unlock(&drvdata->spinlock); in cntr_rld_val_store()
650 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in cntr_event_show() local
651 struct etm_config *config = &drvdata->config; in cntr_event_show()
653 spin_lock(&drvdata->spinlock); in cntr_event_show()
655 spin_unlock(&drvdata->spinlock); in cntr_event_show()
666 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in cntr_event_store() local
667 struct etm_config *config = &drvdata->config; in cntr_event_store()
673 spin_lock(&drvdata->spinlock); in cntr_event_store()
675 spin_unlock(&drvdata->spinlock); in cntr_event_store()
685 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in cntr_rld_event_show() local
686 struct etm_config *config = &drvdata->config; in cntr_rld_event_show()
688 spin_lock(&drvdata->spinlock); in cntr_rld_event_show()
690 spin_unlock(&drvdata->spinlock); in cntr_rld_event_show()
701 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in cntr_rld_event_store() local
702 struct etm_config *config = &drvdata->config; in cntr_rld_event_store()
708 spin_lock(&drvdata->spinlock); in cntr_rld_event_store()
710 spin_unlock(&drvdata->spinlock); in cntr_rld_event_store()
721 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in cntr_val_show() local
722 struct etm_config *config = &drvdata->config; in cntr_val_show()
724 if (!local_read(&drvdata->mode)) { in cntr_val_show()
725 spin_lock(&drvdata->spinlock); in cntr_val_show()
726 for (i = 0; i < drvdata->nr_cntr; i++) in cntr_val_show()
729 spin_unlock(&drvdata->spinlock); in cntr_val_show()
733 for (i = 0; i < drvdata->nr_cntr; i++) { in cntr_val_show()
734 val = etm_readl(drvdata, ETMCNTVRn(i)); in cntr_val_show()
747 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in cntr_val_store() local
748 struct etm_config *config = &drvdata->config; in cntr_val_store()
754 spin_lock(&drvdata->spinlock); in cntr_val_store()
756 spin_unlock(&drvdata->spinlock); in cntr_val_store()
766 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in seq_12_event_show() local
767 struct etm_config *config = &drvdata->config; in seq_12_event_show()
779 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in seq_12_event_store() local
780 struct etm_config *config = &drvdata->config; in seq_12_event_store()
795 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in seq_21_event_show() local
796 struct etm_config *config = &drvdata->config; in seq_21_event_show()
808 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in seq_21_event_store() local
809 struct etm_config *config = &drvdata->config; in seq_21_event_store()
824 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in seq_23_event_show() local
825 struct etm_config *config = &drvdata->config; in seq_23_event_show()
837 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in seq_23_event_store() local
838 struct etm_config *config = &drvdata->config; in seq_23_event_store()
853 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in seq_31_event_show() local
854 struct etm_config *config = &drvdata->config; in seq_31_event_show()
866 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in seq_31_event_store() local
867 struct etm_config *config = &drvdata->config; in seq_31_event_store()
882 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in seq_32_event_show() local
883 struct etm_config *config = &drvdata->config; in seq_32_event_show()
895 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in seq_32_event_store() local
896 struct etm_config *config = &drvdata->config; in seq_32_event_store()
911 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in seq_13_event_show() local
912 struct etm_config *config = &drvdata->config; in seq_13_event_show()
924 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in seq_13_event_store() local
925 struct etm_config *config = &drvdata->config; in seq_13_event_store()
940 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in seq_curr_state_show() local
941 struct etm_config *config = &drvdata->config; in seq_curr_state_show()
943 if (!local_read(&drvdata->mode)) { in seq_curr_state_show()
949 spin_lock_irqsave(&drvdata->spinlock, flags); in seq_curr_state_show()
951 CS_UNLOCK(drvdata->base); in seq_curr_state_show()
952 val = (etm_readl(drvdata, ETMSQR) & ETM_SQR_MASK); in seq_curr_state_show()
953 CS_LOCK(drvdata->base); in seq_curr_state_show()
955 spin_unlock_irqrestore(&drvdata->spinlock, flags); in seq_curr_state_show()
967 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in seq_curr_state_store() local
968 struct etm_config *config = &drvdata->config; in seq_curr_state_store()
987 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in ctxid_idx_show() local
988 struct etm_config *config = &drvdata->config; in ctxid_idx_show()
1000 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in ctxid_idx_store() local
1001 struct etm_config *config = &drvdata->config; in ctxid_idx_store()
1007 if (val >= drvdata->nr_ctxid_cmp) in ctxid_idx_store()
1014 spin_lock(&drvdata->spinlock); in ctxid_idx_store()
1016 spin_unlock(&drvdata->spinlock); in ctxid_idx_store()
1026 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in ctxid_pid_show() local
1027 struct etm_config *config = &drvdata->config; in ctxid_pid_show()
1036 spin_lock(&drvdata->spinlock); in ctxid_pid_show()
1038 spin_unlock(&drvdata->spinlock); in ctxid_pid_show()
1049 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in ctxid_pid_store() local
1050 struct etm_config *config = &drvdata->config; in ctxid_pid_store()
1068 spin_lock(&drvdata->spinlock); in ctxid_pid_store()
1070 spin_unlock(&drvdata->spinlock); in ctxid_pid_store()
1080 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in ctxid_mask_show() local
1081 struct etm_config *config = &drvdata->config; in ctxid_mask_show()
1100 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in ctxid_mask_store() local
1101 struct etm_config *config = &drvdata->config; in ctxid_mask_store()
1123 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in sync_freq_show() local
1124 struct etm_config *config = &drvdata->config; in sync_freq_show()
1136 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in sync_freq_store() local
1137 struct etm_config *config = &drvdata->config; in sync_freq_store()
1152 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in timestamp_event_show() local
1153 struct etm_config *config = &drvdata->config; in timestamp_event_show()
1165 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in timestamp_event_store() local
1166 struct etm_config *config = &drvdata->config; in timestamp_event_store()
1181 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in cpu_show() local
1183 val = drvdata->cpu; in cpu_show()
1193 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in traceid_show() local
1195 val = etm_get_trace_id(drvdata); in traceid_show()
1206 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in traceid_store() local
1212 drvdata->traceid = val & ETM_TRACEID_MASK; in traceid_store()