Lines Matching refs:hidraw_fd
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()
310 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
329 self->hidraw_fd = open_hidraw(self->dev_id); in TEST_F()
330 ASSERT_GE(self->hidraw_fd, 0) TH_LOG("open_hidraw"); in TEST_F()
340 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
359 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
389 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
424 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
435 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
546 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
558 err = ioctl(self->hidraw_fd, HIDIOCGFEATURE(sizeof(buf)), buf); in TEST_F()
568 self->hidraw_fd = open_hidraw(self->dev_id); in TEST_F()
569 ASSERT_GE(self->hidraw_fd, 0) TH_LOG("open_hidraw"); in TEST_F()
571 err = ioctl(self->hidraw_fd, HIDIOCGFEATURE(sizeof(buf)), buf); in TEST_F()
594 err = ioctl(self->hidraw_fd, HIDIOCGFEATURE(sizeof(buf)), buf); in TEST_F()
620 err = ioctl(self->hidraw_fd, HIDIOCGFEATURE(sizeof(buf)), buf); in TEST_F()
648 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
660 err = write(self->hidraw_fd, buf, 3); in TEST_F()
670 self->hidraw_fd = open_hidraw(self->dev_id); in TEST_F()
671 ASSERT_GE(self->hidraw_fd, 0) TH_LOG("open_hidraw"); in TEST_F()
673 err = write(self->hidraw_fd, buf, 3); in TEST_F()
697 err = write(self->hidraw_fd, buf, 10); in TEST_F()
721 err = write(self->hidraw_fd, buf, 8); in TEST_F()
749 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
758 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
787 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
794 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
823 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
830 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
837 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
874 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F()
900 err = ioctl(self->hidraw_fd, HIDIOCGRDESCSIZE, &desc_size); in TEST_F()
907 err = ioctl(self->hidraw_fd, HIDIOCGRDESC, &rpt_desc); in TEST_F()