Lines Matching refs:tach
68 struct pwm_fan_tach *tach = dev_id; in pulse_handler() local
70 atomic_inc(&tach->pulses); in pulse_handler()
83 struct pwm_fan_tach *tach = &ctx->tachs[i]; in sample_timer() local
86 pulses = atomic_read(&tach->pulses); in sample_timer()
87 atomic_sub(pulses, &tach->pulses); in sample_timer()
88 tach->rpm = (unsigned int)(pulses * 1000 * 60) / in sample_timer()
589 struct pwm_fan_tach *tach = &ctx->tachs[i]; in pwm_fan_probe() local
591 tach->irq = platform_get_irq(pdev, i); in pwm_fan_probe()
592 if (tach->irq == -EPROBE_DEFER) in pwm_fan_probe()
593 return tach->irq; in pwm_fan_probe()
594 if (tach->irq > 0) { in pwm_fan_probe()
595 ret = devm_request_irq(dev, tach->irq, pulse_handler, 0, in pwm_fan_probe()
596 pdev->name, tach); in pwm_fan_probe()
613 i, tach->irq, ctx->pulses_per_revolution[i]); in pwm_fan_probe()