Lines Matching refs:therm

34 	struct nvkm_therm *therm = fan->parent;  in nvkm_fan_update()  local
35 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_fan_update()
48 nv_debug(therm, "FAN target: %d\n", target); in nvkm_fan_update()
53 duty = fan->get(therm); in nvkm_fan_update()
73 nv_debug(therm, "FAN update: %d\n", duty); in nvkm_fan_update()
74 ret = fan->set(therm, duty); in nvkm_fan_update()
112 nvkm_therm_fan_get(struct nvkm_therm *therm) in nvkm_therm_fan_get() argument
114 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_fan_get()
115 return priv->fan->get(therm); in nvkm_therm_fan_get()
119 nvkm_therm_fan_set(struct nvkm_therm *therm, bool immediate, int percent) in nvkm_therm_fan_set() argument
121 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_fan_set()
126 nvkm_therm_fan_sense(struct nvkm_therm *therm) in nvkm_therm_fan_sense() argument
128 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_fan_sense()
129 struct nvkm_timer *ptimer = nvkm_timer(therm); in nvkm_therm_fan_sense()
130 struct nvkm_gpio *gpio = nvkm_gpio(therm); in nvkm_therm_fan_sense()
166 nvkm_therm_fan_user_get(struct nvkm_therm *therm) in nvkm_therm_fan_user_get() argument
168 return nvkm_therm_fan_get(therm); in nvkm_therm_fan_user_get()
172 nvkm_therm_fan_user_set(struct nvkm_therm *therm, int percent) in nvkm_therm_fan_user_set() argument
174 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_fan_user_set()
179 return nvkm_therm_fan_set(therm, true, percent); in nvkm_therm_fan_user_set()
183 nvkm_therm_fan_set_defaults(struct nvkm_therm *therm) in nvkm_therm_fan_set_defaults() argument
185 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_fan_set_defaults()
197 nvkm_therm_fan_safety_checks(struct nvkm_therm *therm) in nvkm_therm_fan_safety_checks() argument
199 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_fan_safety_checks()
211 nvkm_therm_fan_init(struct nvkm_therm *therm) in nvkm_therm_fan_init() argument
217 nvkm_therm_fan_fini(struct nvkm_therm *therm, bool suspend) in nvkm_therm_fan_fini() argument
219 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_fan_fini()
220 struct nvkm_timer *ptimer = nvkm_timer(therm); in nvkm_therm_fan_fini()
228 nvkm_therm_fan_ctor(struct nvkm_therm *therm) in nvkm_therm_fan_ctor() argument
230 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_fan_ctor()
231 struct nvkm_gpio *gpio = nvkm_gpio(therm); in nvkm_therm_fan_ctor()
232 struct nvkm_bios *bios = nvkm_bios(therm); in nvkm_therm_fan_ctor()
241 nv_debug(therm, "GPIO_FAN is in input mode\n"); in nvkm_therm_fan_ctor()
244 ret = nvkm_fanpwm_create(therm, &func); in nvkm_therm_fan_ctor()
246 ret = nvkm_fantog_create(therm, &func); in nvkm_therm_fan_ctor()
252 ret = nvkm_fannil_create(therm); in nvkm_therm_fan_ctor()
257 nv_info(therm, "FAN control: %s\n", priv->fan->type); in nvkm_therm_fan_ctor()
260 priv->fan->percent = nvkm_therm_fan_get(therm); in nvkm_therm_fan_ctor()
268 priv->fan->parent = therm; in nvkm_therm_fan_ctor()
273 nvkm_therm_fan_set_defaults(therm); in nvkm_therm_fan_ctor()
276 nv_debug(therm, "parsing the fan table failed\n"); in nvkm_therm_fan_ctor()
278 nv_error(therm, "parsing both fan tables failed\n"); in nvkm_therm_fan_ctor()
280 nvkm_therm_fan_safety_checks(therm); in nvkm_therm_fan_ctor()