Home
last modified time | relevance | path

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

/openbmc/qemu/hw/usb/
H A Du2f.c81 .wMaxPacketSize = U2FHID_PACKET_SIZE,
86 .wMaxPacketSize = U2FHID_PACKET_SIZE,
95 .bMaxPacketSize0 = U2FHID_PACKET_SIZE,
197 uint8_t packet[U2FHID_PACKET_SIZE]; in u2f_key_recv_from_guest()
199 if (kc->recv_from_guest == NULL || p->iov.size != U2FHID_PACKET_SIZE) { in u2f_key_recv_from_guest()
208 const uint8_t packet[U2FHID_PACKET_SIZE]) in u2f_pending_in_add() argument
220 memcpy(key->pending_in[index], packet, U2FHID_PACKET_SIZE); in u2f_pending_in_add()
259 usb_packet_copy(p, packet_in, U2FHID_PACKET_SIZE); in u2f_key_handle_data()
268 const uint8_t packet[U2FHID_PACKET_SIZE]) in u2f_send_to_guest() argument
312 U2FHID_PENDING_IN_NUM, U2FHID_PACKET_SIZE),
H A Du2f.h31 #define U2FHID_PACKET_SIZE 64 macro
49 const uint8_t packet[U2FHID_PACKET_SIZE]);
63 uint8_t pending_in[U2FHID_PENDING_IN_NUM][U2FHID_PACKET_SIZE];
74 const uint8_t packet[U2FHID_PACKET_SIZE]);
H A Du2f-emulated.c86 uint8_t pending_out[PENDING_OUT_NUM][U2FHID_PACKET_SIZE];
112 const uint8_t packet[U2FHID_PACKET_SIZE]) in u2f_pending_out_add() argument
124 memcpy(&key->pending_out[index], packet, U2FHID_PACKET_SIZE); in u2f_pending_out_add()
143 const uint8_t packet[U2FHID_PACKET_SIZE]) in u2f_emulated_recv_from_guest() argument
159 uint8_t packet[U2FHID_PACKET_SIZE]; in u2f_emulated_thread()
181 memcpy(packet, packet_out, U2FHID_PACKET_SIZE); in u2f_emulated_thread()
186 U2FHID_PACKET_SIZE); in u2f_emulated_thread()
290 if (packet_size == U2FHID_PACKET_SIZE) { in u2f_emulated_event_handler()
H A Du2f-passthru.c84 #define PACKET_INIT_DATA_SIZE (U2FHID_PACKET_SIZE - PACKET_INIT_HEADER_SIZE)
88 #define PACKET_CONT_DATA_SIZE (U2FHID_PACKET_SIZE - PACKET_CONT_HEADER_SIZE)
259 const uint8_t packet[U2FHID_PACKET_SIZE]) in u2f_passthru_recv_from_host() argument
309 uint8_t packet[2 * U2FHID_PACKET_SIZE]; in u2f_passthru_read()
326 if (ret != U2FHID_PACKET_SIZE) { in u2f_passthru_read()
333 const uint8_t packet[U2FHID_PACKET_SIZE]) in u2f_passthru_recv_from_guest() argument
336 uint8_t host_packet[U2FHID_PACKET_SIZE + 1]; in u2f_passthru_recv_from_guest()
344 memcpy(host_packet + 1, packet, U2FHID_PACKET_SIZE); in u2f_passthru_recv_from_guest()