Lines Matching refs:seq
26 static void seq_printf_with_thousands_grouping(struct seq_file *seq, long v) in seq_printf_with_thousands_grouping() argument
31 seq_printf(seq, "%ld,", v / 1000000); in seq_printf_with_thousands_grouping()
33 seq_printf(seq, "%03ld,%03ld", v/1000, v % 1000); in seq_printf_with_thousands_grouping()
35 seq_printf(seq, "%ld,%03ld", v/1000, v % 1000); in seq_printf_with_thousands_grouping()
37 seq_printf(seq, "%ld", v); in seq_printf_with_thousands_grouping()
90 static void drbd_syncer_progress(struct drbd_device *device, struct seq_file *seq, in drbd_syncer_progress() argument
102 seq_puts(seq, "\t["); in drbd_syncer_progress()
104 seq_putc(seq, '='); in drbd_syncer_progress()
105 seq_putc(seq, '>'); in drbd_syncer_progress()
107 seq_putc(seq, '.'); in drbd_syncer_progress()
108 seq_puts(seq, "] "); in drbd_syncer_progress()
111 seq_puts(seq, "verified:"); in drbd_syncer_progress()
113 seq_puts(seq, "sync'ed:"); in drbd_syncer_progress()
114 seq_printf(seq, "%3u.%u%% ", res / 10, res % 10); in drbd_syncer_progress()
118 seq_printf(seq, "(%lu/%lu)M", in drbd_syncer_progress()
122 seq_printf(seq, "(%lu/%lu)K", in drbd_syncer_progress()
126 seq_puts(seq, "\n\t"); in drbd_syncer_progress()
151 seq_printf(seq, "finish: %lu:%02lu:%02lu", in drbd_syncer_progress()
155 seq_puts(seq, " speed: "); in drbd_syncer_progress()
156 seq_printf_with_thousands_grouping(seq, dbdt); in drbd_syncer_progress()
157 seq_puts(seq, " ("); in drbd_syncer_progress()
167 seq_printf_with_thousands_grouping(seq, dbdt); in drbd_syncer_progress()
168 seq_puts(seq, " -- "); in drbd_syncer_progress()
179 seq_printf_with_thousands_grouping(seq, dbdt); in drbd_syncer_progress()
180 seq_putc(seq, ')'); in drbd_syncer_progress()
184 seq_puts(seq, " want: "); in drbd_syncer_progress()
185 seq_printf_with_thousands_grouping(seq, device->c_sync_rate); in drbd_syncer_progress()
187 seq_printf(seq, " K/sec%s\n", stalled ? " (stalled)" : ""); in drbd_syncer_progress()
204 seq_printf(seq, in drbd_syncer_progress()
210 seq_printf(seq, " stop sector: %llu", stop_sector); in drbd_syncer_progress()
211 seq_putc(seq, '\n'); in drbd_syncer_progress()
215 int drbd_seq_show(struct seq_file *seq, void *v) in drbd_seq_show() argument
230 seq_printf(seq, "version: " REL_VERSION " (api:%d/proto:%d-%d)\n%s\n", in drbd_seq_show()
256 seq_putc(seq, '\n'); in drbd_seq_show()
265 seq_printf(seq, "%2d: cs:Unconfigured\n", i); in drbd_seq_show()
271 seq_printf(seq, in drbd_seq_show()
301 seq_printf(seq, " oos:%llu\n", in drbd_seq_show()
309 drbd_syncer_progress(device, seq, state); in drbd_seq_show()
312 lc_seq_printf_stats(seq, device->resync); in drbd_seq_show()
313 lc_seq_printf_stats(seq, device->act_log); in drbd_seq_show()
318 seq_printf(seq, "\tblocked on activity log: %d\n", atomic_read(&device->ap_actlog_cnt)); in drbd_seq_show()