Lines Matching refs:trace_ctrl

186 	hisi_ptt->trace_ctrl.started = false;  in hisi_ptt_trace_end()
191 struct hisi_ptt_trace_ctrl *ctrl = &hisi_ptt->trace_ctrl; in hisi_ptt_trace_start()
215 hisi_ptt->trace_ctrl.buf_index = 0; in hisi_ptt_trace_start()
229 val |= FIELD_PREP(HISI_PTT_TRACE_CTRL_TARGET_SEL, hisi_ptt->trace_ctrl.filter); in hisi_ptt_trace_start()
230 if (!hisi_ptt->trace_ctrl.is_port) in hisi_ptt_trace_start()
242 struct hisi_ptt_trace_ctrl *ctrl = &hisi_ptt->trace_ctrl; in hisi_ptt_update_aux()
319 hisi_ptt->trace_ctrl.buf_index = (buf_idx + 1) % HISI_PTT_TRACE_BUF_CNT; in hisi_ptt_isr()
699 struct hisi_ptt_trace_ctrl *ctrl = &hisi_ptt->trace_ctrl; in hisi_ptt_config_trace_buf()
770 hisi_ptt->trace_ctrl.on_cpu = -1; in hisi_ptt_init_ctrls()
946 hisi_ptt->trace_ctrl.is_port = FIELD_GET(HISI_PTT_PMU_FILTER_IS_PORT, config); in hisi_ptt_trace_valid_filter()
959 if (!hisi_ptt->trace_ctrl.is_port) { in hisi_ptt_trace_valid_filter()
976 struct hisi_ptt_trace_ctrl *ctrl = &hisi_ptt->trace_ctrl; in hisi_ptt_pmu_init_configs()
980 hisi_ptt->trace_ctrl.filter = val; in hisi_ptt_pmu_init_configs()
1082 struct perf_output_handle *handle = &hisi_ptt->trace_ctrl.handle; in hisi_ptt_pmu_start()
1093 if (hisi_ptt->trace_ctrl.started) { in hisi_ptt_pmu_start()
1108 hisi_ptt->trace_ctrl.on_cpu = cpu; in hisi_ptt_pmu_start()
1143 if (hisi_ptt->trace_ctrl.started) { in hisi_ptt_pmu_stop()
1149 hisi_ptt_update_aux(hisi_ptt, hisi_ptt->trace_ctrl.buf_index, true); in hisi_ptt_pmu_stop()
1386 src = hisi_ptt->trace_ctrl.on_cpu; in hisi_ptt_cpu_teardown()
1389 if (!hisi_ptt->trace_ctrl.started || src != cpu) in hisi_ptt_cpu_teardown()
1407 hisi_ptt->trace_ctrl.on_cpu = target; in hisi_ptt_cpu_teardown()