Lines Matching refs:pwm_fan_ctx
38 struct pwm_fan_ctx {
77 struct pwm_fan_ctx *ctx = from_timer(ctx, t, rpm_timer);
121 static int pwm_fan_switch_power(struct pwm_fan_ctx *ctx, bool on)
140 static int pwm_fan_power_on(struct pwm_fan_ctx *ctx)
170 static int pwm_fan_power_off(struct pwm_fan_ctx *ctx)
198 static int __set_pwm(struct pwm_fan_ctx *ctx, unsigned long pwm)
224 static int set_pwm(struct pwm_fan_ctx *ctx, unsigned long pwm)
235 static void pwm_fan_update_state(struct pwm_fan_ctx *ctx, unsigned long pwm)
246 static int pwm_fan_update_enable(struct pwm_fan_ctx *ctx, long val)
296 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev);
325 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev);
373 struct pwm_fan_ctx *ctx = cdev->devdata;
386 struct pwm_fan_ctx *ctx = cdev->devdata;
399 struct pwm_fan_ctx *ctx = cdev->devdata;
425 static int pwm_fan_get_cooling_data(struct device *dev, struct pwm_fan_ctx *ctx)
466 struct pwm_fan_ctx *ctx = __ctx;
478 struct pwm_fan_ctx *ctx;
655 struct pwm_fan_ctx *ctx = platform_get_drvdata(pdev);
662 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev);
669 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev);