Lines Matching refs:therm
39 nvkm_fanpwm_get(struct nvkm_therm *therm) in nvkm_fanpwm_get() argument
41 struct nvkm_therm_priv *tpriv = (void *)therm; in nvkm_fanpwm_get()
43 struct nvkm_gpio *gpio = nvkm_gpio(therm); in nvkm_fanpwm_get()
44 int card_type = nv_device(therm)->card_type; in nvkm_fanpwm_get()
48 ret = therm->pwm_get(therm, priv->func.line, &divs, &duty); in nvkm_fanpwm_get()
60 nvkm_fanpwm_set(struct nvkm_therm *therm, int percent) in nvkm_fanpwm_set() argument
62 struct nvkm_therm_priv *tpriv = (void *)therm; in nvkm_fanpwm_set()
64 int card_type = nv_device(therm)->card_type; in nvkm_fanpwm_set()
71 if (therm->pwm_clock) in nvkm_fanpwm_set()
72 divs = therm->pwm_clock(therm, priv->func.line); in nvkm_fanpwm_set()
80 ret = therm->pwm_set(therm, priv->func.line, divs, duty); in nvkm_fanpwm_set()
82 ret = therm->pwm_ctrl(therm, priv->func.line, true); in nvkm_fanpwm_set()
87 nvkm_fanpwm_create(struct nvkm_therm *therm, struct dcb_gpio_func *func) in nvkm_fanpwm_create() argument
89 struct nvkm_device *device = nv_device(therm); in nvkm_fanpwm_create()
90 struct nvkm_therm_priv *tpriv = (void *)therm; in nvkm_fanpwm_create()
91 struct nvkm_bios *bios = nvkm_bios(therm); in nvkm_fanpwm_create()
99 !therm->pwm_ctrl || fan.type == NVBIOS_THERM_FAN_TOGGLE || in nvkm_fanpwm_create()
100 therm->pwm_get(therm, func->line, &divs, &duty) == -ENODEV) in nvkm_fanpwm_create()