Lines Matching refs:fnic_trace_entries
34 static fnic_trace_dbg_t fnic_trace_entries; variable
71 fnic_trace_entries.page_offset[fnic_trace_entries.wr_idx]; in fnic_trace_get_buf()
72 fnic_trace_entries.wr_idx++; in fnic_trace_get_buf()
78 if (fnic_trace_entries.wr_idx >= fnic_max_trace_entries) in fnic_trace_get_buf()
79 fnic_trace_entries.wr_idx = 0; in fnic_trace_get_buf()
85 if (fnic_trace_entries.wr_idx == fnic_trace_entries.rd_idx) { in fnic_trace_get_buf()
86 fnic_trace_entries.rd_idx++; in fnic_trace_get_buf()
87 if (fnic_trace_entries.rd_idx >= fnic_max_trace_entries) in fnic_trace_get_buf()
88 fnic_trace_entries.rd_idx = 0; in fnic_trace_get_buf()
118 rd_idx = fnic_trace_entries.rd_idx; in fnic_get_trace_data()
119 wr_idx = fnic_trace_entries.wr_idx; in fnic_get_trace_data()
124 fnic_trace_entries.page_offset[rd_idx]; in fnic_get_trace_data()
166 fnic_trace_entries.page_offset[rd_idx]; in fnic_get_trace_data()
490 fnic_trace_entries.page_offset = in fnic_trace_buf_init()
493 if (!fnic_trace_entries.page_offset) { in fnic_trace_buf_init()
503 memset((void *)fnic_trace_entries.page_offset, 0, in fnic_trace_buf_init()
505 fnic_trace_entries.wr_idx = fnic_trace_entries.rd_idx = 0; in fnic_trace_buf_init()
514 fnic_trace_entries.page_offset[i] = fnic_buf_head; in fnic_trace_buf_init()
532 if (fnic_trace_entries.page_offset) { in fnic_trace_free()
533 vfree((void *)fnic_trace_entries.page_offset); in fnic_trace_free()
534 fnic_trace_entries.page_offset = NULL; in fnic_trace_free()