Lines Matching refs:monitor
585 return sysfs_emit(buf, "%d\n", hba->monitor.enabled); in monitor_enable_show()
600 if (value == hba->monitor.enabled) in monitor_enable_store()
604 memset(&hba->monitor, 0, sizeof(hba->monitor)); in monitor_enable_store()
606 hba->monitor.enabled = true; in monitor_enable_store()
607 hba->monitor.enabled_ts = ktime_get(); in monitor_enable_store()
620 return sysfs_emit(buf, "%lu\n", hba->monitor.chunk_size); in monitor_chunk_size_show()
635 if (!hba->monitor.enabled) in monitor_chunk_size_store()
636 hba->monitor.chunk_size = value; in monitor_chunk_size_store()
646 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_sec_rw[READ]); in read_total_sectors_show()
655 ktime_to_us(hba->monitor.total_busy[READ])); in read_total_busy_show()
663 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_req[READ]); in read_nr_requests_show()
671 struct ufs_hba_monitor *m = &hba->monitor; in read_req_latency_avg_show()
684 ktime_to_us(hba->monitor.lat_max[READ])); in read_req_latency_max_show()
694 ktime_to_us(hba->monitor.lat_min[READ])); in read_req_latency_min_show()
704 ktime_to_us(hba->monitor.lat_sum[READ])); in read_req_latency_sum_show()
713 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_sec_rw[WRITE]); in write_total_sectors_show()
722 ktime_to_us(hba->monitor.total_busy[WRITE])); in write_total_busy_show()
730 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_req[WRITE]); in write_nr_requests_show()
738 struct ufs_hba_monitor *m = &hba->monitor; in write_req_latency_avg_show()
751 ktime_to_us(hba->monitor.lat_max[WRITE])); in write_req_latency_max_show()
761 ktime_to_us(hba->monitor.lat_min[WRITE])); in write_req_latency_min_show()
771 ktime_to_us(hba->monitor.lat_sum[WRITE])); in write_req_latency_sum_show()