Lines Matching refs:col
65 static int add_entry(int col, FILE *fd, char *format, ...);
191 int col;
198 col = add_entry(0, fd, " : ctlr = %s",
201 col = add_entry(col, fd, " : ncyl = %d", disk_type->dtype_ncyl);
203 col = add_entry(col, fd, " : acyl = %d", disk_type->dtype_acyl);
205 col = add_entry(col, fd, " : pcyl = %d", disk_type->dtype_pcyl);
207 col = add_entry(col, fd, " : nhead = %d", disk_type->dtype_nhead);
210 col = add_entry(col, fd, " : phead = %d",
214 col = add_entry(col, fd, " : nsect = %d", disk_type->dtype_nsect);
217 col = add_entry(col, fd, " : psect = %d",
222 col = add_entry(col, fd, " : bpt = %d", disk_type->dtype_bpt);
225 col = add_entry(col, fd, " : rpm = %d", disk_type->dtype_rpm);
228 col = add_entry(col, fd, " : fmt_time = %d",
233 col = add_entry(col, fd, " : cyl_skew = %d",
238 col = add_entry(col, fd, " : trk_skew = %d",
243 col = add_entry(col, fd, " : trks_zone = %d",
248 col = add_entry(col, fd, " : atrks = %d",
253 col = add_entry(col, fd, " : asect = %d",
258 col = add_entry(col, fd, " : cache = %d",
263 col = add_entry(col, fd, " : prefetch = %d",
268 col = add_entry(col, fd, " : min_prefetch = %d",
273 col = add_entry(col, fd, " : max_prefetch = %d",
278 col = add_entry(col, fd, " : bps = %d",
283 col = add_entry(col, fd, " : drive_type = %d",
290 (void) fprintf(fd, col == 0 ? "\n" : "\n\n");
309 int col;
336 col = 0;
342 col = add_entry(col, fd, " : %c = ",
349 col = add_entry(col, fd, " %s,", s);
354 col = add_entry(col, fd, " %s,", s);
357 col = add_entry(col, fd, " %d, %d", pp->dkl_cylno,
365 (void) fprintf(fd, col == 0 ? "\n" : "\n\n");
369 * Add an entry to the file fd. col is the current starting column.
374 add_entry(int col, FILE *fd, char *format, ...)
379 if (col > MAX_COLUMNS) {
381 col = 0;
383 if (col == 0) {
384 col += fprintf(fd, "\t");
386 col += vfprintf(fd, format, ap);
389 return (col);