Lines Matching refs:therm
38 nvkm_fanpwm_get(struct nvkm_therm *therm) in nvkm_fanpwm_get() argument
40 struct nvkm_fanpwm *fan = (void *)therm->fan; in nvkm_fanpwm_get()
41 struct nvkm_device *device = therm->subdev.device; in nvkm_fanpwm_get()
47 ret = therm->func->pwm_get(therm, fan->func.line, &divs, &duty); in nvkm_fanpwm_get()
59 nvkm_fanpwm_set(struct nvkm_therm *therm, int percent) in nvkm_fanpwm_set() argument
61 struct nvkm_fanpwm *fan = (void *)therm->fan; in nvkm_fanpwm_set()
62 int card_type = therm->subdev.device->card_type; in nvkm_fanpwm_set()
69 if (therm->func->pwm_clock) in nvkm_fanpwm_set()
70 divs = therm->func->pwm_clock(therm, fan->func.line); in nvkm_fanpwm_set()
78 ret = therm->func->pwm_set(therm, fan->func.line, divs, duty); in nvkm_fanpwm_set()
80 ret = therm->func->pwm_ctrl(therm, fan->func.line, true); in nvkm_fanpwm_set()
85 nvkm_fanpwm_create(struct nvkm_therm *therm, struct dcb_gpio_func *func) in nvkm_fanpwm_create() argument
87 struct nvkm_device *device = therm->subdev.device; in nvkm_fanpwm_create()
96 !therm->func->pwm_ctrl || info.type == NVBIOS_THERM_FAN_TOGGLE || in nvkm_fanpwm_create()
97 therm->func->pwm_get(therm, func->line, &divs, &duty) == -ENODEV) in nvkm_fanpwm_create()
101 therm->fan = &fan->base; in nvkm_fanpwm_create()