Lines Matching refs:mode
89 nvkm_therm_update(struct nvkm_therm *therm, int mode) in nvkm_therm_update() argument
99 if (mode < 0) in nvkm_therm_update()
100 mode = therm->mode; in nvkm_therm_update()
101 therm->mode = mode; in nvkm_therm_update()
103 switch (mode) { in nvkm_therm_update()
165 nvkm_therm_fan_mode(struct nvkm_therm *therm, int mode) in nvkm_therm_fan_mode() argument
176 if ((mode >= ARRAY_SIZE(name)) || in nvkm_therm_fan_mode()
177 (mode != NVKM_THERM_CTRL_NONE && device->card_type >= NV_C0 && in nvkm_therm_fan_mode()
183 if (mode == NVKM_THERM_CTRL_AUTO && in nvkm_therm_fan_mode()
187 if (therm->mode == mode) in nvkm_therm_fan_mode()
190 nvkm_debug(subdev, "fan management: %s\n", name[mode]); in nvkm_therm_fan_mode()
191 nvkm_therm_update(therm, mode); in nvkm_therm_fan_mode()
204 return therm->mode; in nvkm_therm_attr_get()
304 therm->suspend = therm->mode; in nvkm_therm_fini()
305 therm->mode = NVKM_THERM_CTRL_NONE; in nvkm_therm_fini()
380 therm->mode = therm->suspend = -1; /* undefined */ in nvkm_therm_new_()