Lines Matching defs:fields
588 unsigned long long fields[__STAT_NUMBER_FIELD];
607 for (cp = buffer, i = 0; i < (sizeof(fields) / sizeof(fields[0])); ++i) {
608 fields[i] = strtoull(cp, &cp, 10);
609 if (fields[i] != 0) {
627 if (fields[__STAT_IO_TICKS]) {
630 if (fields[__STAT_READ_TICKS]) {
631 unsigned long long divisor = fields[__STAT_READ_TICKS]
632 * fields[__STAT_IO_TICKS];
634 * fields[__STAT_READ_SECTORS]
635 * fields[__STAT_IN_QUEUE] + (divisor >> 1))
637 read_ios = ((unsigned long long)S_TO_MS * fields[__STAT_READ_IOS]
638 * fields[__STAT_IN_QUEUE] + (divisor >> 1))
644 if (fields[__STAT_WRITE_TICKS]) {
645 unsigned long long divisor = fields[__STAT_WRITE_TICKS]
646 * fields[__STAT_IO_TICKS];
648 * fields[__STAT_WRITE_SECTORS]
649 * fields[__STAT_IN_QUEUE] + (divisor >> 1))
651 write_ios = ((unsigned long long)S_TO_MS * fields[__STAT_WRITE_IOS]
652 * fields[__STAT_IN_QUEUE] + (divisor >> 1))
656 unsigned queue = (fields[__STAT_IN_QUEUE]
657 + (fields[__STAT_IO_TICKS] >> 1))
658 / fields[__STAT_IO_TICKS];