Lines Matching refs:therm
43 nvkm_fanpwm_get(struct nvkm_therm *therm)
45 struct nvkm_fanpwm *fan = (void *)therm->fan;
46 struct nvkm_device *device = therm->subdev.device;
52 ret = therm->func->pwm_get(therm, fan->func.line, &divs, &duty);
64 nvkm_fanpwm_set(struct nvkm_therm *therm, int percent)
66 struct nvkm_fanpwm *fan = (void *)therm->fan;
67 int card_type = therm->subdev.device->card_type;
74 if (therm->func->pwm_clock)
75 divs = therm->func->pwm_clock(therm, fan->func.line);
83 ret = therm->func->pwm_set(therm, fan->func.line, divs, duty);
85 ret = therm->func->pwm_ctrl(therm, fan->func.line, true);
90 nvkm_fanpwm_create(struct nvkm_therm *therm, struct dcb_gpio_func *func)
92 struct nvkm_device *device = therm->subdev.device;
101 !therm->func->pwm_ctrl || info.type == NVBIOS_THERM_FAN_TOGGLE ||
102 therm->func->pwm_get(therm, func->line, &divs, &duty) == -ENODEV)
106 therm->fan = &fan->base;