Lines Matching refs:ff

381 		poolstat_field_format_t *ff;	/* current format field */  in create_prt_sequence_list()  local
398 ff = lf->plf_ffs + ffIdx; in create_prt_sequence_list()
399 if (strcmp(ff->pff_name, name) == 0) { in create_prt_sequence_list()
400 ff->pff_prt |= PABLE_FIELD; in create_prt_sequence_list()
418 lf->plf_last->ple_obj = ff; /* refer to the format field */ in create_prt_sequence_list()
437 default_f(char *str, int pos, int left, poolstat_field_format_t *ff, char *data) in default_f() argument
441 switch (ff->pff_type) { in default_f()
444 v = *((int64_t *)(void *)(data + ff->pff_offset)); in default_f()
446 ff->pff_width, ff->pff_minwidth, v); in default_f()
451 v = *((uint64_t *)(void *)(data + ff->pff_offset)); in default_f()
453 ff->pff_width, ff->pff_minwidth, v); in default_f()
458 double v = *((double *)(void *)(data + ff->pff_offset)); in default_f()
460 pw = ff->pff_width - 2; in default_f()
462 pw = ff->pff_width - 3; in default_f()
464 pw = ff->pff_width - 4; in default_f()
469 ff->pff_width, pw, v); in default_f()
475 v = *((char **)(void *)(data + ff->pff_offset)); in default_f()
478 if (sl > ff->pff_width) { in default_f()
479 char *cp = v + ff->pff_width - 1; in default_f()
480 if (ff->pff_width < 4) in default_f()
482 ff->pff_header); in default_f()
488 used = snprintf(str + pos, left, "%-*s", ff->pff_width, in default_f()
499 bigno_f(char *str, int pos, int left, poolstat_field_format_t *ff, char *data) in bigno_f() argument
503 int pw = ff->pff_width - 4; in bigno_f()
507 v = *((uint64_t *)(void *)(data + ff->pff_offset)); in bigno_f()
576 ff->pff_width, pw, pv); in bigno_f()
579 ff->pff_width - 1, pw, pv, tag); in bigno_f()
586 used_stat_f(char *str, int pos, int left, poolstat_field_format_t *ff, in used_stat_f() argument
590 double v = *((double *)(void *)(data + ff->pff_offset)); in used_stat_f()
594 used = snprintf(str + pos, left, "%*c", ff->pff_width, '-'); in used_stat_f()
597 pw = ff->pff_width - 2; in used_stat_f()
599 pw = ff->pff_width - 3; in used_stat_f()
601 pw = ff->pff_width - 4; in used_stat_f()
606 ff->pff_width, pw, v); in used_stat_f()
616 header_f(char *str, int pos, int left, poolstat_field_format_t *ff, char *data) in header_f() argument
620 if (ff->pff_type == STR) in header_f()
623 ff->pff_width, ff->pff_header); in header_f()
626 ff->pff_width, ff->pff_header); in header_f()
645 poolstat_field_format_t *ff = in prt_stat_line() local
648 if (ff->pff_prt & PABLE_FIELD) { in prt_stat_line()
649 if (((used = ff->pff_format(line, pos, left, ff, in prt_stat_line()
650 *ff->pff_data_ptr)) + 1) >= left) { in prt_stat_line()
655 if (((used = ff->pff_format(line, pos, left, ff, in prt_stat_line()
656 *ff->pff_data_ptr)) + 1) >= left) in prt_stat_line()
698 poolstat_field_format_t *ff = in prt_stat_hd() local
701 if (ff->pff_prt& PABLE_FIELD) { in prt_stat_hd()
702 if (((used = header_f(line, pos, left, ff, NULL)) + 1) in prt_stat_hd()
708 if (((used = header_f(line, pos, left, ff, in prt_stat_hd()