Lines Matching refs:tach
67 struct pwm_fan_tach *tach = dev_id; in pulse_handler() local
69 atomic_inc(&tach->pulses); in pulse_handler()
82 struct pwm_fan_tach *tach = &ctx->tachs[i]; in sample_timer() local
85 pulses = atomic_read(&tach->pulses); in sample_timer()
86 atomic_sub(pulses, &tach->pulses); in sample_timer()
87 tach->rpm = (unsigned int)(pulses * 1000 * 60) / in sample_timer()
88 (tach->pulses_per_revolution * delta); in sample_timer()
575 struct pwm_fan_tach *tach = &ctx->tachs[i]; in pwm_fan_probe() local
578 tach->irq = platform_get_irq(pdev, i); in pwm_fan_probe()
579 if (tach->irq == -EPROBE_DEFER) in pwm_fan_probe()
580 return tach->irq; in pwm_fan_probe()
581 if (tach->irq > 0) { in pwm_fan_probe()
582 ret = devm_request_irq(dev, tach->irq, pulse_handler, 0, in pwm_fan_probe()
583 pdev->name, tach); in pwm_fan_probe()
596 tach->pulses_per_revolution = ppr; in pwm_fan_probe()
597 if (!tach->pulses_per_revolution) { in pwm_fan_probe()
605 i, tach->irq, tach->pulses_per_revolution); in pwm_fan_probe()