Lines Matching defs:func
34 struct dcb_gpio_func func;
47 ret = therm->func->pwm_get(therm, fan->func.line, &divs, &duty);
50 if (card_type <= NV_40 || (fan->func.log[0] & 1))
55 return nvkm_gpio_get(gpio, 0, fan->func.func, fan->func.line) * 100;
69 if (therm->func->pwm_clock)
70 divs = therm->func->pwm_clock(therm, fan->func.line);
75 if (card_type <= NV_40 || (fan->func.log[0] & 1))
78 ret = therm->func->pwm_set(therm, fan->func.line, divs, duty);
80 ret = therm->func->pwm_ctrl(therm, fan->func.line, true);
85 nvkm_fanpwm_create(struct nvkm_therm *therm, struct dcb_gpio_func *func)
95 if (!nvkm_boolopt(device->cfgopt, "NvFanPWM", func->param) ||
96 !therm->func->pwm_ctrl || info.type == NVBIOS_THERM_FAN_TOGGLE ||
97 therm->func->pwm_get(therm, func->line, &divs, &duty) == -ENODEV)
108 fan->func = *func;