Lines Matching refs:monitor
737 return sysfs_emit(buf, "%d\n", hba->monitor.enabled); in monitor_enable_show()
752 if (value == hba->monitor.enabled) in monitor_enable_store()
756 memset(&hba->monitor, 0, sizeof(hba->monitor)); in monitor_enable_store()
758 hba->monitor.enabled = true; in monitor_enable_store()
759 hba->monitor.enabled_ts = ktime_get(); in monitor_enable_store()
772 return sysfs_emit(buf, "%lu\n", hba->monitor.chunk_size); in monitor_chunk_size_show()
787 if (!hba->monitor.enabled) in monitor_chunk_size_store()
788 hba->monitor.chunk_size = value; in monitor_chunk_size_store()
798 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_sec_rw[READ]); in read_total_sectors_show()
807 ktime_to_us(hba->monitor.total_busy[READ])); in read_total_busy_show()
815 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_req[READ]); in read_nr_requests_show()
823 struct ufs_hba_monitor *m = &hba->monitor; in read_req_latency_avg_show()
839 ktime_to_us(hba->monitor.lat_max[READ])); in read_req_latency_max_show()
849 ktime_to_us(hba->monitor.lat_min[READ])); in read_req_latency_min_show()
859 ktime_to_us(hba->monitor.lat_sum[READ])); in read_req_latency_sum_show()
868 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_sec_rw[WRITE]); in write_total_sectors_show()
877 ktime_to_us(hba->monitor.total_busy[WRITE])); in write_total_busy_show()
885 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_req[WRITE]); in write_nr_requests_show()
893 struct ufs_hba_monitor *m = &hba->monitor; in write_req_latency_avg_show()
909 ktime_to_us(hba->monitor.lat_max[WRITE])); in write_req_latency_max_show()
919 ktime_to_us(hba->monitor.lat_min[WRITE])); in write_req_latency_min_show()
929 ktime_to_us(hba->monitor.lat_sum[WRITE])); in write_req_latency_sum_show()