Lines Matching defs:health
294 struct nvme_health_information_page *health = buf;
299 warning = letoh(health->critical_warning);
316 print_temp_K(letoh(health->temperature));
318 letoh(health->available_spare));
320 letoh(health->available_spare_threshold));
322 letoh(health->percentage_used));
325 uint128_to_str(to128(health->data_units_read), cbuf, sizeof(cbuf)));
327 uint128_to_str(to128(health->data_units_written), cbuf, sizeof(cbuf)));
329 uint128_to_str(to128(health->host_read_commands), cbuf, sizeof(cbuf)));
331 uint128_to_str(to128(health->host_write_commands), cbuf, sizeof(cbuf)));
333 uint128_to_str(to128(health->controller_busy_time), cbuf, sizeof(cbuf)));
335 uint128_to_str(to128(health->power_cycles), cbuf, sizeof(cbuf)));
337 uint128_to_str(to128(health->power_on_hours), cbuf, sizeof(cbuf)));
339 uint128_to_str(to128(health->unsafe_shutdowns), cbuf, sizeof(cbuf)));
341 uint128_to_str(to128(health->media_errors), cbuf, sizeof(cbuf)));
343 uint128_to_str(to128(health->num_error_info_log_entries), cbuf, sizeof(cbuf)));
345 printf("Warning Temp Composite Time: %d\n", letoh(health->warning_temp_time));
346 printf("Error Temp Composite Time: %d\n", letoh(health->error_temp_time));
348 if (letoh(health->temp_sensor[i]) == 0)
351 print_temp_K(letoh(health->temp_sensor[i]));
353 printf("Temperature 1 Transition Count: %d\n", letoh(health->tmt1tc));
354 printf("Temperature 2 Transition Count: %d\n", letoh(health->tmt2tc));
355 printf("Total Time For Temperature 1: %d\n", letoh(health->ttftmt1));
356 printf("Total Time For Temperature 2: %d\n", letoh(health->ttftmt2));
648 NVME_LOGPAGE(health,
766 "smart/health information");