Lines Matching refs:ev_idx
106 unsigned int ev_idx = new_ev->event - 1; in cec_queue_event_fh() local
108 if (WARN_ON(ev_idx >= ARRAY_SIZE(fh->events))) in cec_queue_event_fh()
115 if (ev_idx < CEC_NUM_CORE_EVENTS) in cec_queue_event_fh()
116 entry = &fh->core_events[ev_idx]; in cec_queue_event_fh()
121 fh->queued_events[ev_idx]) { in cec_queue_event_fh()
129 if (fh->queued_events[ev_idx] < max_events[ev_idx]) { in cec_queue_event_fh()
131 list_add_tail(&entry->list, &fh->events[ev_idx]); in cec_queue_event_fh()
132 fh->queued_events[ev_idx]++; in cec_queue_event_fh()
137 if (ev_idx >= CEC_NUM_CORE_EVENTS) { in cec_queue_event_fh()
138 list_add_tail(&entry->list, &fh->events[ev_idx]); in cec_queue_event_fh()
140 entry = list_first_entry(&fh->events[ev_idx], in cec_queue_event_fh()
147 entry = list_first_entry_or_null(&fh->events[ev_idx], in cec_queue_event_fh()