Lines Matching refs:event_r_idx
6684 if (lstate->event_w_idx >= lstate->event_r_idx)
6685 pending = lstate->event_w_idx - lstate->event_r_idx;
6688 - (lstate->event_r_idx - lstate->event_w_idx);
6698 lstate->event_r_idx = 0;
6706 lstate->event_buffer[lstate->event_r_idx].event_type,
6707 lstate->event_buffer[lstate->event_r_idx].event_arg);
6708 lstate->event_r_idx++;
6709 if (lstate->event_r_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
6710 lstate->event_r_idx = 0;
6733 while (lstate->event_r_idx != lstate->event_w_idx
6737 event = &lstate->event_buffer[lstate->event_r_idx];
6753 lstate->event_r_idx++;
6754 if (lstate->event_r_idx == AHC_TMODE_EVENT_BUFFER_SIZE)
6755 lstate->event_r_idx = 0;