Lines Matching refs:prev
676 smbstat_cpu_snapshot_t *curr, *prev; in smbstat_cpu_process() local
682 prev = smbstat_cpu_previous_snapshot(); in smbstat_cpu_process()
686 for (i = 0; i < smbstat_nrcpus; i++, curr++, prev++) { in smbstat_cpu_process()
689 prev->cs_ticks[j]); in smbstat_cpu_process()
691 prev->cs_ticks[j]); in smbstat_cpu_process()
822 smbstat_srv_snapshot_t *curr, *prev; in smbstat_srv_process() local
825 prev = smbstat_srv_previous_snapshot(); in smbstat_srv_process()
827 if (prev->ss_snaptime == 0) in smbstat_srv_process()
833 smbstat_hrtime_delta(prev->ss_snaptime, curr->ss_snaptime); in smbstat_srv_process()
837 smbstat_sub_64(curr->ss_data.ks_nreq, prev->ss_data.ks_nreq); in smbstat_srv_process()
842 smbstat_srv_process_throughput(curr, prev); in smbstat_srv_process()
844 smbstat_srv_process_utilization(curr, prev); in smbstat_srv_process()
846 smbstat_srv_process_requests(curr, prev); in smbstat_srv_process()
872 smbstat_srv_snapshot_t *prev) in smbstat_srv_process_throughput() argument
875 smbstat_sub_64(curr->ss_data.ks_txb, prev->ss_data.ks_txb); in smbstat_srv_process_throughput()
878 smbstat_sub_64(curr->ss_data.ks_rxb, prev->ss_data.ks_rxb); in smbstat_srv_process_throughput()
885 prev->ss_data.ks_reqs[SMB_COM_READ].kr_nreq); in smbstat_srv_process_throughput()
888 prev->ss_data.ks_reqs[SMB_COM_LOCK_AND_READ].kr_nreq); in smbstat_srv_process_throughput()
891 prev->ss_data.ks_reqs[SMB_COM_READ_RAW].kr_nreq); in smbstat_srv_process_throughput()
894 prev->ss_data.ks_reqs[SMB_COM_READ_ANDX].kr_nreq); in smbstat_srv_process_throughput()
899 prev->ss_data.ks_reqs[SMB_COM_WRITE].kr_nreq); in smbstat_srv_process_throughput()
902 prev->ss_data.ks_reqs[SMB_COM_WRITE_AND_UNLOCK].kr_nreq); in smbstat_srv_process_throughput()
905 prev->ss_data.ks_reqs[SMB_COM_WRITE_RAW].kr_nreq); in smbstat_srv_process_throughput()
908 prev->ss_data.ks_reqs[SMB_COM_WRITE_AND_CLOSE].kr_nreq); in smbstat_srv_process_throughput()
911 prev->ss_data.ks_reqs[SMB_COM_WRITE_ANDX].kr_nreq); in smbstat_srv_process_throughput()
924 smbstat_srv_snapshot_t *prev) in smbstat_srv_process_utilization() argument
930 w_delta = smbstat_hrtime_delta(prev->ss_data.ks_utilization.ku_wlentime, in smbstat_srv_process_utilization()
932 r_delta = smbstat_hrtime_delta(prev->ss_data.ks_utilization.ku_rlentime, in smbstat_srv_process_utilization()
934 tw_delta = smbstat_hrtime_delta(prev->ss_data.ks_utilization.ku_wtime, in smbstat_srv_process_utilization()
936 tr_delta = smbstat_hrtime_delta(prev->ss_data.ks_utilization.ku_rtime, in smbstat_srv_process_utilization()
999 smbstat_srv_snapshot_t *prev) in smbstat_srv_process_requests() argument
1011 prev->ss_data.ks_reqs[idx].kr_nreq); in smbstat_srv_process_requests()
1017 prev->ss_data.ks_reqs[idx].kr_rxb) / in smbstat_srv_process_requests()
1022 prev->ss_data.ks_reqs[idx].kr_txb) / in smbstat_srv_process_requests()
1029 if (prev->ss_snaptime == 0) { in smbstat_srv_process_requests()