• Home
  • Raw
  • Download

Lines Matching refs:seq

49 static void seq_printf_with_thousands_grouping(struct seq_file *seq, long v)  in seq_printf_with_thousands_grouping()  argument
54 seq_printf(seq, "%ld,", v / 1000000); in seq_printf_with_thousands_grouping()
56 seq_printf(seq, "%03ld,%03ld", v/1000, v % 1000); in seq_printf_with_thousands_grouping()
58 seq_printf(seq, "%ld,%03ld", v/1000, v % 1000); in seq_printf_with_thousands_grouping()
60 seq_printf(seq, "%ld", v); in seq_printf_with_thousands_grouping()
113 static void drbd_syncer_progress(struct drbd_device *device, struct seq_file *seq, in drbd_syncer_progress() argument
125 seq_printf(seq, "\t["); in drbd_syncer_progress()
127 seq_printf(seq, "="); in drbd_syncer_progress()
128 seq_printf(seq, ">"); in drbd_syncer_progress()
130 seq_printf(seq, "."); in drbd_syncer_progress()
131 seq_printf(seq, "] "); in drbd_syncer_progress()
134 seq_printf(seq, "verified:"); in drbd_syncer_progress()
136 seq_printf(seq, "sync'ed:"); in drbd_syncer_progress()
137 seq_printf(seq, "%3u.%u%% ", res / 10, res % 10); in drbd_syncer_progress()
141 seq_printf(seq, "(%lu/%lu)M", in drbd_syncer_progress()
145 seq_printf(seq, "(%lu/%lu)K", in drbd_syncer_progress()
149 seq_printf(seq, "\n\t"); in drbd_syncer_progress()
174 seq_printf(seq, "finish: %lu:%02lu:%02lu", in drbd_syncer_progress()
178 seq_printf(seq, " speed: "); in drbd_syncer_progress()
179 seq_printf_with_thousands_grouping(seq, dbdt); in drbd_syncer_progress()
180 seq_printf(seq, " ("); in drbd_syncer_progress()
190 seq_printf_with_thousands_grouping(seq, dbdt); in drbd_syncer_progress()
191 seq_printf(seq, " -- "); in drbd_syncer_progress()
202 seq_printf_with_thousands_grouping(seq, dbdt); in drbd_syncer_progress()
203 seq_printf(seq, ")"); in drbd_syncer_progress()
207 seq_printf(seq, " want: "); in drbd_syncer_progress()
208 seq_printf_with_thousands_grouping(seq, device->c_sync_rate); in drbd_syncer_progress()
210 seq_printf(seq, " K/sec%s\n", stalled ? " (stalled)" : ""); in drbd_syncer_progress()
227 seq_printf(seq, in drbd_syncer_progress()
233 seq_printf(seq, " stop sector: %llu", stop_sector); in drbd_syncer_progress()
234 seq_printf(seq, "\n"); in drbd_syncer_progress()
238 static int drbd_seq_show(struct seq_file *seq, void *v) in drbd_seq_show() argument
253 seq_printf(seq, "version: " REL_VERSION " (api:%d/proto:%d-%d)\n%s\n", in drbd_seq_show()
279 seq_printf(seq, "\n"); in drbd_seq_show()
288 seq_printf(seq, "%2d: cs:Unconfigured\n", i); in drbd_seq_show()
295 seq_printf(seq, in drbd_seq_show()
325 seq_printf(seq, " oos:%llu\n", in drbd_seq_show()
333 drbd_syncer_progress(device, seq, state); in drbd_seq_show()
336 lc_seq_printf_stats(seq, device->resync); in drbd_seq_show()
337 lc_seq_printf_stats(seq, device->act_log); in drbd_seq_show()
342 seq_printf(seq, "\tblocked on activity log: %d\n", atomic_read(&device->ap_actlog_cnt)); in drbd_seq_show()