Lines Matching full:monitor

286 	return sysfs_emit(buf, "%d\n", hba->monitor.enabled);  in monitor_enable_show()
301 if (value == hba->monitor.enabled) in monitor_enable_store()
305 memset(&hba->monitor, 0, sizeof(hba->monitor)); in monitor_enable_store()
307 hba->monitor.enabled = true; in monitor_enable_store()
308 hba->monitor.enabled_ts = ktime_get(); in monitor_enable_store()
321 return sysfs_emit(buf, "%lu\n", hba->monitor.chunk_size); in monitor_chunk_size_show()
335 /* Only allow chunk size change when monitor is disabled */ in monitor_chunk_size_store()
336 if (!hba->monitor.enabled) in monitor_chunk_size_store()
337 hba->monitor.chunk_size = value; in monitor_chunk_size_store()
347 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_sec_rw[READ]); in read_total_sectors_show()
356 ktime_to_us(hba->monitor.total_busy[READ])); in read_total_busy_show()
364 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_req[READ]); in read_nr_requests_show()
372 struct ufs_hba_monitor *m = &hba->monitor; in read_req_latency_avg_show()
385 ktime_to_us(hba->monitor.lat_max[READ])); in read_req_latency_max_show()
395 ktime_to_us(hba->monitor.lat_min[READ])); in read_req_latency_min_show()
405 ktime_to_us(hba->monitor.lat_sum[READ])); in read_req_latency_sum_show()
414 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_sec_rw[WRITE]); in write_total_sectors_show()
423 ktime_to_us(hba->monitor.total_busy[WRITE])); in write_total_busy_show()
431 return sysfs_emit(buf, "%lu\n", hba->monitor.nr_req[WRITE]); in write_nr_requests_show()
439 struct ufs_hba_monitor *m = &hba->monitor; in write_req_latency_avg_show()
452 ktime_to_us(hba->monitor.lat_max[WRITE])); in write_req_latency_max_show()
462 ktime_to_us(hba->monitor.lat_min[WRITE])); in write_req_latency_min_show()
472 ktime_to_us(hba->monitor.lat_sum[WRITE])); in write_req_latency_sum_show()
513 .name = "monitor",