Searched refs:hidraw_fd (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/tools/testing/selftests/hid/ |
H A D | hid_bpf.c | 443 int hidraw_fd; in FIXTURE() local 453 if (self->hidraw_fd) in detach_bpf() 454 close(self->hidraw_fd); in detach_bpf() 455 self->hidraw_fd = 0; in detach_bpf() 563 self->hidraw_fd = open_hidraw(self->dev_id); in load_programs() 605 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F() 621 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F() 650 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F() 669 self->hidraw_fd = open_hidraw(self->dev_id); in TEST_F() 680 err = read(self->hidraw_fd, buf, sizeof(buf)); in TEST_F() [all …]
|
/openbmc/qemu/hw/usb/ |
H A D | u2f-passthru.c | 65 int hidraw_fd; member 121 qemu_set_fd_handler(key->hidraw_fd, NULL, NULL, key); in u2f_passthru_reset() 251 qemu_set_fd_handler(key->hidraw_fd, u2f_passthru_read, NULL, key); in u2f_transaction_start() 317 ret = read(key->hidraw_fd, packet, sizeof(packet)); in u2f_passthru_read() 346 written = write(key->hidraw_fd, host_packet, sizeof(host_packet)); in u2f_passthru_recv_from_guest() 464 qemu_close(key->hidraw_fd); in u2f_passthru_unrealize() 497 key->hidraw_fd = fd; in u2f_passthru_realize()
|