Lines Matching refs:vals
643 sdbc_getvalues(sdbcstat_t *sdbcstat, sdbcvals_t *vals, int flags) in sdbc_getvalues() argument
663 vals->cache_read = in sdbc_getvalues()
665 vals->disk_read = in sdbc_getvalues()
669 vals->total_reads = vals->cache_read + vals->disk_read; in sdbc_getvalues()
671 if (vals->cache_read == 0) in sdbc_getvalues()
672 vals->read_hit = 0.0; in sdbc_getvalues()
674 vals->read_hit = in sdbc_getvalues()
675 ((float)vals->cache_read / vals->total_reads) * 100.0; in sdbc_getvalues()
678 vals->cache_write = in sdbc_getvalues()
680 vals->disk_write = in sdbc_getvalues()
683 vals->total_writes = vals->cache_write + vals->disk_write; in sdbc_getvalues()
685 vals->destaged = in sdbc_getvalues()
688 if (vals->cache_write == 0) in sdbc_getvalues()
689 vals->write_hit = 0.0; in sdbc_getvalues()
691 vals->write_hit = ((float)vals->cache_write / in sdbc_getvalues()
692 (vals->total_writes - vals->destaged)) * 100.0; in sdbc_getvalues()
695 vals->write_cancellations = in sdbc_getvalues()
698 vals->total_cache = vals->cache_read + vals->cache_write; in sdbc_getvalues()
699 vals->total_disk = vals->disk_read + vals->disk_write; in sdbc_getvalues()
702 vals->cache_hit = 0; in sdbc_getvalues()
705 if (vals->cache_read != 0) { in sdbc_getvalues()
706 vals->cache_hit += vals->read_hit; in sdbc_getvalues()
710 if (vals->cache_write != 0) { in sdbc_getvalues()
711 vals->cache_hit += vals->write_hit; in sdbc_getvalues()
715 if (vals->cache_hit) in sdbc_getvalues()
716 vals->cache_hit /= (float)factors; in sdbc_getvalues()
727 vals->cache_read /= divisor; in sdbc_getvalues()
728 vals->disk_read /= divisor; in sdbc_getvalues()
729 vals->total_reads /= divisor; in sdbc_getvalues()
731 vals->cache_write /= divisor; in sdbc_getvalues()
732 vals->disk_write /= divisor; in sdbc_getvalues()
733 vals->total_writes /= divisor; in sdbc_getvalues()
735 vals->total_cache /= divisor; in sdbc_getvalues()
736 vals->total_disk /= divisor; in sdbc_getvalues()
738 vals->destaged /= divisor; in sdbc_getvalues()
739 vals->write_cancellations /= divisor; in sdbc_getvalues()