Lines Matching refs:pulse_time
133 u64 pulse_time;
137 pulse_time = w->irq_time - w->irq_lasttime;
148 pulse_time -= BIN1_PULSE;
151 pulse_time -= BIN0_PULSE;
157 if (abs(pulse_time - SYNC_PULSE) < RESERVE) /* new frame sync */
160 if ((pulse_time > (ANALOG_MIN_PULSE - RESERVE)
161 && (pulse_time < (ANALOG_MAX_PULSE + RESERVE)))) {
162 pulse_time -= (ANALOG_MIN_PULSE - RESERVE);
163 pulse_time = (u32) pulse_time / ANALOG_DELTA; /* overtiping is safe, pulsetime < s32.. */
164 w->buf[w->counter++] |= (pulse_time & 7);
168 } else if (abs(pulse_time - SYNC_PULSE - BIN0_PULSE) <