Lines Matching refs:rd_idx

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()
109 int rd_idx; in fnic_get_trace_data() local
118 rd_idx = fnic_trace_entries.rd_idx; in fnic_get_trace_data()
120 if (wr_idx < rd_idx) { in fnic_get_trace_data()
124 fnic_trace_entries.page_offset[rd_idx]; in fnic_get_trace_data()
148 rd_idx++; in fnic_get_trace_data()
153 if (rd_idx > (fnic_max_trace_entries-1)) in fnic_get_trace_data()
154 rd_idx = 0; in fnic_get_trace_data()
159 if (rd_idx == wr_idx) in fnic_get_trace_data()
162 } else if (wr_idx > rd_idx) { in fnic_get_trace_data()
166 fnic_trace_entries.page_offset[rd_idx]; in fnic_get_trace_data()
190 rd_idx++; in fnic_get_trace_data()
195 if (rd_idx == wr_idx) in fnic_get_trace_data()
505 fnic_trace_entries.wr_idx = fnic_trace_entries.rd_idx = 0; in fnic_trace_buf_init()
594 fc_trace_entries.rd_idx = fc_trace_entries.wr_idx = 0; in fnic_fc_trace_init()
662 fc_trace_entries.rd_idx = fc_trace_entries.wr_idx = 0; in fnic_fc_trace_set_data()
677 if (fc_trace_entries.wr_idx == fc_trace_entries.rd_idx) { in fnic_fc_trace_set_data()
678 fc_trace_entries.rd_idx++; in fnic_fc_trace_set_data()
679 if (fc_trace_entries.rd_idx >= fc_trace_max_entries) in fnic_fc_trace_set_data()
680 fc_trace_entries.rd_idx = 0; in fnic_fc_trace_set_data()
730 int rd_idx, wr_idx; in fnic_fc_trace_get_data() local
737 if (fc_trace_entries.wr_idx == fc_trace_entries.rd_idx) { in fnic_fc_trace_get_data()
742 rd_idx = fc_trace_entries.rd_idx; in fnic_fc_trace_get_data()
751 while (rd_idx != wr_idx) { in fnic_fc_trace_get_data()
753 fc_trace_entries.page_offset[rd_idx]; in fnic_fc_trace_get_data()
773 rd_idx++; in fnic_fc_trace_get_data()
774 if (rd_idx > (fc_trace_max_entries - 1)) in fnic_fc_trace_get_data()
775 rd_idx = 0; in fnic_fc_trace_get_data()