Lines Matching refs:func
132 if (therm->func->fan_sense) in nvkm_therm_fan_sense()
133 return therm->func->fan_sense(therm); in nvkm_therm_fan_sense()
135 if (therm->fan->tach.func == DCB_GPIO_UNUSED) in nvkm_therm_fan_sense()
143 prev = nvkm_gpio_get(gpio, 0, therm->fan->tach.func, in nvkm_therm_fan_sense()
149 cur = nvkm_gpio_get(gpio, 0, therm->fan->tach.func, in nvkm_therm_fan_sense()
229 struct dcb_gpio_func func; in nvkm_therm_fan_ctor() local
233 ret = nvkm_gpio_find(gpio, 0, DCB_GPIO_FAN, 0xff, &func); in nvkm_therm_fan_ctor()
236 if (func.line != 16 && func.log[0] & DCB_GPIO_LOG_DIR_IN) { in nvkm_therm_fan_ctor()
240 ret = nvkm_fanpwm_create(therm, &func); in nvkm_therm_fan_ctor()
242 ret = nvkm_fantog_create(therm, &func); in nvkm_therm_fan_ctor()
262 therm->fan->tach.func = DCB_GPIO_UNUSED; in nvkm_therm_fan_ctor()