Home
last modified time | relevance | path

Searched refs:pulse_time (Results 1 – 1 of 1) sorted by relevance

/drivers/input/joystick/
Dwalkera0701.c129 u64 pulse_time; in walkera0701_irq_handler() local
133 pulse_time = w->irq_time - w->irq_lasttime; in walkera0701_irq_handler()
144 pulse_time -= BIN1_PULSE; in walkera0701_irq_handler()
147 pulse_time -= BIN0_PULSE; in walkera0701_irq_handler()
153 if (abs(pulse_time - SYNC_PULSE) < RESERVE) /* new frame sync */ in walkera0701_irq_handler()
156 if ((pulse_time > (ANALOG_MIN_PULSE - RESERVE) in walkera0701_irq_handler()
157 && (pulse_time < (ANALOG_MAX_PULSE + RESERVE)))) { in walkera0701_irq_handler()
158 pulse_time -= (ANALOG_MIN_PULSE - RESERVE); in walkera0701_irq_handler()
159 pulse_time = (u32) pulse_time / ANALOG_DELTA; /* overtiping is safe, pulsetime < s32.. */ in walkera0701_irq_handler()
160 w->buf[w->counter++] |= (pulse_time & 7); in walkera0701_irq_handler()
[all …]