Home
last modified time | relevance | path

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

12

/external/u-boot/drivers/usb/gadget/
Dep0.c64 urb->actual_length = 2; in ep0_get_status()
78 urb->actual_length = 0; in ep0_get_status()
98 urb->actual_length = 1; /* XXX 2? */ in ep0_get_one()
135 /*urb->buffer_length */ max_buf - urb->actual_length) <= 0) { in copy_config()
147 memcpy (urb->buffer + urb->actual_length, data, length); in copy_config()
148 urb->actual_length += length; in copy_config()
152 urb->actual_length, urb->buffer_length, max_buf, max_length, in copy_config()
183 urb->actual_length = 0; in ep0_get_descriptor()
206 dbg_ep0(3, "copied device configuration, actual_length: 0x%x", urb->actual_length); in ep0_get_descriptor()
315 if (max - urb->actual_length > 0) { in ep0_get_descriptor()
[all …]
Dpxa27x_udc.c63 if (!urb || !urb->actual_length) in udc_write_urb()
66 n = min_t(unsigned int, urb->actual_length - endpoint->sent, in udc_write_urb()
74 urb->buffer, urb->buffer_length, urb->actual_length); in udc_write_urb()
118 if (endpoint->sent >= urb->actual_length) { in udc_write_urb()
119 urb->actual_length = 0; in udc_write_urb()
124 if ((endpoint->sent >= urb->actual_length) && (!ep_num)) { in udc_write_urb()
145 urb->buffer, urb->buffer_length, urb->actual_length); in udc_read_urb()
157 data32[urb->actual_length / 4 + i / 4] = readl(UDCDN(ep_num)); in udc_read_urb()
159 udc_dump_buffer("urb read", (u8 *) data32, urb->actual_length + n); in udc_read_urb()
174 ep0_urb->buffer, ep0_urb->buffer_length, ep0_urb->actual_length); in udc_read_urb_ep0()
[all …]
Ddesignware_udc.c269 urb->buffer, urb->buffer_length, urb->actual_length); in dw_write_noniso_tx_fifo()
271 last = min_t(u32, urb->actual_length - endpoint->sent, in dw_write_noniso_tx_fifo()
428 if ((endpoint->sent == ep0_urb->actual_length) && in dw_udc_ep0_tx()
429 ((ep0_urb->actual_length == wLength) || in dw_udc_ep0_tx()
475 u8 *cp = urb->buffer + urb->actual_length; in dw_udc_epn_rx()
504 (endpoint->tx_urb->actual_length - endpoint->sent - in dw_udc_epn_tx()
511 if (endpoint->tx_urb && endpoint->tx_urb->actual_length) { in dw_udc_epn_tx()
518 if (endpoint->tx_urb && endpoint->tx_urb->actual_length) { in dw_udc_epn_tx()
524 && (endpoint->tx_urb->actual_length == 0)) { in dw_udc_epn_tx()
Dcore.c357 rcv_urb->actual_length += len; in usbd_rcv_complete()
361 rcv_urb->actual_length, rcv_urb->buffer_length, urb_bad); in usbd_rcv_complete()
363 rcv_urb->actual_length = 0; in usbd_rcv_complete()
393 if( (endpoint->tx_urb->actual_length - endpoint->sent) <= 0 ) { in usbd_tx_complete()
394 tx_urb->actual_length = 0; in usbd_tx_complete()
/external/v8/src/profiler/
Dstrings-storage.cc76 int actual_length = 0; in GetName() local
78 DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL, 0, length, &actual_length); in GetName()
79 return AddOrDisposeString(data.release(), actual_length); in GetName()
94 int actual_length = 0; in GetConsName() local
96 DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL, 0, length, &actual_length); in GetConsName()
98 int cons_length = actual_length + static_cast<int>(strlen(prefix)) + 1; in GetConsName()
/external/u-boot/drivers/usb/musb/
Dmusb_udc.c343 ep0_urb->actual_length = 0; in musb_peri_ep0_rx_data_request()
459 if (0 != ep0_urb->actual_length) { in musb_peri_ep0_rx()
462 ep0_urb->actual_length, in musb_peri_ep0_rx()
467 if (ep0_urb->device_request.wLength == ep0_urb->actual_length) { in musb_peri_ep0_rx()
489 urb->actual_length; in musb_peri_ep0_rx()
500 data += urb->actual_length; in musb_peri_ep0_rx()
545 if (ep0_endpoint->sent >= ep0_urb->actual_length) { in musb_peri_ep0_tx()
550 transfer_size = ep0_urb->actual_length - ep0_endpoint->sent; in musb_peri_ep0_tx()
570 if (ep0_endpoint->sent >= ep0_urb->actual_length) in musb_peri_ep0_tx()
586 if ((ep0_endpoint->sent >= ep0_urb->actual_length) && (p < pm)) in musb_peri_ep0_tx()
[all …]
/external/webrtc/webrtc/p2p/base/
Dasyncstuntcpsocket.cc105 size_t actual_length = expected_pkt_len + pad_bytes; in ProcessInput() local
107 if (*len < actual_length) { in ProcessInput()
114 *len -= actual_length; in ProcessInput()
116 memmove(data, data + actual_length, *len); in ProcessInput()
/external/libusb/examples/
Dsam3u_benchmark.c62 printf("pack%u length:%u, actual_length:%u\n", i, pack->length, pack->actual_length); in cb_xfr()
66 printf("length:%u, actual_length:%u\n", xfr->length, xfr->actual_length); in cb_xfr()
67 for (i = 0; i < xfr->actual_length; i++) { in cb_xfr()
76 num_bytes += xfr->actual_length; in cb_xfr()
/external/u-boot/drivers/usb/musb-new/
Dmusb_host.c224 buf = urb->transfer_buffer + urb->actual_length; in musb_start_urb()
225 len = urb->transfer_buffer_length - urb->actual_length; in musb_start_urb()
303 urb->actual_length, urb->transfer_buffer_length in musb_giveback()
492 urb->actual_length += length; in musb_host_packet_rx()
493 d->actual_length = length; in musb_host_packet_rx()
511 urb->actual_length += length; in musb_host_packet_rx()
515 done = (urb->actual_length == urb->transfer_buffer_length) in musb_host_packet_rx()
521 && (urb->actual_length in musb_host_packet_rx()
899 fifo_dest = urb->transfer_buffer + urb->actual_length; in musb_h_ep0_continue()
901 urb->actual_length); in musb_h_ep0_continue()
[all …]
Dusb-compat.h41 u32 actual_length; /* (return) actual transfer length */ member
/external/libusb/libusb/
Dsync.c41 usbi_dbg("actual_length=%d", transfer->actual_length); in sync_transfer_cb()
134 transfer->actual_length); in libusb_control_transfer()
138 r = transfer->actual_length; in libusb_control_transfer()
194 *transferred = transfer->actual_length; in do_sync_bulk_transfer()
Dlibusb.h1185 unsigned int actual_length; member
1242 int actual_length; member
1754 int *actual_length, unsigned int timeout);
1758 int *actual_length, unsigned int timeout);
/external/u-boot/drivers/serial/
Dusbtty.c824 space = current_urb->buffer_length - current_urb->actual_length; in next_urb()
860 if(endpoint->sent < current_urb->actual_length){ in write_buffer()
880 current_urb->actual_length; in write_buffer()
884 current_urb->actual_length; in write_buffer()
892 current_urb->actual_length += popped; in write_buffer()
917 if (endpoint->rcv_urb && endpoint->rcv_urb->actual_length) { in fill_buffer()
922 if(rx_avail >= endpoint->rcv_urb->actual_length){ in fill_buffer()
924 nb = endpoint->rcv_urb->actual_length; in fill_buffer()
926 endpoint->rcv_urb->actual_length = 0; in fill_buffer()
1005 urb->actual_length = sizeof(rs232_desc); in usbtty_cdc_setup()
/external/webrtc/webrtc/base/
Dtestutils.h475 size_t actual_length) in CmpHelperMemEq() argument
477 if ((expected_length == actual_length) in CmpHelperMemEq()
486 size_t buffer_size = actual_length * 2 + 1; in CmpHelperMemEq()
489 reinterpret_cast<const char*>(actual), actual_length); in CmpHelperMemEq()
490 msg << "\n Actual: " << buffer << " [" << actual_length << "]"; in CmpHelperMemEq()
525 #define EXPECT_MEMEQ(expected, expected_length, actual, actual_length) \ argument
527 actual, actual_length)
529 #define ASSERT_MEMEQ(expected, expected_length, actual, actual_length) \ argument
531 actual, actual_length)
/external/perf_data_converter/src/quipper/
Dbuffer_reader.cc22 size_t actual_length = strnlen(buffer_ + offset_, size); in ReadString() local
23 *str = string(buffer_ + offset_, actual_length); in ReadString()
Dfile_reader.cc43 size_t actual_length = strnlen(str->data(), size); in ReadString() local
44 str->resize(actual_length); in ReadString()
/external/webrtc/webrtc/test/testsupport/
Dpacket_reader_unittest.cc30 int actual_length, in VerifyPacketData() argument
33 EXPECT_EQ(static_cast<int>(expected_length), actual_length); in VerifyPacketData()
36 actual_length)); in VerifyPacketData()
/external/sfntly/cpp/src/sfntly/data/
Dbyte_array.cc56 int32_t actual_length = std::min<int32_t>(length, filled_length_ - index); in Get() local
57 return InternalGet(index, b, offset, actual_length); in Get()
91 int32_t actual_length = std::min<int32_t>(length, Size() - index); in Put() local
92 int32_t bytes_written = InternalPut(index, b, offset, actual_length); in Put()
/external/libusb-compat/libusb/
Dcore.c749 int actual_length; in usb_bulk_io() local
753 &actual_length, timeout); in usb_bulk_io()
757 if (r == 0 || (r == LIBUSB_ERROR_TIMEOUT && actual_length > 0)) in usb_bulk_io()
758 return actual_length; in usb_bulk_io()
794 int actual_length; in usb_interrupt_io() local
798 &actual_length, timeout); in usb_interrupt_io()
802 if (r == 0 || (r == LIBUSB_ERROR_TIMEOUT && actual_length > 0)) in usb_interrupt_io()
803 return actual_length; in usb_interrupt_io()
/external/harfbuzz_ng/test/api/
Dhb-test.h172 unsigned int expected_length, actual_length; in hb_test_assert_blobs_equal() local
174 const char *raw_actual = hb_blob_get_data (actual_blob, &actual_length); in hb_test_assert_blobs_equal()
175 g_assert_cmpint(expected_length, ==, actual_length); in hb_test_assert_blobs_equal()
/external/libusb/libusb/os/
Dlinux_usbfs.h80 unsigned int actual_length; member
95 int actual_length; member
Dlinux_usbfs.c2270 if (urb->actual_length > 0) { in handle_bulk_completion()
2272 usbi_dbg("received %d bytes of surplus data", urb->actual_length); in handle_bulk_completion()
2277 memmove(target, urb->buffer, urb->actual_length); in handle_bulk_completion()
2279 itransfer->transferred += urb->actual_length; in handle_bulk_completion()
2292 itransfer->transferred += urb->actual_length; in handle_bulk_completion()
2317 usbi_dbg("overflow, actual_length=%d", urb->actual_length); in handle_bulk_completion()
2341 } else if (urb->actual_length < urb->buffer_length) { in handle_bulk_completion()
2343 urb->actual_length, urb->buffer_length); in handle_bulk_completion()
2441 lib_desc->actual_length = urb_desc->actual_length; in handle_iso_completion()
2503 itransfer->transferred += urb->actual_length; in handle_control_completion()
[all …]
/external/kernel-headers/original/uapi/linux/
Dusbdevice_fs.h93 unsigned int actual_length; member
104 int actual_length; member
/external/u-boot/arch/mips/mach-au1x00/
Dau1x00_usb_ohci.c163 purb->actual_length, in pkt_print()
177 purb->actual_length, in pkt_print()
180 transfer_len: purb->actual_length; in pkt_print()
418 purb_priv->actual_length = 0; in sohci_submit_job()
745 lurb_priv->actual_length += tdBE - td->data + 1; in dl_transfer_length()
747 lurb_priv->actual_length += tdCBP - td->data; in dl_transfer_length()
896 urb_priv.actual_length = 0; in ohci_submit_rh_msg()
1087 urb_priv.actual_length = transfer_len; in ohci_submit_rh_msg()
1114 urb_priv.actual_length = 0; in submit_common_msg()
1212 urb_priv.actual_length = 0; in submit_control_msg()
/external/libchrome/base/metrics/
Dpersistent_memory_allocator_unittest.cc39 int64_t actual_length; in SetFileLength() local
40 DCHECK(GetFileSize(path, &actual_length)); in SetFileLength()
41 DCHECK_EQ(length, static_cast<size_t>(actual_length)); in SetFileLength()
993 int64_t actual_length; in TEST_F() local
994 ASSERT_TRUE(GetFileSize(file_path, &actual_length)); in TEST_F()
995 EXPECT_EQ(file_length, static_cast<size_t>(actual_length)); in TEST_F()

12