Home
last modified time | relevance | path

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

/linux-4.1.27/tools/iio/
Dgeneric_buffer.c150 int ret, c, i, j, toread; in main() local
313 toread = buf_len; in main()
317 toread = 64; in main()
322 toread*scan_size); in main()
/linux-4.1.27/drivers/mtd/nand/bcm47xxnflash/
Dops_bcm4706.c98 int toread; in bcm47xxnflash_ops_bcm4706_read() local
106 toread = min(len, 0x200); in bcm47xxnflash_ops_bcm4706_read()
124 for (i = 0; i < toread; i += 4, dest++) { in bcm47xxnflash_ops_bcm4706_read()
126 if (i == toread - 4) /* Last read goes without that */ in bcm47xxnflash_ops_bcm4706_read()
134 b47n->curr_column += toread; in bcm47xxnflash_ops_bcm4706_read()
135 len -= toread; in bcm47xxnflash_ops_bcm4706_read()
/linux-4.1.27/drivers/mtd/maps/
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()
/linux-4.1.27/fs/jfs/
Dsuper.c749 size_t toread; in jfs_quota_read() local
758 toread = len; in jfs_quota_read()
759 while (toread > 0) { in jfs_quota_read()
760 tocopy = sb->s_blocksize - offset < toread ? in jfs_quota_read()
761 sb->s_blocksize - offset : toread; in jfs_quota_read()
778 toread -= tocopy; in jfs_quota_read()
/linux-4.1.27/fs/ocfs2/
Dquota_global.c175 size_t toread, tocopy; in ocfs2_quota_read() local
182 toread = len; in ocfs2_quota_read()
183 while (toread > 0) { in ocfs2_quota_read()
184 tocopy = min_t(size_t, (sb->s_blocksize - offset), toread); in ocfs2_quota_read()
205 toread -= tocopy; in ocfs2_quota_read()
/linux-4.1.27/drivers/net/can/c_can/
Dc_can.c817 u32 pkts = 0, pend = 0, toread, n; in c_can_do_rx_poll() local
835 toread = c_can_adjust_pending(pend); in c_can_do_rx_poll()
837 toread = pend; in c_can_do_rx_poll()
840 pend &= ~toread; in c_can_do_rx_poll()
842 n = c_can_read_objects(dev, priv, toread, quota); in c_can_do_rx_poll()
/linux-4.1.27/fs/ext2/
Dsuper.c1450 size_t toread; in ext2_quota_read() local
1459 toread = len; in ext2_quota_read()
1460 while (toread > 0) { in ext2_quota_read()
1461 tocopy = sb->s_blocksize - offset < toread ? in ext2_quota_read()
1462 sb->s_blocksize - offset : toread; in ext2_quota_read()
1479 toread -= tocopy; in ext2_quota_read()
/linux-4.1.27/drivers/md/
Draid5.h244 struct bio *toread, *read, *towrite, *written; member
Draid5.c544 if (dev->toread || dev->read || dev->towrite || dev->written || in init_stripe()
547 (unsigned long long)sh->sector, i, dev->toread, in init_stripe()
1224 dev->read = rbi = dev->toread; in ops_run_biofill()
1225 dev->toread = NULL; in ops_run_biofill()
2981 bip = &sh->dev[dd_idx].toread; in add_stripe_bio()
3156 bi = sh->dev[i].toread; in handle_failed_stripe()
3157 sh->dev[i].toread = NULL; in handle_failed_stripe()
3273 if (dev->toread || in need_this_block()
3285 if ((s->failed >= 1 && fdev[0]->toread) || in need_this_block()
3286 (s->failed >= 2 && fdev[1]->toread)) in need_this_block()
[all …]
/linux-4.1.27/fs/reiserfs/
Dsuper.c2409 size_t toread; in reiserfs_quota_read() local
2417 toread = len; in reiserfs_quota_read()
2418 while (toread > 0) { in reiserfs_quota_read()
2421 toread ? sb->s_blocksize - offset : toread; in reiserfs_quota_read()
2442 toread -= tocopy; in reiserfs_quota_read()
/linux-4.1.27/drivers/mtd/nand/
Dnand_base.c1638 int toread = min(oobreadlen, max_oobsize); in nand_do_read_ops() local
1640 if (toread) { in nand_do_read_ops()
1642 oob, ops, toread); in nand_do_read_ops()
1643 oobreadlen -= toread; in nand_do_read_ops()
1776 int i, toread, sndrnd = 0, pos; in nand_read_oob_syndrome() local
1788 toread = min_t(int, length, chunk); in nand_read_oob_syndrome()
1789 chip->read_buf(mtd, bufpoi, toread); in nand_read_oob_syndrome()
1790 bufpoi += toread; in nand_read_oob_syndrome()
1791 length -= toread; in nand_read_oob_syndrome()
/linux-4.1.27/fs/ext3/
Dsuper.c3024 size_t toread; in ext3_quota_read() local
3032 toread = len; in ext3_quota_read()
3033 while (toread > 0) { in ext3_quota_read()
3034 tocopy = sb->s_blocksize - offset < toread ? in ext3_quota_read()
3035 sb->s_blocksize - offset : toread; in ext3_quota_read()
3045 toread -= tocopy; in ext3_quota_read()
/linux-4.1.27/fs/ext4/
Dsuper.c5431 size_t toread; in ext4_quota_read() local
5439 toread = len; in ext4_quota_read()
5440 while (toread > 0) { in ext4_quota_read()
5441 tocopy = sb->s_blocksize - offset < toread ? in ext4_quota_read()
5442 sb->s_blocksize - offset : toread; in ext4_quota_read()
5452 toread -= tocopy; in ext4_quota_read()
/linux-4.1.27/arch/x86/kvm/
Dx86.c4253 unsigned toread = min(bytes, (unsigned)PAGE_SIZE - offset); in kvm_read_guest_virt_helper() local
4259 offset, toread); in kvm_read_guest_virt_helper()
4265 bytes -= toread; in kvm_read_guest_virt_helper()
4266 data += toread; in kvm_read_guest_virt_helper()
4267 addr += toread; in kvm_read_guest_virt_helper()