Searched refs:towrite (Results 1 – 9 of 9) sorted by relevance
/external/u-boot/lib/ |
D | membuff.c | 189 int towrite, i, written; in membuff_put() local 193 towrite = membuff_putraw(mb, length, true, &data); in membuff_put() 196 memcpy(data, buff, towrite); in membuff_put() 197 written += towrite; in membuff_put() 198 buff += towrite; in membuff_put() 199 length -= towrite; in membuff_put()
|
/external/libmtp/src/ |
D | libusb-glue.c | 968 unsigned long towrite = 0; in ptp_write_func() local 980 towrite = size-curwrite; in ptp_write_func() 981 if (towrite > CONTEXT_BLOCK_SIZE) { in ptp_write_func() 982 towrite = CONTEXT_BLOCK_SIZE; in ptp_write_func() 985 if (towrite > ptp_usb->outep_maxpacket && towrite % ptp_usb->outep_maxpacket != 0) { in ptp_write_func() 986 towrite -= towrite % ptp_usb->outep_maxpacket; in ptp_write_func() 989 int getfunc_ret = handler->getfunc(NULL, handler->priv,towrite,bytes,&towrite); in ptp_write_func() 992 while (usbwritten < towrite) { in ptp_write_func() 996 towrite-usbwritten, in ptp_write_func() 1028 if (result < towrite) /* short writes happen */ in ptp_write_func() [all …]
|
D | libusb1-glue.c | 984 unsigned long towrite = 0; in ptp_write_func() local 998 towrite = size-curwrite; in ptp_write_func() 999 if (towrite > CONTEXT_BLOCK_SIZE) { in ptp_write_func() 1000 towrite = CONTEXT_BLOCK_SIZE; in ptp_write_func() 1003 if (towrite > ptp_usb->outep_maxpacket && towrite % ptp_usb->outep_maxpacket != 0) { in ptp_write_func() 1004 towrite -= towrite % ptp_usb->outep_maxpacket; in ptp_write_func() 1007 int getfunc_ret = handler->getfunc(NULL, handler->priv,towrite,bytes,&towrite); in ptp_write_func() 1012 while (usbwritten < towrite) { in ptp_write_func() 1016 towrite-usbwritten, in ptp_write_func() 1051 if (xwritten < towrite) /* short writes happen */ in ptp_write_func() [all …]
|
D | libopenusb1-glue.c | 951 unsigned long towrite = 0; in ptp_write_func() local 967 towrite = size - curwrite; in ptp_write_func() 968 if (towrite > CONTEXT_BLOCK_SIZE) { in ptp_write_func() 969 towrite = CONTEXT_BLOCK_SIZE; in ptp_write_func() 972 if (towrite > ptp_usb->outep_maxpacket && towrite % ptp_usb->outep_maxpacket != 0) { in ptp_write_func() 973 towrite -= towrite % ptp_usb->outep_maxpacket; in ptp_write_func() 976 int getfunc_ret = handler->getfunc(NULL, handler->priv, towrite, bytes, &towrite); in ptp_write_func() 979 while (usbwritten < towrite) { in ptp_write_func() 989 bulk.length = towrite - usbwritten; in ptp_write_func() 1025 if (xwritten < towrite) /* short writes happen */ in ptp_write_func() [all …]
|
/external/u-boot/drivers/spi/ |
D | rk_spi.c | 364 int toread, towrite; in rockchip_spi_xfer() local 384 towrite = todo; in rockchip_spi_xfer() 385 while (toread || towrite) { in rockchip_spi_xfer() 388 if (towrite && !(status & SR_TF_FULL)) { in rockchip_spi_xfer() 390 towrite--; in rockchip_spi_xfer()
|
/external/u-boot/fs/sandbox/ |
D | sandboxfs.c | 57 loff_t towrite, loff_t *actwrite) in sandbox_fs_write_at() argument 70 size = os_write(fd, buffer, towrite); in sandbox_fs_write_at()
|
/external/python/cpython2/Lib/test/ |
D | test_urllib2.py | 688 towrite = "hello, world\n" 705 f.write(towrite) 720 self.assertEqual(data, towrite) 737 f.write(towrite)
|
/external/python/cpython3/Lib/test/ |
D | test_urllib2.py | 773 towrite = b"hello, world\n" 790 f.write(towrite) 805 self.assertEqual(data, towrite) 823 f.write(towrite)
|
/external/libevent/test/ |
D | regress.c | 1917 int towrite = (int)strlen(TEST1)+1; in test_event_base_new() local 1918 int len = write(data->pair[0], TEST1, towrite); in test_event_base_new() 1922 else if (len != towrite) in test_event_base_new() 1924 len, towrite)); in test_event_base_new()
|