Home
last modified time | relevance | path

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

/linux-4.4.14/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.4.14/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.4.14/tools/iio/
Dgeneric_buffer.c213 int ret, c, i, j, toread; in main() local
418 toread = buf_len; in main()
421 toread = 64; in main()
424 read_size = read(fp, data, toread * scan_size); in main()
/linux-4.4.14/fs/jfs/
Dsuper.c746 size_t toread; in jfs_quota_read() local
755 toread = len; in jfs_quota_read()
756 while (toread > 0) { in jfs_quota_read()
757 tocopy = sb->s_blocksize - offset < toread ? in jfs_quota_read()
758 sb->s_blocksize - offset : toread; in jfs_quota_read()
775 toread -= tocopy; in jfs_quota_read()
/linux-4.4.14/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.4.14/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.4.14/fs/ext2/
Dsuper.c1456 size_t toread; in ext2_quota_read() local
1465 toread = len; in ext2_quota_read()
1466 while (toread > 0) { in ext2_quota_read()
1467 tocopy = sb->s_blocksize - offset < toread ? in ext2_quota_read()
1468 sb->s_blocksize - offset : toread; in ext2_quota_read()
1485 toread -= tocopy; in ext2_quota_read()
/linux-4.4.14/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.4.14/drivers/md/
Draid5.h247 struct bio *toread, *read, *towrite, *written; member
Draid5.c542 if (dev->toread || dev->read || dev->towrite || dev->written || in init_stripe()
545 (unsigned long long)sh->sector, i, dev->toread, in init_stripe()
1226 dev->read = rbi = dev->toread; in ops_run_biofill()
1227 dev->toread = NULL; in ops_run_biofill()
2979 bip = &sh->dev[dd_idx].toread; in add_stripe_bio()
3157 bi = sh->dev[i].toread; in handle_failed_stripe()
3158 sh->dev[i].toread = NULL; in handle_failed_stripe()
3277 if (dev->toread || in need_this_block()
3289 if ((s->failed >= 1 && fdev[0]->toread) || in need_this_block()
3290 (s->failed >= 2 && fdev[1]->toread)) in need_this_block()
[all …]
/linux-4.4.14/drivers/mtd/nand/
Dnand_base.c1772 int toread = min(oobreadlen, max_oobsize); in nand_do_read_ops() local
1774 if (toread) { in nand_do_read_ops()
1776 oob, ops, toread); in nand_do_read_ops()
1777 oobreadlen -= toread; in nand_do_read_ops()
1910 int i, toread, sndrnd = 0, pos; in nand_read_oob_syndrome() local
1922 toread = min_t(int, length, chunk); in nand_read_oob_syndrome()
1923 chip->read_buf(mtd, bufpoi, toread); in nand_read_oob_syndrome()
1924 bufpoi += toread; in nand_read_oob_syndrome()
1925 length -= toread; in nand_read_oob_syndrome()
/linux-4.4.14/fs/ext4/
Dsuper.c5096 size_t toread; in ext4_quota_read() local
5104 toread = len; in ext4_quota_read()
5105 while (toread > 0) { in ext4_quota_read()
5106 tocopy = sb->s_blocksize - offset < toread ? in ext4_quota_read()
5107 sb->s_blocksize - offset : toread; in ext4_quota_read()
5117 toread -= tocopy; in ext4_quota_read()
/linux-4.4.14/arch/x86/kvm/
Dx86.c4162 unsigned toread = min(bytes, (unsigned)PAGE_SIZE - offset); in kvm_read_guest_virt_helper() local
4168 offset, toread); in kvm_read_guest_virt_helper()
4174 bytes -= toread; in kvm_read_guest_virt_helper()
4175 data += toread; in kvm_read_guest_virt_helper()
4176 addr += toread; in kvm_read_guest_virt_helper()