Lines Matching refs:tach
55 struct pwm_fan_tach *tach = dev_id; in pulse_handler() local
57 atomic_inc(&tach->pulses); in pulse_handler()
70 struct pwm_fan_tach *tach = &ctx->tachs[i]; in sample_timer() local
73 pulses = atomic_read(&tach->pulses); in sample_timer()
74 atomic_sub(pulses, &tach->pulses); in sample_timer()
75 tach->rpm = (unsigned int)(pulses * 1000 * 60) / in sample_timer()
76 (tach->pulses_per_revolution * delta); in sample_timer()
383 struct pwm_fan_tach *tach = &ctx->tachs[i]; in pwm_fan_probe() local
386 tach->irq = platform_get_irq(pdev, i); in pwm_fan_probe()
387 if (tach->irq == -EPROBE_DEFER) in pwm_fan_probe()
388 return tach->irq; in pwm_fan_probe()
389 if (tach->irq > 0) { in pwm_fan_probe()
390 ret = devm_request_irq(dev, tach->irq, pulse_handler, 0, in pwm_fan_probe()
391 pdev->name, tach); in pwm_fan_probe()
404 tach->pulses_per_revolution = ppr; in pwm_fan_probe()
405 if (!tach->pulses_per_revolution) { in pwm_fan_probe()
413 i, tach->irq, tach->pulses_per_revolution); in pwm_fan_probe()