Home
last modified time | relevance | path

Searched refs:actlen (Results 1 – 18 of 18) sorted by relevance

/third_party/FreeBSD/sys/dev/usb/net/
Dif_cdce.c702 int actlen, aframes; in cdce_bulk_write_callback() local
706 usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL); in cdce_bulk_write_callback()
710 DPRINTFN(10, "transfer complete: %u bytes in %u frames\n",actlen, aframes); in cdce_bulk_write_callback()
865 int actlen; in cdce_bulk_read_callback() local
870 usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL); in cdce_bulk_read_callback()
875 DPRINTF("received %u bytes in %u frames\n", actlen, aframes); in cdce_bulk_read_callback()
942 int actlen; in cdce_intr_read_callback() local
946 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL); in cdce_intr_read_callback()
951 DPRINTF("cdce_intr_read_callback Received %d bytes\n", actlen); in cdce_intr_read_callback()
979 int actlen; in cdce_intr_write_callback() local
[all …]
Dif_urndis.c842 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 …]
Dif_axge.c45 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()
Dif_axe.c755 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/
Dusb_request.c376 uint16_t *actlen, usb_timeout_t timeout) in usbd_do_request_flags() argument
420 if (actlen) in usbd_do_request_flags()
421 *actlen = 0; in usbd_do_request_flags()
469 if (actlen) in usbd_do_request_flags()
470 *actlen = length; in usbd_do_request_flags()
652 if (actlen) { in usbd_do_request_flags()
653 (*actlen) += temp; in usbd_do_request_flags()
711 uint16_t *actlen, usb_timeout_t timeout) in usbd_do_request_proc() argument
727 req, data, flags, actlen, timeout); in usbd_do_request_proc()
735 else if (actlen && *actlen != len) in usbd_do_request_proc()
[all …]
Dusb_generic.c360 DPRINTFN(4, "actlen=%u, aframes=%u\n", xfer->actlen, xfer->aframes); in ugen_ctrl_read_callback()
364 if (xfer->actlen == 0) { in ugen_ctrl_read_callback()
380 xfer->actlen, 1); in ugen_ctrl_read_callback()
410 usb_frlength_t actlen; in ugen_ctrl_write_callback() local
412 DPRINTFN(4, "actlen=%u, aframes=%u\n", xfer->actlen, xfer->aframes); in ugen_ctrl_write_callback()
429 xfer->max_data_length, &actlen, 0)) { in ugen_ctrl_write_callback()
430 usbd_xfer_set_frame_len(xfer, 0, actlen); in ugen_ctrl_write_callback()
485 DPRINTFN(4, "actlen=%u, aframes=%u\n", xfer->actlen, xfer->aframes); in ugen_isoc_read_callback()
490 DPRINTFN(6, "actlen=%d\n", xfer->actlen); in ugen_isoc_read_callback()
521 usb_frlength_t actlen; in ugen_isoc_write_callback() local
[all …]
Dusbdi.h534 uint16_t *actlen, usb_timeout_t timeout);
566 void usbd_xfer_status(struct usb_xfer *xfer, int *actlen, int *sumlen,
636 usb_frlength_t offset, usb_frlength_t len, usb_frlength_t *actlen,
639 usb_size_t len, usb_size_t *actlen, uint8_t what);
Dusb_transfer.c1677 xfer->actlen = 0; in usbd_transfer_submit()
2141 usbd_xfer_status(struct usb_xfer *xfer, int *actlen, int *sumlen, int *aframes, in usbd_xfer_status() argument
2144 if (actlen != NULL) in usbd_xfer_status()
2145 *actlen = xfer->actlen; in usbd_xfer_status()
2871 xfer->actlen = 0; in usbd_callback_wrapper_sub()
2874 xfer->actlen += xfer->frlengths[x]; in usbd_callback_wrapper_sub()
2887 if (xfer->actlen > xfer->sumlen) { in usbd_callback_wrapper_sub()
2891 __FUNCTION__, xfer->actlen, xfer->sumlen); in usbd_callback_wrapper_sub()
2894 xfer->actlen = xfer->sumlen; in usbd_callback_wrapper_sub()
2898 xfer, xfer->endpoint, xfer->error, xfer->actlen, xfer->sumlen, in usbd_callback_wrapper_sub()
[all …]
Dusbdi_util.h44 uint16_t *actlen, usb_timeout_t timeout);
Dusb_core.h156 usb_frlength_t actlen; /* actual length in bytes */ member
Dusb_dev.c1807 usb_frlength_t offset, usb_frlength_t len, usb_frlength_t *actlen, in usb_fifo_get_data() argument
1814 actlen[0] = 0; in usb_fifo_get_data()
1830 actlen[0] += io_len; in usb_fifo_get_data()
1873 usb_size_t len, usb_size_t *actlen, uint8_t what) in usb_fifo_get_data_linear() argument
1880 actlen[0] = 0; in usb_fifo_get_data_linear()
1899 actlen[0] += io_len; in usb_fifo_get_data_linear()
Dusb_request.h51 uint16_t *actlen, void *desc, uint16_t min_len,
/third_party/FreeBSD/sys/dev/usb/storage/
Dumass.c413 uint32_t actlen; /* bytes */ member
1214 sc->sc_transfer.actlen), STATUS_WIRE_FAILED); in umass_cancel_ccb()
1465 int actlen, sumlen; in umass_t_bbb_data_callback() local
1467 usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL); in umass_t_bbb_data_callback()
1471 sc->sc_transfer.data_rem -= actlen; in umass_t_bbb_data_callback()
1472 sc->sc_transfer.data_ptr += actlen; in umass_t_bbb_data_callback()
1473 sc->sc_transfer.actlen += actlen; in umass_t_bbb_data_callback()
1475 if (actlen < sumlen) { in umass_t_bbb_data_callback()
1541 int actlen; in umass_t_bbb_status_callback() local
1543 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL); in umass_t_bbb_status_callback()
[all …]
/third_party/FreeBSD/sys/dev/usb/input/
Duhid.c140 usb_frlength_t actlen; in uhid_intr_write_callback() local
148 0, usbd_xfer_max_len(xfer), &actlen, 0)) { in uhid_intr_write_callback()
149 usbd_xfer_set_frame_len(xfer, 0, actlen); in uhid_intr_write_callback()
196 int actlen; in uhid_intr_read_callback() local
200 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL); in uhid_intr_read_callback()
206 mouse_report_events(sc->input_dev, pc->buffer, actlen); in uhid_intr_read_callback()
255 uint32_t actlen; in uhid_write_callback() local
265 0, 1, &actlen, 0)) { in uhid_write_callback()
266 if (actlen != 1) { in uhid_write_callback()
283 0, UHID_BSIZE, &actlen, 1)) { in uhid_write_callback()
[all …]
/third_party/FreeBSD/sys/dev/usb/serial/
Du3g.c852 uint32_t actlen; in u3g_write_callback() local
878 if (ucom_get_data(ucom, pc, 0, U3G_TXSIZE, &actlen) == 0) in u3g_write_callback()
881 usbd_xfer_set_frame_len(xfer, frame, actlen); in u3g_write_callback()
882 writelen = actlen; in u3g_write_callback()
905 int actlen; in u3g_read_callback() local
909 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL); in u3g_read_callback()
914 ucom_put_data(ucom, pc, 0, actlen); in u3g_read_callback()
996 int actlen; in u3g_intr_callback() local
1003 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL); in u3g_intr_callback()
1007 if (actlen < 8) { /* usb_cdc_notification with 2 data bytes */ in u3g_intr_callback()
[all …]
Dusb_serial.c908 uint32_t offset, uint32_t len, uint32_t *actlen) in ucom_get_data() argument
935 *actlen = temp; in ucom_get_data()
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/
Dlinux_usb.c659 uint16_t actlen = 0; in usb_control_msg() local
685 &actlen, timeout); in usb_control_msg()
689 err = actlen; in usb_control_msg()
720 err = usb_start_wait_urb(urb, timeout, &actlen); in usb_control_msg()
722 if (actlen) { in usb_control_msg()
724 sizeof(req)), data, actlen); in usb_control_msg()
730 err = actlen; in usb_control_msg()
1551 urb->actual_length = xfer->actlen; in usb_linux_isoc_callback()
1554 if (xfer->actlen < xfer->sumlen) { in usb_linux_isoc_callback()
1708 if (xfer->actlen < xfer->sumlen) { in usb_linux_non_isoc_callback()
/third_party/FreeBSD/sys/dev/usb/controller/
Dehci.c1020 ehci_data_toggle_update(struct usb_xfer *xfer, uint16_t actlen, uint16_t xlen) in ehci_data_toggle_update() argument
1026 dt = (actlen / xfer->max_packet_size) & 1; in ehci_data_toggle_update()
1029 rem = actlen % xfer->max_packet_size; in ehci_data_toggle_update()
1033 else if (actlen != xlen) in ehci_data_toggle_update()