/external/u-boot/drivers/spi/ |
D | exynos_spi.c | 103 int toread; in spi_rx_tx() local 132 toread = in_bytes; in spi_rx_tx() 175 toread -= step; in spi_rx_tx() 178 } else if (!toread) { in spi_rx_tx() 187 toread = in_bytes; in spi_rx_tx() 189 spi_request_bytes(regs, toread, step); in spi_rx_tx()
|
D | rk_spi.c | 364 int toread, towrite; in rockchip_spi_xfer() local 383 toread = todo; in rockchip_spi_xfer() 385 while (toread || towrite) { in rockchip_spi_xfer() 392 if (toread && !(status & SR_RF_EMPT)) { in rockchip_spi_xfer() 397 toread--; in rockchip_spi_xfer()
|
/external/u-boot/drivers/mtd/nand/ |
D | mxc_nand.c | 392 int i, toread; local 399 toread = min_t(int, length, chip->ecc.prepad); 400 if (toread) { 401 chip->read_buf(mtd, bufpoi, toread); 402 bufpoi += toread; 403 length -= toread; 409 toread = min_t(int, length, chip->ecc.postpad); 410 if (toread) { 411 chip->read_buf(mtd, bufpoi, toread); 412 bufpoi += toread; [all …]
|
D | nand_base.c | 1783 int toread = min(oobreadlen, max_oobsize); in nand_do_read_ops() local 1785 if (toread) { in nand_do_read_ops() 1787 oob, ops, toread); in nand_do_read_ops() 1788 oobreadlen -= toread; in nand_do_read_ops() 1921 int i, toread, sndrnd = 0, pos; in nand_read_oob_syndrome() local 1933 toread = min_t(int, length, chunk); in nand_read_oob_syndrome() 1934 chip->read_buf(mtd, bufpoi, toread); in nand_read_oob_syndrome() 1935 bufpoi += toread; in nand_read_oob_syndrome() 1936 length -= toread; in nand_read_oob_syndrome()
|
/external/libmtp/src/ |
D | libusb-glue.c | 823 unsigned long toread = 0; in ptp_read_func() local 856 toread = size - curread; in ptp_read_func() 858 if (readzero && FLAG_NO_ZERO_READS(ptp_usb) && toread % 64 == 0) { in ptp_read_func() 859 toread += 1; in ptp_read_func() 867 toread = context_block_size_1; in ptp_read_func() 868 else if (toread == context_block_size_1) in ptp_read_func() 869 toread = context_block_size_2; in ptp_read_func() 870 else if (toread == context_block_size_2) in ptp_read_func() 871 toread = context_block_size_1; in ptp_read_func() 874 (unsigned int) toread, (unsigned int) (size-curread)); in ptp_read_func() [all …]
|
D | libusb1-glue.c | 838 unsigned long toread = 0; in ptp_read_func() local 871 toread = size - curread; in ptp_read_func() 873 if (readzero && FLAG_NO_ZERO_READS(ptp_usb) && toread % 64 == 0) { in ptp_read_func() 874 toread += 1; in ptp_read_func() 882 toread = context_block_size_1; in ptp_read_func() 883 else if (toread == context_block_size_1) in ptp_read_func() 884 toread = context_block_size_2; in ptp_read_func() 885 else if (toread == context_block_size_2) in ptp_read_func() 886 toread = context_block_size_1; in ptp_read_func() 889 (unsigned int) toread, (unsigned int) (size-curread)); in ptp_read_func() [all …]
|
D | libopenusb1-glue.c | 789 unsigned long toread = 0; in ptp_read_func() local 823 toread = size - curread; in ptp_read_func() 825 if (readzero && FLAG_NO_ZERO_READS(ptp_usb) && toread % 64 == 0) { in ptp_read_func() 826 toread += 1; in ptp_read_func() 833 toread = context_block_size_1; in ptp_read_func() 834 else if (toread == context_block_size_1) in ptp_read_func() 835 toread = context_block_size_2; in ptp_read_func() 836 else if (toread == context_block_size_2) in ptp_read_func() 837 toread = context_block_size_1; in ptp_read_func() 840 (unsigned int) toread, (unsigned int) (size - curread)); in ptp_read_func() [all …]
|
/external/u-boot/fs/zfs/ |
D | zfs.c | 774 int toread = min(array_len - bseen, ZAP_LEAF_ARRAY_BYTES); in zap_leaf_array_equal() local 779 if (memcmp(la->la_array, buf + bseen, toread) != 0) in zap_leaf_array_equal() 782 bseen += toread; in zap_leaf_array_equal() 796 int toread = min(array_len - bseen, ZAP_LEAF_ARRAY_BYTES); in zap_leaf_array_get() local 802 memcpy(buf + bseen, la->la_array, toread); in zap_leaf_array_get() 804 bseen += toread; in zap_leaf_array_get()
|
/external/libpcap/rpcapd/ |
D | daemon.c | 134 static int rpcapd_recv(SOCKET sock, char *buffer, size_t toread, uint32 *plen, char *errmsgbuf); 2511 rpcapd_recv(SOCKET sock, char *buffer, size_t toread, uint32 *plen, char *errmsgbuf) in rpcapd_recv() argument 2516 if (toread > *plen) in rpcapd_recv() 2522 nread = sock_recv(sock, buffer, toread, in rpcapd_recv()
|
/external/webrtc/webrtc/base/ |
D | opensslstreamadapter.cc | 639 int toread = (sizeof(buf) < left) ? sizeof(buf) : left; in FlushInput() local 640 int code = SSL_read(ssl_, buf, toread); in FlushInput()
|
/external/libpcap/ |
D | pcap-rpcap.c | 163 static int rpcap_recv(SOCKET sock, void *buffer, size_t toread, uint32 *plen, char *errbuf); 3153 static int rpcap_recv(SOCKET sock, void *buffer, size_t toread, uint32 *plen, char *errbuf) in rpcap_recv() argument 3157 if (toread > *plen) in rpcap_recv() 3163 nread = sock_recv(sock, buffer, toread, in rpcap_recv()
|