Home
last modified time | relevance | path

Searched refs:actual_length (Results 1 – 25 of 27) sorted by relevance

12

/qemu/hw/usb/
H A Dcombined-packet.c54 int status, actual_length; in usb_combined_input_packet_complete() local
65 actual_length = combined->first->actual_length; in usb_combined_input_packet_complete()
71 if (actual_length >= p->iov.size) { in usb_combined_input_packet_complete()
72 p->actual_length = p->iov.size; in usb_combined_input_packet_complete()
75 p->actual_length = actual_length; in usb_combined_input_packet_complete()
88 actual_length -= p->actual_length; in usb_combined_input_packet_complete()
H A Dcore.c141 p->actual_length = 0; in do_token_setup()
178 p->actual_length = 8; in do_token_setup()
201 p->actual_length = 0; in do_token_in()
308 p->actual_length = 0; in do_parameter()
331 p->actual_length = 8; in usb_generic_async_ctrl_complete()
336 p->actual_length = 0; in usb_generic_async_ctrl_complete()
345 p->actual_length = 0; in usb_generic_async_ctrl_complete()
593 p->actual_length = 0; in usb_packet_setup()
611 assert(p->actual_length >= 0); in usb_packet_copy()
625 p->actual_length += bytes; in usb_packet_copy()
[all …]
H A Ddev-hid.c595 p->actual_length = sizeof(qemu_mouse_hid_report_descriptor); in usb_hid_handle_control()
599 p->actual_length = sizeof(qemu_tablet_hid_report_descriptor); in usb_hid_handle_control()
603 p->actual_length = sizeof(qemu_keyboard_hid_report_descriptor); in usb_hid_handle_control()
612 p->actual_length = hid_pointer_poll(hs, data, length); in usb_hid_handle_control()
614 p->actual_length = hid_keyboard_poll(hs, data, length); in usb_hid_handle_control()
619 p->actual_length = hid_keyboard_write(hs, data, length); in usb_hid_handle_control()
629 p->actual_length = 1; in usb_hid_handle_control()
639 p->actual_length = 1; in usb_hid_handle_control()
H A Dpcap.c189 if (packet.length > p->actual_length) { in do_usb_pcap_data()
190 packet.length = p->actual_length; in do_usb_pcap_data()
192 if (data_len > p->actual_length) { in do_usb_pcap_data()
193 data_len = p->actual_length; in do_usb_pcap_data()
H A Ddev-storage.c214 len = p->iov.size - p->actual_length; in usb_msd_copy_data()
257 if (p && p->actual_length == p->iov.size) { in usb_msd_transfer_data()
287 int len = (p->iov.size - p->actual_length); in usb_msd_command_complete()
379 p->actual_length = 1; in usb_msd_handle_control()
468 len = p->iov.size - p->actual_length; in usb_msd_handle_data()
480 if (p->actual_length < p->iov.size) { in usb_msd_handle_data()
529 len = p->iov.size - p->actual_length; in usb_msd_handle_data()
541 if (p->actual_length < p->iov.size && s->mode == USB_MSDM_DATAIN) { in usb_msd_handle_data()
H A Ddev-wacom.c333 p->actual_length = sizeof(qemu_wacom_hid_report_descriptor); in usb_wacom_handle_control()
349 p->actual_length = 2; in usb_wacom_handle_control()
354 p->actual_length = usb_mouse_poll(s, data, length); in usb_wacom_handle_control()
356 p->actual_length = usb_wacom_poll(s, data, length); in usb_wacom_handle_control()
360 p->actual_length = 1; in usb_wacom_handle_control()
H A Dhost-libusb.c432 r->p->actual_length = xfer->actual_length; in usb_host_req_complete_ctrl()
433 if (r->in && xfer->actual_length) { in usb_host_req_complete_ctrl()
436 memcpy(r->cbuf, r->buffer + 8, xfer->actual_length); in usb_host_req_complete_ctrl()
440 if (r->usb3ep0quirk && xfer->actual_length >= 18 && in usb_host_req_complete_ctrl()
453 xfer->actual_length > in usb_host_req_complete_ctrl()
461 r->p->status, r->p->actual_length); in usb_host_req_complete_ctrl()
482 if (r->in && xfer->actual_length) { in usb_host_req_complete_data()
483 usb_packet_copy(r->p, r->buffer, xfer->actual_length); in usb_host_req_complete_data()
486 r->p->status, r->p->actual_length); in usb_host_req_complete_data()
1528 p->status, p->actual_length); in usb_host_handle_control()
[all …]
H A Ddev-hub.c375 p->actual_length = 4; in usb_hub_handle_control()
392 p->actual_length = 4; in usb_hub_handle_control()
513 p->actual_length = sizeof(qemu_hub_hub_descriptor) + var_hub_size; in usb_hub_handle_control()
514 data[0] = p->actual_length; in usb_hub_handle_control()
H A Du2f.c173 p->actual_length = sizeof(u2f_key_hid_report_desc); in u2f_key_handle_control()
181 p->actual_length = 1; in u2f_key_handle_control()
H A Dcanokey.c178 p->actual_length = key->ep_in_size[0]; in canokey_handle_control()
179 trace_canokey_handle_control_in(p->actual_length); in canokey_handle_control()
H A Ddev-serial.c398 p->actual_length = 2; in usb_serial_handle_control()
413 p->actual_length = 1; in usb_serial_handle_control()
500 p->actual_length = p->iov.size; in usb_serial_handle_data()
H A Dredirect.c676 p->actual_length < p->iov.size && p->status == USB_RET_SUCCESS) { in usbredir_buffered_bulk_in_complete_raw()
678 if (count > (p->iov.size - p->actual_length)) { in usbredir_buffered_bulk_in_complete_raw()
679 count = p->iov.size - p->actual_length; in usbredir_buffered_bulk_in_complete_raw()
701 if ((p->actual_length % maxp) == 0) { in usbredir_buffered_bulk_in_complete_ftdi()
715 if (count > (maxp - (p->actual_length % maxp))) { in usbredir_buffered_bulk_in_complete_ftdi()
716 count = maxp - (p->actual_length % maxp); in usbredir_buffered_bulk_in_complete_ftdi()
728 ep, p->status, p->actual_length, p->id); in usbredir_buffered_bulk_in_complete()
1871 p->actual_length = 1; in usbredir_configuration_status()
1892 p->actual_length = 1; in usbredir_alt_setting_status()
2014 p->actual_length = len; in usbredir_control_packet()
[all …]
H A Dxen-usb.c280 int32_t actual_length, int32_t error_count) in usbback_do_response() argument
292 usbback_req->req.id, status, actual_length, error_count); in usbback_do_response()
320 res->actual_length = actual_length; in usbback_do_response()
367 usbback_do_response(usbback_req, status, packet->actual_length, 0); in usbback_packet_complete()
H A Dhcd-ehci.c1280 p->packet.status, p->packet.actual_length); in ehci_execute_complete()
1311 tbytes -= p->packet.actual_length; in ehci_execute_complete()
1325 ehci_finish_transfer(q, p->packet.actual_length); in ehci_execute_complete()
1390 p->packet.actual_length); in ehci_execute()
1392 if (p->packet.actual_length > BUFF_SIZE) { in ehci_execute()
1454 ehci->ipacket.actual_length = 0; in ehci_process_itd()
1470 ehci->ipacket.actual_length = 0; in ehci_process_itd()
1496 ehci->ipacket.actual_length = 0; in ehci_process_itd()
1500 set_field(&itd->transact[i], len - ehci->ipacket.actual_length, in ehci_process_itd()
1503 set_field(&itd->transact[i], ehci->ipacket.actual_length, in ehci_process_itd()
H A Ddev-audio.c845 p->actual_length = ret; in usb_audio_handle_control()
902 if (p->actual_length < p->iov.size && s->debug > 1) { in usb_audio_handle_dataout()
904 p->iov.size - p->actual_length); in usb_audio_handle_dataout()
H A Ddesc.c702 p->actual_length = ret; in usb_desc_get_descriptor()
733 p->actual_length = 1; in usb_desc_handle_control()
759 p->actual_length = 2; in usb_desc_handle_control()
790 p->actual_length = 1; in usb_desc_handle_control()
H A Ddev-uas.c501 req->data->iov.size - req->data->actual_length); in usb_uas_copy_data()
503 req->data->actual_length, req->data->iov.size, in usb_uas_copy_data()
510 if (req->data->actual_length == req->data->iov.size) { in usb_uas_copy_data()
898 if (p->actual_length == p->iov.size || req->complete) { in usb_uas_handle_data()
H A Ddev-network.c1102 p->actual_length = rndis_get_response(s, data); in usb_net_handle_control()
1103 if (p->actual_length == 0) { in usb_net_handle_control()
1105 p->actual_length = 1; in usb_net_handle_control()
1111 for (i = 0; i < p->actual_length; i++) { in usb_net_handle_control()
H A Ddesc-msos.c237 p->actual_length = length; in usb_desc_msos()
H A Dhcd-uhci.c693 len = async->packet.actual_length; in uhci_complete_td()
841 async->packet.actual_length = max_len; in uhci_handle_td()
H A Dhcd-ohci.c755 ret = pkt->actual_length; in ohci_service_iso_td()
1009 ret = ohci->usb_packet.actual_length; in ohci_service_td()
H A Ddev-mtp.c2023 if (p->actual_length == 0) { in usb_mtp_handle_data()
2028 trace_usb_mtp_xfer(s->dev.addr, p->ep->nr, p->actual_length, in usb_mtp_handle_data()
H A Dhcd-musb.c650 ep->status[dir] = ep->packey[dir].p.actual_length; in musb_packet()
/qemu/include/hw/xen/interface/io/
H A Dusbif.h378 int32_t actual_length; /* actual transfer length */ member
/qemu/include/hw/
H A Dusb.h401 int actual_length; /* Number of bytes actually transferred */ member

12