Searched refs:actlen (Results 1 - 25 of 73) sorted by relevance

123

/freebsd-11-stable/sys/dev/usb/
H A Dusb_msctest.c165 usb_frlength_t actlen; /* bytes */ member in struct:bbb_transfer
346 int actlen, sumlen; local
348 usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
352 sc->data_rem -= actlen;
353 sc->data_ptr += actlen;
354 sc->actlen += actlen;
356 if (actlen < sumlen) {
398 int actlen, sumlen; local
400 usbd_xfer_status(xfer, &actlen,
449 int actlen; local
493 int actlen, sumlen; local
[all...]
/freebsd-11-stable/sys/dev/usb/gadget/
H A Dg_modem.c343 int actlen; local
346 usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
348 DPRINTF("st=%d aframes=%d actlen=%d bytes\n",
349 USB_GET_STATE(xfer), aframes, actlen);
375 int actlen; local
381 usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
383 DPRINTF("st=%d aframes=%d actlen=%d bytes\n",
384 USB_GET_STATE(xfer), aframes, actlen);
390 sc->sc_throughput += actlen;
457 int actlen; local
[all...]
/freebsd-11-stable/sys/dev/usb/serial/
H A Ducycom.c375 uint32_t actlen; local
398 sc->sc_olen - offset, &actlen)) {
409 data[0] = actlen;
413 data[1] = actlen;
544 int actlen; local
546 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
553 if (actlen < 1) {
561 actlen--;
567 if (actlen < 2) {
575 actlen
[all...]
H A Dumodem.c741 int actlen; local
743 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
748 DPRINTF("Transferred %d bytes\n", actlen);
772 int actlen; local
774 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
779 if (actlen < 8) {
781 "%d bytes\n", actlen);
784 if (actlen > (int)sizeof(pkt)) {
786 actlen = sizeof(pkt);
789 usbd_copy_out(pc, 0, &pkt, actlen);
862 uint32_t actlen; local
892 int actlen; local
[all...]
H A Dufoma.c639 uint32_t actlen; local
646 if (ucom_get_data(&sc->sc_ucom, pc, 0, 1, &actlen)) {
684 int actlen; local
686 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
690 if (actlen < 8) {
694 if (actlen > (int)sizeof(pkt)) {
696 actlen = sizeof(pkt);
699 usbd_copy_out(pc, 0, &pkt, actlen);
701 actlen -= 8;
704 if (actlen > wLe
791 uint32_t actlen; local
820 int actlen; local
[all...]
H A Duchcom.c784 int actlen; local
786 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
791 DPRINTF("actlen = %u\n", actlen);
793 if (actlen >= UCHCOM_INTR_LEAST) {
825 uint32_t actlen; local
833 usbd_xfer_max_len(xfer), &actlen)) {
835 DPRINTF("actlen = %d\n", actlen);
837 usbd_xfer_set_frame_len(xfer, 0, actlen);
857 int actlen; local
[all...]
H A Dugensa.c306 uint32_t actlen; local
314 UGENSA_BUF_SIZE, &actlen)) {
315 usbd_xfer_set_frame_len(xfer, 0, actlen);
335 int actlen; local
337 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
342 ucom_put_data(ssc->sc_ucom_ptr, pc, 0, actlen);
H A Dubser.c405 uint32_t actlen; local
415 &actlen)) {
421 usbd_xfer_set_frame_len(xfer, 0, actlen + 1);
451 int actlen; local
453 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
457 if (actlen < 1) {
458 DPRINTF("invalid actlen=0!\n");
468 ucom_put_data(sc->sc_ucom + buf[0], pc, 1, actlen - 1);
H A Duvisor.c405 uint16_t actlen; local
417 &actlen, USB_DEFAULT_TIMEOUT);
470 &actlen, USB_DEFAULT_TIMEOUT);
475 if (actlen < 12) {
612 uint32_t actlen; local
626 UVISOROBUFSIZE, &actlen)) {
627 usbd_xfer_set_frame_len(xfer, x, actlen);
654 int actlen; local
656 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
661 ucom_put_data(&sc->sc_ucom, pc, 0, actlen);
[all...]
H A Dumoscom.c634 uint32_t actlen; local
644 UMOSCOM_BUFSIZE, &actlen)) {
646 usbd_xfer_set_frame_len(xfer, 0, actlen);
667 int actlen; local
669 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
673 DPRINTF("got %d bytes\n", actlen);
675 ucom_put_data(&sc->sc_ucom, pc, 0, actlen);
700 int actlen; local
702 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
706 if (actlen <
[all...]
H A Dubsa.c578 uint32_t actlen; local
586 UBSA_BSIZE, &actlen)) {
588 usbd_xfer_set_frame_len(xfer, 0, actlen);
609 int actlen; local
611 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
616 ucom_put_data(&sc->sc_ucom, pc, 0, actlen);
641 int actlen; local
643 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
648 if (actlen >= (int)sizeof(buf)) {
672 DPRINTF("ignoring short packet, %d bytes\n", actlen);
[all...]
H A Dulpt.c203 int actlen, max; local
205 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
212 DPRINTF("state=0x%x actlen=%d\n", USB_GET_STATE(xfer), actlen);
220 if (usb_fifo_get_data(f, pc, 0, max, &actlen, 0)) {
221 usbd_xfer_set_frame_len(xfer, 0, actlen);
242 int actlen; local
244 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
256 if (actlen == 0) {
272 usb_fifo_put_data(f, pc, 0, actlen,
[all...]
H A Duvscom.c386 uint32_t actlen; local
394 UVSCOM_BULK_BUF_SIZE, &actlen)) {
396 usbd_xfer_set_frame_len(xfer, 0, actlen);
416 int actlen; local
418 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
423 ucom_put_data(&sc->sc_ucom, pc, 0, actlen);
447 int actlen; local
449 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
453 if (actlen >= 2) {
H A Dumct.c383 int actlen; local
385 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
389 if (actlen < 2) {
621 uint32_t actlen; local
629 sc->sc_obufsize, &actlen)) {
631 usbd_xfer_set_frame_len(xfer, 0, actlen);
651 int actlen; local
653 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
658 ucom_put_data(&sc->sc_ucom, pc, 0, actlen);
H A Dumcs.c776 int actlen; local
779 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
783 if (actlen == 5 || actlen == 13) {
785 usbd_copy_out(pc, 0, buf, actlen);
806 device_printf(sc->sc_dev, "Invalid interrupt data length %d", actlen);
853 int actlen; local
855 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
857 DPRINTF("Port %d read, state = %d, data length = %d\n", ucom->sc_portno, USB_GET_STATE(xfer), actlen);
862 ucom_put_data(ucom, pc, 0, actlen);
910 uint32_t actlen; local
[all...]
/freebsd-11-stable/sys/netgraph/bluetooth/drivers/ubt/
H A Dng_ubt.c732 int actlen; local
734 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
738 UBT_INFO(sc, "sent %d bytes to control pipe\n", actlen);
739 UBT_STAT_BYTES_SENT(sc, actlen);
805 int actlen; local
807 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
829 if (actlen > MCLBYTES - 1)
830 actlen = MCLBYTES - 1;
833 usbd_copy_out(pc, 0, mtod(m, uint8_t *) + 1, actlen);
834 m->m_pkthdr.len += actlen;
904 int actlen; local
1001 int actlen; local
1068 int actlen, nframes; local
1197 int actlen, nframes; local
[all...]
/freebsd-11-stable/sys/dev/usb/net/
H A Duhso.c778 uint16_t actlen = 0; local
789 0, &actlen, USB_MS_HZ);
796 UHSO_DPRINTF(1, "actlen=%d\n", actlen);
1153 int actlen, len; local
1155 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
1212 int actlen; local
1215 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
1224 actlen - sizeof(struct usb_device_request) ,
1231 0, 32, &actlen)) {
1301 int actlen; local
1331 int actlen; local
1384 int actlen; local
1617 int actlen; local
1796 int actlen; local
[all...]
H A Dif_urndis.c825 int actlen; local
831 usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
833 DPRINTFN(1, "received %u bytes in %u frames\n", actlen, aframes);
835 for (offset = 0; actlen >= (uint32_t)sizeof(msg);) {
870 } else if (msg.rm_len > (uint32_t)actlen) {
872 "len %u\n", msg.rm_len, actlen);
874 } else if (msg.rm_dataoffset >= (uint32_t)actlen) {
876 "dataoffset %u\n", msg.rm_dataoffset, actlen);
878 } else if (msg.rm_datalen > (uint32_t)actlen) {
880 "datalen %u\n", msg.rm_datalen, actlen);
954 int actlen; local
1035 int actlen; local
[all...]
H A Dif_cdce.c786 int actlen, aframes; local
788 usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
795 actlen, aframes);
975 int actlen; local
979 usbd_xfer_status(xfer, &actlen, NULL, &aframes, NULL);
984 DPRINTF("received %u bytes in %u frames\n", actlen, aframes);
1054 int actlen; local
1056 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
1061 DPRINTF("Received %d bytes\n", actlen);
1090 int actlen; local
1371 int actlen; local
1430 int actlen; local
[all...]
H A Dif_usie.c623 uint32_t actlen; local
625 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
632 if (ucom == sc->sc_ucom && actlen >= USIE_HIPCNS_MIN) {
634 DPRINTF("transferred=%u\n", actlen);
641 /* verify actlen */
642 if (actlen > USIE_BUFSIZE)
643 actlen = USIE_BUFSIZE;
646 usbd_copy_out(pc, 0, sc->sc_resp_temp, actlen);
647 usie_hip_rsp(sc, sc->sc_resp_temp, actlen);
655 ucom_put_data(ucom, pc, 0, actlen);
678 uint32_t actlen; local
721 uint32_t actlen; local
778 uint32_t actlen; local
995 uint32_t actlen; local
1068 uint16_t actlen; local
[all...]
H A Dif_aue.c738 int actlen; local
740 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
746 actlen >= (int)sizeof(pkt)) {
782 int actlen; local
784 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
789 DPRINTFN(11, "received %d bytes\n", actlen);
793 if (actlen == 0) {
799 if (actlen <= (int)(sizeof(stat) + ETHER_CRC_LEN)) {
803 usbd_copy_out(pc, actlen - sizeof(stat), &stat,
816 actlen
849 int actlen; local
[all...]
/freebsd-11-stable/sys/netgraph/bluetooth/drivers/ubtbcmfw/
H A Dubtbcmfw.c275 uint32_t actlen; local
283 &actlen, 0)) {
284 usbd_xfer_set_frame_len(xfer, 0, actlen);
309 int actlen; local
311 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
316 usb_fifo_put_data(fifo, pc, 0, actlen, 1);
/freebsd-11-stable/sys/dev/usb/storage/
H A Dumass.c382 uint32_t actlen; /* bytes */ member in struct:umass_softc::__anon11844
1153 sc->sc_transfer.actlen), STATUS_WIRE_FAILED);
1354 int actlen, sumlen; local
1356 usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL);
1360 sc->sc_transfer.data_rem -= actlen;
1361 sc->sc_transfer.data_ptr += actlen;
1362 sc->sc_transfer.actlen += actlen;
1364 if (actlen < sumlen) {
1409 int actlen, sumle local
1466 int actlen; local
1867 int actlen, sumlen; local
1923 int actlen, sumlen; local
1982 int actlen; local
[all...]
/freebsd-11-stable/sys/dev/usb/input/
H A Duhid.c164 int actlen; local
172 0, usbd_xfer_max_len(xfer), &actlen, 0)) {
173 usbd_xfer_set_frame_len(xfer, 0, actlen);
193 int actlen; local
195 usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);
207 if ((actlen >= (int)sc->sc_isize) ||
208 ((actlen > 0) && (sc->sc_iid != 0))) {
210 if (actlen > (int)sc->sc_isize)
211 actlen = sc->sc_isize;
213 0, actlen,
269 uint32_t actlen; local
[all...]
/freebsd-11-stable/tools/tools/usbtest/
H A Dusb_msc_test.c157 uint32_t actlen; local
172 actlen = 0;
178 &cbw, sizeof(cbw), &actlen, TIMEOUT_FILTER(1000)))) {
183 if (actlen != sizeof(cbw)) {
185 actlen, (int)sizeof(cbw));
196 pdata, datalen, &actlen, TIMEOUT_FILTER(timeout)))) {
201 if ((actlen != datalen) && (!isshort)) {
203 actlen, datalen);
208 actlen = 0;
213 sizeof(csw), &actlen, TIMEOUT_FILTE
262 int actlen; local
[all...]

Completed in 307 milliseconds

123