Lines Matching refs:seq

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