Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/bcm47xxnflash/
H A Dops_bcm4706.c94 int toread; in bcm47xxnflash_ops_bcm4706_read() local
102 toread = min(len, 0x200); in bcm47xxnflash_ops_bcm4706_read()
120 for (i = 0; i < toread; i += 4, dest++) { in bcm47xxnflash_ops_bcm4706_read()
122 if (i == toread - 4) /* Last read goes without that */ in bcm47xxnflash_ops_bcm4706_read()
130 b47n->curr_column += toread; in bcm47xxnflash_ops_bcm4706_read()
131 len -= toread; in bcm47xxnflash_ops_bcm4706_read()
/OK3568_Linux_fs/u-boot/drivers/spi/
H A Dexynos_spi.c104 int toread; in spi_rx_tx() local
133 toread = in_bytes; in spi_rx_tx()
176 toread -= step; in spi_rx_tx()
179 } else if (!toread) { in spi_rx_tx()
188 toread = in_bytes; in spi_rx_tx()
190 spi_request_bytes(regs, toread, step); in spi_rx_tx()
H A Drk_spi.c420 int toread, towrite; in rockchip_spi_xfer() local
441 toread = todo; in rockchip_spi_xfer()
443 while (toread || towrite) { in rockchip_spi_xfer()
451 if (toread && !(status & SR_RF_EMPT)) { in rockchip_spi_xfer()
456 toread--; in rockchip_spi_xfer()
/OK3568_Linux_fs/u-boot/examples/standalone/
H A Drkspi.c236 int toread, towrite; in rockchip_spi_xfer() local
257 toread = todo; in rockchip_spi_xfer()
259 while (toread || towrite) { in rockchip_spi_xfer()
267 if (toread && !(status & SR_RF_EMPT)) { in rockchip_spi_xfer()
272 toread--; in rockchip_spi_xfer()
/OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/
H A Dmxc_nand.c393 int i, toread; local
400 toread = min_t(int, length, chip->ecc.prepad);
401 if (toread) {
402 chip->read_buf(mtd, bufpoi, toread);
403 bufpoi += toread;
404 length -= toread;
410 toread = min_t(int, length, chip->ecc.postpad);
411 if (toread) {
412 chip->read_buf(mtd, bufpoi, toread);
413 bufpoi += toread;
[all …]
H A Dnand_base.c2402 int toread = min(oobreadlen, max_oobsize); in nand_do_read_ops() local
2404 if (toread) { in nand_do_read_ops()
2406 oob, ops, toread); in nand_do_read_ops()
2407 oobreadlen -= toread; in nand_do_read_ops()
2511 int i, toread, sndrnd = 0, pos, ret; in nand_read_oob_syndrome() local
2534 toread = min_t(int, length, chunk); in nand_read_oob_syndrome()
2536 ret = nand_read_data_op(chip, bufpoi, toread, false); in nand_read_oob_syndrome()
2540 bufpoi += toread; in nand_read_oob_syndrome()
2541 length -= toread; in nand_read_oob_syndrome()
/OK3568_Linux_fs/kernel/drivers/mtd/maps/
H A Dpcmciamtd.c145 int toread = win_size - (from & (win_size-1)); in pcmcia_copy_from_remap() local
148 if(toread > len) in pcmcia_copy_from_remap()
149 toread = len; in pcmcia_copy_from_remap()
155 pr_debug("memcpy from %p to %p len = %d\n", addr, to, toread); in pcmcia_copy_from_remap()
156 memcpy_fromio(to, addr, toread); in pcmcia_copy_from_remap()
157 len -= toread; in pcmcia_copy_from_remap()
158 to += toread; in pcmcia_copy_from_remap()
159 from += toread; in pcmcia_copy_from_remap()
/OK3568_Linux_fs/app/forlinx/flapp/src/keyboard/pinyin/share/
H A Duserdict.cpp1131 size_t readed, toread; in _get_lpis() local
1192 toread = (dict_info.lemma_count << 2); in _get_lpis()
1194 while (readed < toread && !ferror(fp) && !feof(fp)) { in _get_lpis()
1195 readed += fread((((uint8*)offsets) + readed), 1, toread - readed, fp); in _get_lpis()
1197 if (readed < toread) in _get_lpis()
1201 toread = (dict_info.lemma_count << 2); in _get_lpis()
1203 while (readed < toread && !ferror(fp) && !feof(fp)) { in _get_lpis()
1204 readed += fread((((uint8*)predicts) + readed), 1, toread - readed, fp); in _get_lpis()
1206 if (readed < toread) in _get_lpis()
1211 while (readed < toread && !ferror(fp) && !feof(fp)) { in _get_lpis()
[all …]
/OK3568_Linux_fs/kernel/tools/iio/
H A Diio_generic_buffer.c335 unsigned long toread; in main() local
651 toread = buf_len; in main()
654 toread = 64; in main()
657 read_size = read(fp, data, toread * scan_size); in main()
/OK3568_Linux_fs/kernel/fs/jfs/
H A Dsuper.c744 size_t toread; in jfs_quota_read() local
753 toread = len; in jfs_quota_read()
754 while (toread > 0) { in jfs_quota_read()
755 tocopy = sb->s_blocksize - offset < toread ? in jfs_quota_read()
756 sb->s_blocksize - offset : toread; in jfs_quota_read()
773 toread -= tocopy; in jfs_quota_read()
/OK3568_Linux_fs/kernel/drivers/iio/gyro/
H A Dmpu3050-core.c536 unsigned int toread; in mpu3050_trigger_handler() local
549 toread = bytes_per_datum + 2; in mpu3050_trigger_handler()
552 toread = bytes_per_datum; in mpu3050_trigger_handler()
561 toread); in mpu3050_trigger_handler()
578 fifocnt -= toread; in mpu3050_trigger_handler()
/OK3568_Linux_fs/kernel/fs/ocfs2/
H A Dquota_global.c177 size_t toread, tocopy; in ocfs2_quota_read() local
184 toread = len; in ocfs2_quota_read()
185 while (toread > 0) { in ocfs2_quota_read()
186 tocopy = min_t(size_t, (sb->s_blocksize - offset), toread); in ocfs2_quota_read()
207 toread -= tocopy; in ocfs2_quota_read()
/OK3568_Linux_fs/kernel/drivers/net/can/c_can/
H A Dc_can.c849 u32 pkts = 0, pend = 0, toread, n; in c_can_do_rx_poll() local
867 toread = c_can_adjust_pending(pend); in c_can_do_rx_poll()
869 toread = pend; in c_can_do_rx_poll()
872 pend &= ~toread; in c_can_do_rx_poll()
874 n = c_can_read_objects(dev, priv, toread, quota); in c_can_do_rx_poll()
/OK3568_Linux_fs/kernel/fs/ext2/
H A Dsuper.c1495 size_t toread; in ext2_quota_read() local
1504 toread = len; in ext2_quota_read()
1505 while (toread > 0) { in ext2_quota_read()
1506 tocopy = sb->s_blocksize - offset < toread ? in ext2_quota_read()
1507 sb->s_blocksize - offset : toread; in ext2_quota_read()
1524 toread -= tocopy; in ext2_quota_read()
/OK3568_Linux_fs/u-boot/fs/zfs/
H A Dzfs.c775 int toread = min(array_len - bseen, ZAP_LEAF_ARRAY_BYTES); in zap_leaf_array_equal() local
780 if (memcmp(la->la_array, buf + bseen, toread) != 0) in zap_leaf_array_equal()
783 bseen += toread; in zap_leaf_array_equal()
797 int toread = min(array_len - bseen, ZAP_LEAF_ARRAY_BYTES); in zap_leaf_array_get() local
803 memcpy(buf + bseen, la->la_array, toread); in zap_leaf_array_get()
805 bseen += toread; in zap_leaf_array_get()
/OK3568_Linux_fs/kernel/fs/reiserfs/
H A Dsuper.c2505 size_t toread; in reiserfs_quota_read() local
2513 toread = len; in reiserfs_quota_read()
2514 while (toread > 0) { in reiserfs_quota_read()
2517 toread ? sb->s_blocksize - offset : toread; in reiserfs_quota_read()
2538 toread -= tocopy; in reiserfs_quota_read()
/OK3568_Linux_fs/kernel/drivers/md/
H A Draid5.h265 struct bio *toread, *read, *towrite, *written; member
H A Draid5.c589 if (dev->toread || dev->read || dev->towrite || dev->written || in init_stripe()
592 (unsigned long long)sh->sector, i, dev->toread, in init_stripe()
1424 dev->read = rbi = dev->toread; in ops_run_biofill()
1425 dev->toread = NULL; in ops_run_biofill()
3425 bip = &sh->dev[dd_idx].toread; in add_stripe_bio()
3628 bi = sh->dev[i].toread; in handle_failed_stripe()
3629 sh->dev[i].toread = NULL; in handle_failed_stripe()
3743 if (dev->toread || in need_this_block()
3755 if ((s->failed >= 1 && fdev[0]->toread) || in need_this_block()
3756 (s->failed >= 2 && fdev[1]->toread)) in need_this_block()
[all …]
/OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/
H A Dnand_base.c3207 int toread = min(oobreadlen, max_oobsize); in nand_do_read_ops() local
3209 if (toread) { in nand_do_read_ops()
3211 toread); in nand_do_read_ops()
3212 oobreadlen -= toread; in nand_do_read_ops()
3311 int i, toread, sndrnd = 0, pos, ret; in nand_read_oob_syndrome() local
3334 toread = min_t(int, length, chunk); in nand_read_oob_syndrome()
3336 ret = nand_read_data_op(chip, bufpoi, toread, false, false); in nand_read_oob_syndrome()
3340 bufpoi += toread; in nand_read_oob_syndrome()
3341 length -= toread; in nand_read_oob_syndrome()
/OK3568_Linux_fs/kernel/fs/f2fs/
H A Dsuper.c2333 size_t toread; in f2fs_quota_read() local
2343 toread = len; in f2fs_quota_read()
2344 while (toread > 0) { in f2fs_quota_read()
2345 tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); in f2fs_quota_read()
2376 toread -= tocopy; in f2fs_quota_read()
/OK3568_Linux_fs/kernel/fs/ext4/
H A Dsuper.c6512 size_t toread; in ext4_quota_read() local
6520 toread = len; in ext4_quota_read()
6521 while (toread > 0) { in ext4_quota_read()
6522 tocopy = sb->s_blocksize - offset < toread ? in ext4_quota_read()
6523 sb->s_blocksize - offset : toread; in ext4_quota_read()
6533 toread -= tocopy; in ext4_quota_read()
/OK3568_Linux_fs/kernel/arch/x86/kvm/
H A Dx86.c6079 unsigned toread = min(bytes, (unsigned)PAGE_SIZE - offset); in kvm_read_guest_virt_helper() local
6085 offset, toread); in kvm_read_guest_virt_helper()
6091 bytes -= toread; in kvm_read_guest_virt_helper()
6092 data += toread; in kvm_read_guest_virt_helper()
6093 addr += toread; in kvm_read_guest_virt_helper()