Lines Matching refs:monitor
367 return sysfs_emit(buf, "%d\n", hba->monitor.enabled); in monitor_enable_show()
382 if (value == hba->monitor.enabled) in monitor_enable_store()
386 memset(&hba->monitor, 0, sizeof(hba->monitor)); in monitor_enable_store()
388 hba->monitor.enabled = true; in monitor_enable_store()
389 hba->monitor.enabled_ts = ktime_get(); in monitor_enable_store()
402 return sysfs_emit(buf, "%lu\n", hba->monitor.chunk_size); in monitor_chunk_size_show()
417 if (!hba->monitor.enabled) in monitor_chunk_size_store()
418 hba->monitor.chunk_size = value; in monitor_chunk_size_store()
428 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_sec_rw[READ]); in read_total_sectors_show()
437 ktime_to_us(hba->monitor.total_busy[READ])); in read_total_busy_show()
445 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_req[READ]); in read_nr_requests_show()
453 struct ufs_hba_monitor *m = &hba->monitor; in read_req_latency_avg_show()
466 ktime_to_us(hba->monitor.lat_max[READ])); in read_req_latency_max_show()
476 ktime_to_us(hba->monitor.lat_min[READ])); in read_req_latency_min_show()
486 ktime_to_us(hba->monitor.lat_sum[READ])); in read_req_latency_sum_show()
495 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_sec_rw[WRITE]); in write_total_sectors_show()
504 ktime_to_us(hba->monitor.total_busy[WRITE])); in write_total_busy_show()
512 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_req[WRITE]); in write_nr_requests_show()
520 struct ufs_hba_monitor *m = &hba->monitor; in write_req_latency_avg_show()
533 ktime_to_us(hba->monitor.lat_max[WRITE])); in write_req_latency_max_show()
543 ktime_to_us(hba->monitor.lat_min[WRITE])); in write_req_latency_min_show()
553 ktime_to_us(hba->monitor.lat_sum[WRITE])); in write_req_latency_sum_show()