Lines Matching refs:ff

382 		poolstat_field_format_t *ff;	/* current format field */  in create_prt_sequence_list()  local
399 ff = lf->plf_ffs + ffIdx; in create_prt_sequence_list()
400 if (strcmp(ff->pff_name, name) == 0) { in create_prt_sequence_list()
401 ff->pff_prt |= PABLE_FIELD; in create_prt_sequence_list()
419 lf->plf_last->ple_obj = ff; /* refer to the format field */ in create_prt_sequence_list()
438 default_f(char *str, int pos, int left, poolstat_field_format_t *ff, char *data) in default_f() argument
442 switch (ff->pff_type) { in default_f()
445 v = *((int64_t *)(void *)(data + ff->pff_offset)); in default_f()
447 ff->pff_width, ff->pff_minwidth, v); in default_f()
452 v = *((uint64_t *)(void *)(data + ff->pff_offset)); in default_f()
454 ff->pff_width, ff->pff_minwidth, v); in default_f()
459 double v = *((double *)(void *)(data + ff->pff_offset)); in default_f()
461 pw = ff->pff_width - 2; in default_f()
463 pw = ff->pff_width - 3; in default_f()
465 pw = ff->pff_width - 4; in default_f()
470 ff->pff_width, pw, v); in default_f()
476 v = *((char **)(void *)(data + ff->pff_offset)); in default_f()
479 if (sl > ff->pff_width) { in default_f()
480 char *cp = v + ff->pff_width - 1; in default_f()
481 if (ff->pff_width < 4) in default_f()
483 ff->pff_header); in default_f()
489 used = snprintf(str + pos, left, "%-*s", ff->pff_width, in default_f()
500 bigno_f(char *str, int pos, int left, poolstat_field_format_t *ff, char *data) in bigno_f() argument
504 int pw = ff->pff_width - 4; in bigno_f()
508 v = *((uint64_t *)(void *)(data + ff->pff_offset)); in bigno_f()
577 ff->pff_width, pw, pv); in bigno_f()
580 ff->pff_width - 1, pw, pv, tag); in bigno_f()
587 used_stat_f(char *str, int pos, int left, poolstat_field_format_t *ff, in used_stat_f() argument
591 double v = *((double *)(void *)(data + ff->pff_offset)); in used_stat_f()
595 used = snprintf(str + pos, left, "%*c", ff->pff_width, '-'); in used_stat_f()
598 pw = ff->pff_width - 2; in used_stat_f()
600 pw = ff->pff_width - 3; in used_stat_f()
602 pw = ff->pff_width - 4; in used_stat_f()
607 ff->pff_width, pw, v); in used_stat_f()
617 header_f(char *str, int pos, int left, poolstat_field_format_t *ff, char *data) in header_f() argument
621 if (ff->pff_type == STR) in header_f()
624 ff->pff_width, ff->pff_header); in header_f()
627 ff->pff_width, ff->pff_header); in header_f()
646 poolstat_field_format_t *ff = in prt_stat_line() local
649 if (ff->pff_prt & PABLE_FIELD) { in prt_stat_line()
650 if (((used = ff->pff_format(line, pos, left, ff, in prt_stat_line()
651 *ff->pff_data_ptr)) + 1) >= left) { in prt_stat_line()
656 if (((used = ff->pff_format(line, pos, left, ff, in prt_stat_line()
657 *ff->pff_data_ptr)) + 1) >= left) in prt_stat_line()
699 poolstat_field_format_t *ff = in prt_stat_hd() local
702 if (ff->pff_prt& PABLE_FIELD) { in prt_stat_hd()
703 if (((used = header_f(line, pos, left, ff, NULL)) + 1) in prt_stat_hd()
709 if (((used = header_f(line, pos, left, ff, in prt_stat_hd()