Searched refs:hidraw_fd (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/hid/ |
H A D | hidraw.c | 14 int hidraw_fd; in FIXTURE() local 20 if (self->hidraw_fd) in close_hidraw() 21 close(self->hidraw_fd); in close_hidraw() 22 self->hidraw_fd = 0; in close_hidraw() 58 self->hidraw_fd = open_hidraw(self->dev_id); in FIXTURE_SETUP() 59 ASSERT_GE(self->hidraw_fd, 0) TH_LOG("open_hidraw"); in FIXTURE_SETUP() 86 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F() 108 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F() 114 err = ioctl(self->hidraw_fd, HIDIOCREVOKE, NULL); in TEST_F() 124 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F() [all …]
|
H A D | hid_bpf.c | 26 int hidraw_fd; in FIXTURE() local 36 if (self->hidraw_fd) in detach_bpf() 37 close(self->hidraw_fd); in detach_bpf() 38 self->hidraw_fd = 0; in detach_bpf() 160 self->hidraw_fd = open_hidraw(self->dev_id); in load_programs() 161 ASSERT_GE(self->hidraw_fd, 0) TH_LOG("open_hidraw"); in load_programs() 202 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F() 218 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F() 246 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F() 259 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F() [all …]
|