Lines Matching defs:ctx
56 struct pwm_fan_ctx *ctx = dev_id; in pulse_handler() local
65 struct pwm_fan_ctx *ctx = from_timer(ctx, t, rpm_timer); in sample_timer() local
81 static int __set_pwm(struct pwm_fan_ctx *ctx, unsigned long pwm) in __set_pwm()
104 static void pwm_fan_update_state(struct pwm_fan_ctx *ctx, unsigned long pwm) in pwm_fan_update_state()
118 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev); in pwm_store() local
136 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev); in pwm_show() local
144 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev); in rpm_show() local
162 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev); in pwm_fan_attrs_visible() local
185 struct pwm_fan_ctx *ctx = cdev->devdata; in pwm_fan_get_max_state() local
198 struct pwm_fan_ctx *ctx = cdev->devdata; in pwm_fan_get_cur_state() local
211 struct pwm_fan_ctx *ctx = cdev->devdata; in pwm_fan_set_cur_state() local
238 struct pwm_fan_ctx *ctx) in pwm_fan_of_get_cooling_data()
285 struct pwm_fan_ctx *ctx = __ctx; in pwm_fan_pwm_disable() local
328 static int pwm_fan_temp_to_state(struct pwm_fan_ctx *ctx, int temp) in pwm_fan_temp_to_state()
344 struct pwm_fan_ctx *ctx = container_of(nb, struct pwm_fan_ctx, thermal_nb); in pwm_fan_thermal_notifier_call() local
367 struct pwm_fan_ctx *ctx) in pwm_fan_register_thermal_notifier()
382 struct pwm_fan_ctx *ctx; in pwm_fan_probe() local
507 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev); in pwm_fan_disable() local
545 struct pwm_fan_ctx *ctx = dev_get_drvdata(dev); in pwm_fan_resume() local