Lines Matching refs:ce_hist
174 struct ce_desc_hist *ce_hist; in hif_display_latest_desc_hist() local
181 ce_hist = &scn->hif_ce_desc_hist; in hif_display_latest_desc_hist()
184 if (!ce_hist->enable[i + HIF_CE_MAX_LATEST_HIST]) in hif_display_latest_desc_hist()
188 evt = &ce_hist->latest_evts[i][j]; in hif_display_latest_desc_hist()
198 void hif_record_latest_evt(struct ce_desc_hist *ce_hist, in hif_record_latest_evt() argument
209 latest_evts = &ce_hist->latest_evts[ce_id - HIF_CE_MAX_LATEST_HIST][idx]; in hif_record_latest_evt()
270 struct ce_desc_hist *ce_hist = &scn->hif_ce_desc_hist; in hif_record_ce_desc_event() local
274 hist_ev = (struct hif_ce_desc_event *)ce_hist->hist_ev[ce_id]; in hif_record_ce_desc_event()
281 if (!ce_hist->enable[ce_id]) in hif_record_ce_desc_event()
288 &ce_hist->history_index[ce_id], HIF_CE_HISTORY_MAX); in hif_record_ce_desc_event()
309 if (ce_hist->data_enable[ce_id]) in hif_record_ce_desc_event()
312 hif_record_latest_evt(ce_hist, type, ce_id, event->time, 0, 0); in hif_record_ce_desc_event()
326 struct ce_desc_hist *ce_hist = &scn->hif_ce_desc_hist; in ce_init_ce_desc_event_log() local
327 qdf_atomic_init(&ce_hist->history_index[ce_id]); in ce_init_ce_desc_event_log()
328 qdf_mutex_create(&ce_hist->ce_dbg_datamem_lock[ce_id]); in ce_init_ce_desc_event_log()
339 struct ce_desc_hist *ce_hist = &scn->hif_ce_desc_hist; in ce_deinit_ce_desc_event_log() local
341 qdf_mutex_destroy(&ce_hist->ce_dbg_datamem_lock[ce_id]); in ce_deinit_ce_desc_event_log()
1809 struct ce_desc_hist *ce_hist = NULL; in hif_dump_desc_event() local
1815 ce_hist = &scn->hif_ce_desc_hist; in hif_dump_desc_event()
1817 if (ce_hist->hist_id >= CE_COUNT_MAX || in hif_dump_desc_event()
1818 ce_hist->hist_index >= HIF_CE_HISTORY_MAX) { in hif_dump_desc_event()
1824 (struct hif_ce_desc_event *)ce_hist->hist_ev[ce_hist->hist_id]; in hif_dump_desc_event()
1831 event = &hist_ev[ce_hist->hist_index]; in hif_dump_desc_event()
1837 secs, usecs, ce_hist->hist_id, in hif_dump_desc_event()
1854 if (ce_hist->data_enable[ce_hist->hist_id]) in hif_dump_desc_event()
1880 struct ce_desc_hist *ce_hist = NULL; in hif_input_desc_trace_buf_index() local
1885 ce_hist = &scn->hif_ce_desc_hist; in hif_input_desc_trace_buf_index()
1892 if (sscanf(buf, "%u %u", (unsigned int *)&ce_hist->hist_id, in hif_input_desc_trace_buf_index()
1893 (unsigned int *)&ce_hist->hist_index) != 2) { in hif_input_desc_trace_buf_index()
1897 if ((ce_hist->hist_id >= CE_COUNT_MAX) || in hif_input_desc_trace_buf_index()
1898 (ce_hist->hist_index >= HIF_CE_HISTORY_MAX)) { in hif_input_desc_trace_buf_index()
1923 struct ce_desc_hist *ce_hist = NULL; in hif_ce_en_desc_hist() local
1930 ce_hist = &scn->hif_ce_desc_hist; in hif_ce_en_desc_hist()
1953 if (!ce_hist->hist_ev[ce_id]) in hif_ce_en_desc_hist()
1956 qdf_mutex_acquire(&ce_hist->ce_dbg_datamem_lock[ce_id]); in hif_ce_en_desc_hist()
1958 if (ce_hist->data_enable[ce_id] == 1) { in hif_ce_en_desc_hist()
1963 ce_hist->data_enable[ce_id] = 0; in hif_ce_en_desc_hist()
1966 ce_hist->data_enable[ce_id] = 1; in hif_ce_en_desc_hist()
1969 if (ce_hist->data_enable[ce_id] == 0) { in hif_ce_en_desc_hist()
1972 ce_hist->data_enable[ce_id] = 0; in hif_ce_en_desc_hist()
1976 qdf_mutex_release(&ce_hist->ce_dbg_datamem_lock[ce_id]); in hif_ce_en_desc_hist()
1995 struct ce_desc_hist *ce_hist = NULL; in hif_disp_ce_enable_desc_data_hist() local
2000 ce_hist = &scn->hif_ce_desc_hist; in hif_disp_ce_enable_desc_data_hist()
2004 ce_id, ce_hist->data_enable[ce_id]); in hif_disp_ce_enable_desc_data_hist()