Home
last modified time | relevance | path

Searched refs:iev (Results 1 – 4 of 4) sorted by relevance

/external/ltp/testcases/kernel/input/
Dinput01.c35 static int verify_data(struct input_event *iev, int nb);
102 struct input_event iev[64]; in check_events() local
107 rd = read(fd2, iev, sizeof(iev)); in check_events()
118 if (verify_data(&iev[i], nb++)) in check_events()
126 static int verify_data(struct input_event *iev, int nb) in verify_data() argument
129 if (iev->type != EV_REL) { in verify_data()
132 nb, iev->type, EV_REL); in verify_data()
136 if (iev->code != REL_X) in verify_data()
139 if (iev->value != 10) in verify_data()
146 if (iev->type != EV_REL) { in verify_data()
[all …]
Dinput06.c113 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()
[all …]
Dinput_helper.c232 int check_event_code(struct input_event *iev, int event, int code) in check_event_code() argument
234 return iev->type == event && iev->code == code; in check_event_code()
237 int check_sync_event(struct input_event *iev) in check_sync_event() argument
239 return check_event_code(iev, EV_SYN, SYN_REPORT); in check_sync_event()
Dinput_helper.h32 int check_event_code(struct input_event *iev, int event, int code);
33 int check_sync_event(struct input_event *iev);