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

/linux-4.4.14/drivers/mtd/nand/bcm47xxnflash/
H A Dops_bcm4706.c98 int toread; bcm47xxnflash_ops_bcm4706_read() local
106 toread = min(len, 0x200); bcm47xxnflash_ops_bcm4706_read()
124 for (i = 0; i < toread; i += 4, dest++) { bcm47xxnflash_ops_bcm4706_read()
126 if (i == toread - 4) /* Last read goes without that */ bcm47xxnflash_ops_bcm4706_read()
134 b47n->curr_column += toread; bcm47xxnflash_ops_bcm4706_read()
135 len -= toread; bcm47xxnflash_ops_bcm4706_read()
/linux-4.4.14/drivers/mtd/maps/
H A Dpcmciamtd.c145 int toread = win_size - (from & (win_size-1)); pcmcia_copy_from_remap() local
148 if(toread > len) pcmcia_copy_from_remap()
149 toread = len; pcmcia_copy_from_remap()
155 pr_debug("memcpy from %p to %p len = %d\n", addr, to, toread); pcmcia_copy_from_remap()
156 memcpy_fromio(to, addr, toread); pcmcia_copy_from_remap()
157 len -= toread; pcmcia_copy_from_remap()
158 to += toread; pcmcia_copy_from_remap()
159 from += toread; pcmcia_copy_from_remap()
/linux-4.4.14/tools/iio/
H A Dgeneric_buffer.c213 int ret, c, i, j, toread; main() local
418 toread = buf_len; main()
421 toread = 64; main()
424 read_size = read(fp, data, toread * scan_size); main()
/linux-4.4.14/fs/jfs/
H A Dsuper.c746 size_t toread; jfs_quota_read() local
755 toread = len; jfs_quota_read()
756 while (toread > 0) { jfs_quota_read()
757 tocopy = sb->s_blocksize - offset < toread ? jfs_quota_read()
758 sb->s_blocksize - offset : toread; jfs_quota_read()
775 toread -= tocopy; jfs_quota_read()
/linux-4.4.14/drivers/net/can/c_can/
H A Dc_can.c817 u32 pkts = 0, pend = 0, toread, n; c_can_do_rx_poll() local
835 toread = c_can_adjust_pending(pend); c_can_do_rx_poll()
837 toread = pend; c_can_do_rx_poll()
840 pend &= ~toread; c_can_do_rx_poll()
842 n = c_can_read_objects(dev, priv, toread, quota); c_can_do_rx_poll()
/linux-4.4.14/fs/ocfs2/
H A Dquota_global.c175 size_t toread, tocopy; ocfs2_quota_read() local
182 toread = len; ocfs2_quota_read()
183 while (toread > 0) { ocfs2_quota_read()
184 tocopy = min_t(size_t, (sb->s_blocksize - offset), toread); ocfs2_quota_read()
205 toread -= tocopy; ocfs2_quota_read()
/linux-4.4.14/fs/ext2/
H A Dsuper.c1456 size_t toread; ext2_quota_read() local
1465 toread = len; ext2_quota_read()
1466 while (toread > 0) { ext2_quota_read()
1467 tocopy = sb->s_blocksize - offset < toread ? ext2_quota_read()
1468 sb->s_blocksize - offset : toread; ext2_quota_read()
1485 toread -= tocopy; ext2_quota_read()
/linux-4.4.14/fs/reiserfs/
H A Dsuper.c2409 size_t toread; reiserfs_quota_read() local
2417 toread = len; reiserfs_quota_read()
2418 while (toread > 0) { reiserfs_quota_read()
2421 toread ? sb->s_blocksize - offset : toread; reiserfs_quota_read()
2442 toread -= tocopy; reiserfs_quota_read()
/linux-4.4.14/drivers/mtd/nand/
H A Dnand_base.c1772 int toread = min(oobreadlen, max_oobsize); nand_do_read_ops() local
1774 if (toread) { nand_do_read_ops()
1776 oob, ops, toread); nand_do_read_ops()
1777 oobreadlen -= toread; nand_do_read_ops()
1910 int i, toread, sndrnd = 0, pos; nand_read_oob_syndrome() local
1922 toread = min_t(int, length, chunk); nand_read_oob_syndrome()
1923 chip->read_buf(mtd, bufpoi, toread); nand_read_oob_syndrome()
1924 bufpoi += toread; nand_read_oob_syndrome()
1925 length -= toread; nand_read_oob_syndrome()
/linux-4.4.14/drivers/md/
H A Draid5.c542 if (dev->toread || dev->read || dev->towrite || dev->written || init_stripe()
545 (unsigned long long)sh->sector, i, dev->toread, init_stripe()
1226 dev->read = rbi = dev->toread; ops_run_biofill()
1227 dev->toread = NULL; ops_run_biofill()
2948 * toread/towrite point to the first in a chain.
2979 bip = &sh->dev[dd_idx].toread; add_stripe_bio()
3157 bi = sh->dev[i].toread; handle_failed_stripe()
3158 sh->dev[i].toread = NULL; handle_failed_stripe()
3277 if (dev->toread || need_this_block()
3289 if ((s->failed >= 1 && fdev[0]->toread) || need_this_block()
3290 (s->failed >= 2 && fdev[1]->toread)) need_this_block()
4038 dev->toread, dev->towrite, dev->written); analyse_stripe()
4044 if (test_bit(R5_UPTODATE, &dev->flags) && dev->toread && analyse_stripe()
4060 else if (dev->toread) analyse_stripe()
5097 if (sh->dev[d].towrite || sh->dev[d].toread) { make_discard_request()
H A Draid5.h247 struct bio *toread, *read, *towrite, *written; member in struct:stripe_head::r5dev
298 R5_Wantfill, /* dev->toread contains a bio that needs
/linux-4.4.14/fs/ext4/
H A Dsuper.c5096 size_t toread; ext4_quota_read() local
5104 toread = len; ext4_quota_read()
5105 while (toread > 0) { ext4_quota_read()
5106 tocopy = sb->s_blocksize - offset < toread ? ext4_quota_read()
5107 sb->s_blocksize - offset : toread; ext4_quota_read()
5117 toread -= tocopy; ext4_quota_read()
/linux-4.4.14/arch/x86/kvm/
H A Dx86.c4162 unsigned toread = min(bytes, (unsigned)PAGE_SIZE - offset); kvm_read_guest_virt_helper() local
4168 offset, toread); kvm_read_guest_virt_helper()
4174 bytes -= toread; kvm_read_guest_virt_helper()
4175 data += toread; kvm_read_guest_virt_helper()
4176 addr += toread; kvm_read_guest_virt_helper()

Completed in 596 milliseconds