Lines Matching refs:len
97 int len = 0; in fnic_get_trace_data() local
127 len += scnprintf(fnic_dbgfs_prt->buffer + len, in fnic_get_trace_data()
128 (trace_max_pages * PAGE_SIZE * 3) - len, in fnic_get_trace_data()
169 len += scnprintf(fnic_dbgfs_prt->buffer + len, in fnic_get_trace_data()
170 (trace_max_pages * PAGE_SIZE * 3) - len, in fnic_get_trace_data()
186 return len; in fnic_get_trace_data()
204 int len = 0; in fnic_get_stats_data() local
209 len = scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
214 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
232 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
236 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
269 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
273 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
278 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
307 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
312 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
326 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
331 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
357 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
362 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
372 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
377 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
387 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
395 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
441 len += scnprintf(debug->debug_buffer + len, buf_size - len, in fnic_get_stats_data()
446 return len; in fnic_get_stats_data()
718 int len = 0, j; in fnic_fc_trace_get_data() local
731 len += scnprintf(fnic_dbgfs_prt->buffer + len, in fnic_fc_trace_get_data()
732 (fnic_fc_trace_max_pages * PAGE_SIZE * 3) - len, in fnic_fc_trace_get_data()
747 fnic_dbgfs_prt, &len, rdata_flag); in fnic_fc_trace_get_data()
751 len += scnprintf(fnic_dbgfs_prt->buffer + len, in fnic_fc_trace_get_data()
753 - len, "%02x", fc_trace[j] & 0xff); in fnic_fc_trace_get_data()
755 len += scnprintf(fnic_dbgfs_prt->buffer + len, in fnic_fc_trace_get_data()
756 (fnic_fc_trace_max_pages * PAGE_SIZE * 3) - len, in fnic_fc_trace_get_data()
765 return len; in fnic_fc_trace_get_data()
784 int j, i = 1, len; in copy_and_format_trace_data() local
793 len = *orig_len; in copy_and_format_trace_data()
795 len += scnprintf(fnic_dbgfs_prt->buffer + len, max_size - len, in copy_and_format_trace_data()
805 len += scnprintf(fnic_dbgfs_prt->buffer + len, in copy_and_format_trace_data()
806 max_size - len, "%c", fc_trace[j]); in copy_and_format_trace_data()
808 len += scnprintf(fnic_dbgfs_prt->buffer + len, in copy_and_format_trace_data()
809 max_size - len, "%02x", fc_trace[j] & 0xff); in copy_and_format_trace_data()
810 len += scnprintf(fnic_dbgfs_prt->buffer + len, in copy_and_format_trace_data()
811 max_size - len, " "); in copy_and_format_trace_data()
816 len += scnprintf(fnic_dbgfs_prt->buffer in copy_and_format_trace_data()
817 + len, max_size - len, in copy_and_format_trace_data()
823 len += scnprintf(fnic_dbgfs_prt->buffer + len, in copy_and_format_trace_data()
824 max_size - len, "\n"); in copy_and_format_trace_data()
825 *orig_len = len; in copy_and_format_trace_data()