Lines Matching refs:smart

211 	struct nd_intel_smart *smart;  member
710 static int nfit_test_cmd_smart(struct nd_intel_smart *smart, unsigned int buf_len, in nfit_test_cmd_smart() argument
713 if (buf_len < sizeof(*smart)) in nfit_test_cmd_smart()
715 memcpy(smart, smart_data, sizeof(*smart)); in nfit_test_cmd_smart()
731 struct device *dimm_dev, struct nd_intel_smart *smart, in smart_notify() argument
736 smart->spares, thresh->media_temperature, in smart_notify()
737 smart->media_temperature, thresh->ctrl_temperature, in smart_notify()
738 smart->ctrl_temperature); in smart_notify()
740 && smart->spares in smart_notify()
743 && smart->media_temperature in smart_notify()
746 && smart->ctrl_temperature in smart_notify()
748 || (smart->health != ND_INTEL_SMART_NON_CRITICAL_HEALTH) in smart_notify()
749 || (smart->shutdown_state != 0)) { in smart_notify()
760 struct nd_intel_smart *smart, in nfit_test_cmd_smart_set_threshold() argument
770 smart_notify(bus_dev, dimm_dev, smart, thresh); in nfit_test_cmd_smart_set_threshold()
779 struct nd_intel_smart *smart, in nfit_test_cmd_smart_inject() argument
787 smart->media_temperature = inj->media_temperature; in nfit_test_cmd_smart_inject()
789 smart->media_temperature = smart_def.media_temperature; in nfit_test_cmd_smart_inject()
793 smart->spares = inj->spares; in nfit_test_cmd_smart_inject()
795 smart->spares = smart_def.spares; in nfit_test_cmd_smart_inject()
799 smart->health = ND_INTEL_SMART_FATAL_HEALTH; in nfit_test_cmd_smart_inject()
801 smart->health = ND_INTEL_SMART_NON_CRITICAL_HEALTH; in nfit_test_cmd_smart_inject()
805 smart->shutdown_state = 1; in nfit_test_cmd_smart_inject()
806 smart->shutdown_count++; in nfit_test_cmd_smart_inject()
808 smart->shutdown_state = 0; in nfit_test_cmd_smart_inject()
811 smart_notify(bus_dev, dimm_dev, smart, thresh); in nfit_test_cmd_smart_inject()
1463 &t->smart[i]); in nfit_test_ctl()
1474 &t->smart[i], in nfit_test_ctl()
1481 &t->smart[i], in nfit_test_ctl()
1866 memcpy(&t->smart[i], &smart_def, sizeof(smart_def)); in smart_init()
3161 nfit_test->smart = devm_kcalloc(dev, num, in nfit_test_probe()