/third_party/FreeBSD/sys/dev/usb/net/ |
D | if_cdce.c | 695 int actlen, aframes; in cdce_bulk_write_callback() local 699 usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL); in cdce_bulk_write_callback() 703 DPRINTFN(10, "transfer complete: %u bytes in %u frames\n",actlen, aframes); in cdce_bulk_write_callback() 858 int actlen; in cdce_bulk_read_callback() local 863 usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL); in cdce_bulk_read_callback() 868 DPRINTF("received %u bytes in %u frames\n", actlen, aframes); in cdce_bulk_read_callback() 934 int actlen; in cdce_intr_read_callback() local 938 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL); in cdce_intr_read_callback() 943 DPRINTF("cdce_intr_read_callback Received %d bytes\n", actlen); in cdce_intr_read_callback() 971 int actlen; in cdce_intr_write_callback() local [all …]
|
D | if_urndis.c | 842 int actlen; in urndis_bulk_read_callback() local 848 usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL); in urndis_bulk_read_callback() 850 DPRINTFN(1, "received %u bytes in %u frames\n", actlen, aframes); in urndis_bulk_read_callback() 852 for (offset = 0; actlen >= (int)sizeof(msg);) { in urndis_bulk_read_callback() 887 } else if (msg.rm_len > (uint32_t)actlen) { in urndis_bulk_read_callback() 889 "len %u\n", msg.rm_len, actlen); in urndis_bulk_read_callback() 891 } else if (msg.rm_dataoffset >= (uint32_t)actlen) { in urndis_bulk_read_callback() 893 "dataoffset %u\n", msg.rm_dataoffset, actlen); in urndis_bulk_read_callback() 895 } else if (msg.rm_datalen > (uint32_t)actlen) { in urndis_bulk_read_callback() 897 "datalen %u\n", msg.rm_datalen, actlen); in urndis_bulk_read_callback() [all …]
|
D | if_axge.c | 45 static void axge_rx_frame(struct usb_ether *ue, struct usb_page_cache *pc, int actlen); 453 int actlen; in axge_bulk_read_callback() local 455 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL); in axge_bulk_read_callback() 459 axge_rx_frame(ue, pc, actlen); in axge_bulk_read_callback() 519 axge_rx_frame(struct usb_ether *ue, struct usb_page_cache *pc, int actlen) in axge_rx_frame() argument 529 if (actlen < (int)sizeof(rxhdr)) in axge_rx_frame() 534 usbd_copy_out(pc, actlen - sizeof(rxhdr), &rxhdr, sizeof(rxhdr)); in axge_rx_frame() 542 if ((int)(hdr_off + sizeof(pkt_hdr)) > actlen) { in axge_rx_frame() 546 if ((int)pos >= actlen) { in axge_rx_frame() 557 if (pktlen >= 6 && (int)(pos + pktlen) <= actlen) { in axge_rx_frame()
|
D | if_axe.c | 755 int actlen; in axe_bulk_read_callback() local 757 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL); in axe_bulk_read_callback() 761 (void) axe_rx_frame(ue, pc, actlen); in axe_bulk_read_callback() 783 axe_rx_frame(struct usb_ether *ue, struct usb_page_cache *pc, int actlen) in axe_rx_frame() argument 795 while (pos < actlen) { in axe_rx_frame() 796 if ((int)(pos + sizeof(hdr)) > actlen) { in axe_rx_frame() 810 if (pos + len > actlen) { in axe_rx_frame() 819 while (pos < actlen) { in axe_rx_frame() 820 if ((int)(pos + sizeof(csum_hdr)) > actlen) { in axe_rx_frame() 844 if (pos + len > actlen) { in axe_rx_frame() [all …]
|
/third_party/FreeBSD/sys/dev/usb/storage/ |
D | umass.c | 413 uint32_t actlen; /* bytes */ member 1210 sc->sc_transfer.actlen), STATUS_WIRE_FAILED); in umass_cancel_ccb() 1460 int actlen, sumlen; in umass_t_bbb_data_callback() local 1462 usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL); in umass_t_bbb_data_callback() 1466 sc->sc_transfer.data_rem -= actlen; in umass_t_bbb_data_callback() 1467 sc->sc_transfer.data_ptr += actlen; in umass_t_bbb_data_callback() 1468 sc->sc_transfer.actlen += actlen; in umass_t_bbb_data_callback() 1470 if (actlen < sumlen) { in umass_t_bbb_data_callback() 1536 int actlen; in umass_t_bbb_status_callback() local 1538 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL); in umass_t_bbb_status_callback() [all …]
|
/third_party/FreeBSD/sys/dev/usb/ |
D | usb_request.c | 375 uint16_t *actlen, usb_timeout_t timeout) in usbd_do_request_flags() argument 419 if (actlen) in usbd_do_request_flags() 420 *actlen = 0; in usbd_do_request_flags() 468 if (actlen) in usbd_do_request_flags() 469 *actlen = length; in usbd_do_request_flags() 651 if (actlen) { in usbd_do_request_flags() 652 (*actlen) += temp; in usbd_do_request_flags() 710 uint16_t *actlen, usb_timeout_t timeout) in usbd_do_request_proc() argument 726 req, data, flags, actlen, timeout); in usbd_do_request_proc() 734 else if (actlen && *actlen != len) in usbd_do_request_proc() [all …]
|
D | usb_generic.c | 357 DPRINTFN(4, "actlen=%u, aframes=%u\n", xfer->actlen, xfer->aframes); in ugen_ctrl_read_callback() 361 if (xfer->actlen == 0) { in ugen_ctrl_read_callback() 377 xfer->actlen, 1); in ugen_ctrl_read_callback() 407 usb_frlength_t actlen; in ugen_ctrl_write_callback() local 409 DPRINTFN(4, "actlen=%u, aframes=%u\n", xfer->actlen, xfer->aframes); in ugen_ctrl_write_callback() 426 xfer->max_data_length, &actlen, 0)) { in ugen_ctrl_write_callback() 427 usbd_xfer_set_frame_len(xfer, 0, actlen); in ugen_ctrl_write_callback() 482 DPRINTFN(4, "actlen=%u, aframes=%u\n", xfer->actlen, xfer->aframes); in ugen_isoc_read_callback() 487 DPRINTFN(6, "actlen=%d\n", xfer->actlen); in ugen_isoc_read_callback() 518 usb_frlength_t actlen; in ugen_isoc_write_callback() local [all …]
|
D | usbdi.h | 533 uint16_t *actlen, usb_timeout_t timeout); 565 void usbd_xfer_status(struct usb_xfer *xfer, int *actlen, int *sumlen, 635 usb_frlength_t offset, usb_frlength_t len, usb_frlength_t *actlen, 638 usb_size_t len, usb_size_t *actlen, uint8_t what);
|
D | usb_transfer.c | 1652 xfer->actlen = 0; in usbd_transfer_submit() 2113 usbd_xfer_status(struct usb_xfer *xfer, int *actlen, int *sumlen, int *aframes, in usbd_xfer_status() argument 2116 if (actlen != NULL) in usbd_xfer_status() 2117 *actlen = xfer->actlen; in usbd_xfer_status() 2839 xfer->actlen = 0; in usbd_callback_wrapper_sub() 2842 xfer->actlen += xfer->frlengths[x]; in usbd_callback_wrapper_sub() 2855 if (xfer->actlen > xfer->sumlen) { in usbd_callback_wrapper_sub() 2859 __FUNCTION__, xfer->actlen, xfer->sumlen); in usbd_callback_wrapper_sub() 2862 xfer->actlen = xfer->sumlen; in usbd_callback_wrapper_sub() 2866 xfer, xfer->endpoint, xfer->error, xfer->actlen, xfer->sumlen, in usbd_callback_wrapper_sub() [all …]
|
D | usb_dev.c | 1813 usb_frlength_t offset, usb_frlength_t len, usb_frlength_t *actlen, in usb_fifo_get_data() argument 1820 actlen[0] = 0; in usb_fifo_get_data() 1834 actlen[0] += io_len; in usb_fifo_get_data() 1876 usb_size_t len, usb_size_t *actlen, uint8_t what) in usb_fifo_get_data_linear() argument 1883 actlen[0] = 0; in usb_fifo_get_data_linear() 1900 actlen[0] += io_len; in usb_fifo_get_data_linear()
|
D | usbdi_util.h | 44 uint16_t *actlen, usb_timeout_t timeout);
|
D | usb_core.h | 155 usb_frlength_t actlen; /* actual length in bytes */ member
|
D | usb_request.h | 51 uint16_t *actlen, void *desc, uint16_t min_len,
|
/third_party/FreeBSD/sys/dev/usb/input/ |
D | uhid.c | 143 usb_frlength_t actlen; in uhid_intr_write_callback() local 151 0, usbd_xfer_max_len(xfer), &actlen, 0)) { in uhid_intr_write_callback() 152 usbd_xfer_set_frame_len(xfer, 0, actlen); in uhid_intr_write_callback() 199 int actlen; in uhid_intr_read_callback() local 203 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL); in uhid_intr_read_callback() 209 mouse_report_events(sc->input_dev, pc->buffer, actlen); in uhid_intr_read_callback() 258 uint32_t actlen; in uhid_write_callback() local 268 0, 1, &actlen, 0)) { in uhid_write_callback() 269 if (actlen != 1) { in uhid_write_callback() 286 0, UHID_BSIZE, &actlen, 1)) { in uhid_write_callback() [all …]
|
/third_party/FreeBSD/sys/dev/usb/serial/ |
D | u3g.c | 850 uint32_t actlen; in u3g_write_callback() local 876 if (ucom_get_data(ucom, pc, 0, U3G_TXSIZE, &actlen) == 0) in u3g_write_callback() 879 usbd_xfer_set_frame_len(xfer, frame, actlen); in u3g_write_callback() 880 writelen = actlen; in u3g_write_callback() 903 int actlen; in u3g_read_callback() local 907 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL); in u3g_read_callback() 912 ucom_put_data(ucom, pc, 0, actlen); in u3g_read_callback() 994 int actlen; in u3g_intr_callback() local 1001 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL); in u3g_intr_callback() 1005 if (actlen < 8) { /* usb_cdc_notification with 2 data bytes */ in u3g_intr_callback() [all …]
|
D | usb_serial.c | 904 uint32_t offset, uint32_t len, uint32_t *actlen) in ucom_get_data() argument 931 *actlen = temp; in ucom_get_data()
|
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/ |
D | linux_usb.c | 656 uint16_t actlen = 0; in usb_control_msg() local 682 &actlen, timeout); in usb_control_msg() 686 err = actlen; in usb_control_msg() 717 err = usb_start_wait_urb(urb, timeout, &actlen); in usb_control_msg() 719 if (actlen) { in usb_control_msg() 721 sizeof(req)), data, actlen); in usb_control_msg() 727 err = actlen; in usb_control_msg() 1545 urb->actual_length = xfer->actlen; in usb_linux_isoc_callback() 1548 if (xfer->actlen < xfer->sumlen) { in usb_linux_isoc_callback() 1699 if (xfer->actlen < xfer->sumlen) { in usb_linux_non_isoc_callback()
|
/third_party/FreeBSD/sys/dev/usb/controller/ |
D | ehci.c | 1018 ehci_data_toggle_update(struct usb_xfer *xfer, uint16_t actlen, uint16_t xlen) in ehci_data_toggle_update() argument 1024 dt = (actlen / xfer->max_packet_size) & 1; in ehci_data_toggle_update() 1027 rem = actlen % xfer->max_packet_size; in ehci_data_toggle_update() 1031 else if (actlen != xlen) in ehci_data_toggle_update()
|