Lines Matching refs:fnic_trace_entries
20 static fnic_trace_dbg_t fnic_trace_entries; variable
57 fnic_trace_entries.page_offset[fnic_trace_entries.wr_idx]; in fnic_trace_get_buf()
58 fnic_trace_entries.wr_idx++; in fnic_trace_get_buf()
64 if (fnic_trace_entries.wr_idx >= fnic_max_trace_entries) in fnic_trace_get_buf()
65 fnic_trace_entries.wr_idx = 0; in fnic_trace_get_buf()
71 if (fnic_trace_entries.wr_idx == fnic_trace_entries.rd_idx) { in fnic_trace_get_buf()
72 fnic_trace_entries.rd_idx++; in fnic_trace_get_buf()
73 if (fnic_trace_entries.rd_idx >= fnic_max_trace_entries) in fnic_trace_get_buf()
74 fnic_trace_entries.rd_idx = 0; in fnic_trace_get_buf()
104 rd_idx = fnic_trace_entries.rd_idx; in fnic_get_trace_data()
105 wr_idx = fnic_trace_entries.wr_idx; in fnic_get_trace_data()
110 fnic_trace_entries.page_offset[rd_idx]; in fnic_get_trace_data()
152 fnic_trace_entries.page_offset[rd_idx]; in fnic_get_trace_data()
476 fnic_trace_entries.page_offset = in fnic_trace_buf_init()
479 if (!fnic_trace_entries.page_offset) { in fnic_trace_buf_init()
489 memset((void *)fnic_trace_entries.page_offset, 0, in fnic_trace_buf_init()
491 fnic_trace_entries.wr_idx = fnic_trace_entries.rd_idx = 0; in fnic_trace_buf_init()
500 fnic_trace_entries.page_offset[i] = fnic_buf_head; in fnic_trace_buf_init()
518 if (fnic_trace_entries.page_offset) { in fnic_trace_free()
519 vfree((void *)fnic_trace_entries.page_offset); in fnic_trace_free()
520 fnic_trace_entries.page_offset = NULL; in fnic_trace_free()