Lines Matching refs:iev
113 static int check_event(struct input_event *iev, int event, int code, int value) in check_event() argument
115 return iev->type == event && iev->code == code && iev->value == value; in check_event()
149 static int parse_autorepeat_config(struct input_event *iev) in parse_autorepeat_config() argument
151 if (!check_event_code(iev, EV_REP, REP_DELAY)) { in parse_autorepeat_config()
166 static int parse_key(struct input_event *iev) in parse_key() argument
170 if (!check_event(iev, EV_KEY, KEY_X, 1) || !check_sync_event(next_event())) { in parse_key()
175 iev = next_event(); in parse_key()
176 while (check_event(iev, EV_KEY, KEY_X, 2) && check_sync_event(next_event())) { in parse_key()
178 iev = next_event(); in parse_key()
188 if (!check_event(iev, EV_KEY, KEY_X, 0) || !check_sync_event(next_event())) { in parse_key()
202 struct input_event *iev; in check_events() local
210 iev = next_event(); in check_events()
211 switch (iev->type) { in check_events()
213 ret = parse_autorepeat_config(iev); in check_events()
217 ret = parse_key(iev); in check_events()
223 iev->type); in check_events()