Home
last modified time | relevance | path

Searched refs:toread (Results 1 – 11 of 11) sorted by relevance

/external/u-boot/drivers/spi/
Dexynos_spi.c103 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()
Drk_spi.c364 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/
Dmxc_nand.c392 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 …]
Dnand_base.c1783 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/
Dlibusb-glue.c823 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 …]
Dlibusb1-glue.c838 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 …]
Dlibopenusb1-glue.c789 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/
Dzfs.c774 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/
Ddaemon.c134 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/
Dopensslstreamadapter.cc639 int toread = (sizeof(buf) < left) ? sizeof(buf) : left; in FlushInput() local
640 int code = SSL_read(ssl_, buf, toread); in FlushInput()
/external/libpcap/
Dpcap-rpcap.c163 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()