Home
last modified time | relevance | path

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

/openbmc/linux/drivers/media/cec/core/
H A Dcec-adap.c85 unsigned int ev_idx = new_ev->event - 1; in cec_queue_event_fh() local
87 if (WARN_ON(ev_idx >= ARRAY_SIZE(fh->events))) in cec_queue_event_fh()
94 if (ev_idx < CEC_NUM_CORE_EVENTS) in cec_queue_event_fh()
95 entry = &fh->core_events[ev_idx]; in cec_queue_event_fh()
100 fh->queued_events[ev_idx]) { in cec_queue_event_fh()
108 if (fh->queued_events[ev_idx] < max_events[ev_idx]) { in cec_queue_event_fh()
110 list_add_tail(&entry->list, &fh->events[ev_idx]); in cec_queue_event_fh()
111 fh->queued_events[ev_idx]++; in cec_queue_event_fh()
116 if (ev_idx >= CEC_NUM_CORE_EVENTS) { in cec_queue_event_fh()
117 list_add_tail(&entry->list, &fh->events[ev_idx]); in cec_queue_event_fh()
[all …]
H A Dcec-api.c314 unsigned int ev_idx; in cec_dqevent() local
335 ev_idx = i; in cec_dqevent()
348 if (ev_idx >= CEC_NUM_CORE_EVENTS) in cec_dqevent()
350 fh->queued_events[ev_idx]--; in cec_dqevent()
/openbmc/linux/drivers/scsi/
H A Dmyrs.c814 int ev_idx = 0, ev_code; in myrs_log_event() local
836 ev_code = myrs_ev_list[ev_idx].ev_code; in myrs_log_event()
839 ev_idx++; in myrs_log_event()
841 ev_type = myrs_ev_list[ev_idx].ev_msg[0]; in myrs_log_event()
842 ev_msg = &myrs_ev_list[ev_idx].ev_msg[2]; in myrs_log_event()