Lines Matching refs:func
35 struct dcb_gpio_func func; member
48 ret = therm->pwm_get(therm, priv->func.line, &divs, &duty); in nvkm_fanpwm_get()
51 if (card_type <= NV_40 || (priv->func.log[0] & 1)) in nvkm_fanpwm_get()
56 return gpio->get(gpio, 0, priv->func.func, priv->func.line) * 100; in nvkm_fanpwm_get()
72 divs = therm->pwm_clock(therm, priv->func.line); in nvkm_fanpwm_set()
77 if (card_type <= NV_40 || (priv->func.log[0] & 1)) 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
98 if (!nvkm_boolopt(device->cfgopt, "NvFanPWM", func->param) || in nvkm_fanpwm_create()
100 therm->pwm_get(therm, func->line, &divs, &duty) == -ENODEV) in nvkm_fanpwm_create()
111 priv->func = *func; in nvkm_fanpwm_create()