Lines Matching refs:cs_cur

57 extern _sd_stats_t *cs_cur;
174 if (cs_cur->st_shared[i].sh_alloc)
186 if (SDBC_IOCTL(SDBC_STATS, cs_cur, 0, 0, 0, 0,
195 if (cs_cur->st_cachesize == 0)
198 for (i = 0; i < cs_cur->st_count; i++) {
199 if (cs_cur->st_shared[i].sh_alloc)
200 dirty += cs_cur->st_shared[i].sh_numdirty;
212 if (SDBC_IOCTL(SDBC_STATS, cs_cur, 0, 0, 0, 0, &ustats) ==
234 if (SDBC_IOCTL(SDBC_STATS, cs_cur, 0, 0, 0, 0, &ustats) ==
310 if (cs_cur->st_shared[i].sh_alloc) {
322 if (cs_cur->st_shared[j].sh_alloc) {
370 if (cs_cur->st_cachesize == 0)
379 for (i = 0, j = 0; j < cs_cur->st_count; i++) {
382 if (cs_cur->st_shared[i].sh_alloc) {
392 down = cs_cur->st_shared[i].sh_failed;
393 if (cs_cur->st_shared[i].sh_failed && bright) {
397 if ((len = strlen(cs_cur->st_shared[i].sh_filename))
401 cs_cur->st_shared[i].sh_filename +
405 cs_cur->st_shared[i].sh_filename);
409 cs_cur->st_shared[i].sh_cd,
416 cs_cur->st_shared[i].sh_numdirty,
417 cs_cur->st_shared[i].sh_numio,
418 cs_cur->st_shared[i].sh_numfail);
455 cs_persec->st_rdhits = cs_cur->st_rdhits - cs_prev->st_rdhits;
456 cs_persec->st_rdmiss = cs_cur->st_rdmiss - cs_prev->st_rdmiss;
457 cs_persec->st_wrhits = cs_cur->st_wrhits - cs_prev->st_wrhits;
458 cs_persec->st_wrmiss = cs_cur->st_wrmiss - cs_prev->st_wrmiss;
460 for (i = 0, j = 0; j < cs_cur->st_count; i++) {
463 if (cs_cur->st_shared[i].sh_alloc) {
465 FBA_SIZE(cs_cur->st_shared[i].sh_disk_write -
468 FBA_SIZE(cs_cur->st_shared[i].sh_disk_read -
471 FBA_SIZE(cs_cur->st_shared[i].sh_cache_read -
474 FBA_SIZE(cs_cur->st_shared[i].sh_cache_write -
479 (void) memcpy((char *) cs_prev, (char *) cs_cur, sizeof (_sd_stats_t) +
852 read_s = cs_cur->st_rdhits;
853 write_s = cs_cur->st_wrhits;
854 rmiss_s = cs_cur->st_rdmiss;
855 wmiss_s = cs_cur->st_wrmiss;
858 rtotal = cs_cur->st_rdhits + cs_cur->st_rdmiss;
859 wtotal = cs_cur->st_wrhits + cs_cur->st_wrmiss;
861 readp = cs_cur->st_rdhits / (double)rtotal;
866 writep = cs_cur->st_wrhits / (double)wtotal;
878 for (i = 0, j = 0; j < cs_cur->st_count; i++) {
881 if (cs_cur->st_shared[i].sh_alloc) {
882 cs_cur->st_shared[i].sh_disk_write /= kbps;
883 cs_cur->st_shared[i].sh_disk_read /= kbps;
884 cs_cur->st_shared[i].sh_cache_write /= kbps;
885 cs_cur->st_shared[i].sh_cache_read /= kbps;
886 rthroughput += cs_cur->st_shared[i].sh_disk_read;
887 throughput += cs_cur->st_shared[i].sh_disk_write;
888 creads += cs_cur->st_shared[i].sh_cache_read;
889 cwrites += cs_cur->st_shared[i].sh_cache_write;
891 down = cs_cur->st_shared[i].sh_failed;
892 if (cs_cur->st_shared[i].sh_failed && bright)
897 strlen(cs_cur->st_shared[i].sh_filename)) > 15) {
900 cs_cur->st_shared[i].sh_filename +
904 cs_cur->st_shared[i].sh_filename);
909 cs_cur->st_shared[i].sh_cd,
912 cs_cur->st_shared[i].sh_disk_read,
913 cs_cur->st_shared[i].sh_disk_write,
914 cs_cur->st_shared[i].sh_cache_read,
915 cs_cur->st_shared[i].sh_cache_write);
945 (void) mvprintw(14 + j, 1, "%8dK %10d", cs_cur->st_cachesize / 1024,
946 cs_cur->st_blksize);
951 (void) mvprintw(17 + j, 1, "Net 0: %6d", cs_cur->st_wlru_inq);
956 (void) mvprintw(20 + j, 7, "%12d %12u %12u", cs_cur->st_lru_blocks,
957 cs_cur->st_lru_req, cs_cur->st_lru_noreq);