Lines Matching refs:monitor
400 return sysfs_emit(buf, "%d\n", hba->monitor.enabled); in monitor_enable_show()
415 if (value == hba->monitor.enabled) in monitor_enable_store()
419 memset(&hba->monitor, 0, sizeof(hba->monitor)); in monitor_enable_store()
421 hba->monitor.enabled = true; in monitor_enable_store()
422 hba->monitor.enabled_ts = ktime_get(); in monitor_enable_store()
435 return sysfs_emit(buf, "%lu\n", hba->monitor.chunk_size); in monitor_chunk_size_show()
450 if (!hba->monitor.enabled) in monitor_chunk_size_store()
451 hba->monitor.chunk_size = value; in monitor_chunk_size_store()
461 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_sec_rw[READ]); in read_total_sectors_show()
470 ktime_to_us(hba->monitor.total_busy[READ])); in read_total_busy_show()
478 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_req[READ]); in read_nr_requests_show()
486 struct ufs_hba_monitor *m = &hba->monitor; in read_req_latency_avg_show()
499 ktime_to_us(hba->monitor.lat_max[READ])); in read_req_latency_max_show()
509 ktime_to_us(hba->monitor.lat_min[READ])); in read_req_latency_min_show()
519 ktime_to_us(hba->monitor.lat_sum[READ])); in read_req_latency_sum_show()
528 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_sec_rw[WRITE]); in write_total_sectors_show()
537 ktime_to_us(hba->monitor.total_busy[WRITE])); in write_total_busy_show()
545 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_req[WRITE]); in write_nr_requests_show()
553 struct ufs_hba_monitor *m = &hba->monitor; in write_req_latency_avg_show()
566 ktime_to_us(hba->monitor.lat_max[WRITE])); in write_req_latency_max_show()
576 ktime_to_us(hba->monitor.lat_min[WRITE])); in write_req_latency_min_show()
586 ktime_to_us(hba->monitor.lat_sum[WRITE])); in write_req_latency_sum_show()