Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/staging/iio/Documentation/
Dgeneric_buffer.c124 int ret, c, i, j, toread; in main() local
290 toread = buf_len; in main()
293 toread = buf_len*3/4; in main()
296 toread = buf_len/2; in main()
304 toread = 64; in main()
309 toread*scan_size); in main()
/linux-2.6.39/drivers/mtd/maps/
Dpcmciamtd.c162 int toread = win_size - (from & (win_size-1)); in pcmcia_copy_from_remap() local
165 if(toread > len) in pcmcia_copy_from_remap()
166 toread = len; in pcmcia_copy_from_remap()
172 DEBUG(4, "memcpy from %p to %p len = %d", addr, to, toread); in pcmcia_copy_from_remap()
173 memcpy_fromio(to, addr, toread); in pcmcia_copy_from_remap()
174 len -= toread; in pcmcia_copy_from_remap()
175 to += toread; in pcmcia_copy_from_remap()
176 from += toread; in pcmcia_copy_from_remap()
/linux-2.6.39/fs/jfs/
Dsuper.c657 size_t toread; in jfs_quota_read() local
666 toread = len; in jfs_quota_read()
667 while (toread > 0) { in jfs_quota_read()
668 tocopy = sb->s_blocksize - offset < toread ? in jfs_quota_read()
669 sb->s_blocksize - offset : toread; in jfs_quota_read()
686 toread -= tocopy; in jfs_quota_read()
/linux-2.6.39/fs/ocfs2/
Dquota_global.c171 size_t toread, tocopy; in ocfs2_quota_read() local
178 toread = len; in ocfs2_quota_read()
179 while (toread > 0) { in ocfs2_quota_read()
180 tocopy = min_t(size_t, (sb->s_blocksize - offset), toread); in ocfs2_quota_read()
201 toread -= tocopy; in ocfs2_quota_read()
/linux-2.6.39/fs/ext2/
Dsuper.c1395 size_t toread; in ext2_quota_read() local
1404 toread = len; in ext2_quota_read()
1405 while (toread > 0) { in ext2_quota_read()
1406 tocopy = sb->s_blocksize - offset < toread ? in ext2_quota_read()
1407 sb->s_blocksize - offset : toread; in ext2_quota_read()
1424 toread -= tocopy; in ext2_quota_read()
/linux-2.6.39/drivers/md/
Draid5.h236 struct bio *toread, *read, *towrite, *written; member
Draid5.c338 if (dev->toread || dev->read || dev->towrite || dev->written || in init_stripe()
341 (unsigned long long)sh->sector, i, dev->toread, in init_stripe()
685 dev->read = rbi = dev->toread; in ops_run_biofill()
686 dev->toread = NULL; in ops_run_biofill()
2160 bip = &sh->dev[dd_idx].toread; in add_stripe_bio()
2292 bi = sh->dev[i].toread; in handle_failed_stripe()
2293 sh->dev[i].toread = NULL; in handle_failed_stripe()
2335 (dev->toread || in fetch_block5()
2339 (failed_dev->toread || in fetch_block5()
2408 (dev->toread || in fetch_block6()
[all …]
/linux-2.6.39/drivers/net/wan/
Dcycx_x25.c971 u16 size, toread, link, msg_code; in cycx_x25_irq_log() local
978 toread = size < 20 ? size : 20; in cycx_x25_irq_log()
979 cycx_peek(&card->hw, cmd->buf + 10, &bf, toread); in cycx_x25_irq_log()
980 cycx_peek(&card->hw, cmd->buf + 10 + toread, &code, 1); in cycx_x25_irq_log()
981 cycx_peek(&card->hw, cmd->buf + 10 + toread + 1, &routine, 1); in cycx_x25_irq_log()
990 hex_dump("Message", bf, toread); in cycx_x25_irq_log()
/linux-2.6.39/fs/reiserfs/
Dsuper.c2115 size_t toread; in reiserfs_quota_read() local
2123 toread = len; in reiserfs_quota_read()
2124 while (toread > 0) { in reiserfs_quota_read()
2127 toread ? sb->s_blocksize - offset : toread; in reiserfs_quota_read()
2145 toread -= tocopy; in reiserfs_quota_read()
/linux-2.6.39/drivers/mtd/nand/
Dnand_base.c1519 int toread = min(oobreadlen, max_oobsize); in nand_do_read_ops() local
1521 if (toread) { in nand_do_read_ops()
1523 oob, ops, toread); in nand_do_read_ops()
1524 oobreadlen -= toread; in nand_do_read_ops()
1655 int i, toread, sndrnd = 0, pos; in nand_read_oob_syndrome() local
1667 toread = min_t(int, length, chunk); in nand_read_oob_syndrome()
1668 chip->read_buf(mtd, bufpoi, toread); in nand_read_oob_syndrome()
1669 bufpoi += toread; in nand_read_oob_syndrome()
1670 length -= toread; in nand_read_oob_syndrome()
/linux-2.6.39/fs/ext3/
Dsuper.c2938 size_t toread; in ext3_quota_read() local
2946 toread = len; in ext3_quota_read()
2947 while (toread > 0) { in ext3_quota_read()
2948 tocopy = sb->s_blocksize - offset < toread ? in ext3_quota_read()
2949 sb->s_blocksize - offset : toread; in ext3_quota_read()
2959 toread -= tocopy; in ext3_quota_read()
/linux-2.6.39/fs/ext4/
Dsuper.c4680 size_t toread; in ext4_quota_read() local
4688 toread = len; in ext4_quota_read()
4689 while (toread > 0) { in ext4_quota_read()
4690 tocopy = sb->s_blocksize - offset < toread ? in ext4_quota_read()
4691 sb->s_blocksize - offset : toread; in ext4_quota_read()
4701 toread -= tocopy; in ext4_quota_read()
/linux-2.6.39/arch/x86/kvm/
Dx86.c3686 unsigned toread = min(bytes, (unsigned)PAGE_SIZE - offset); in kvm_read_guest_virt_helper() local
3691 ret = kvm_read_guest(vcpu->kvm, gpa, data, toread); in kvm_read_guest_virt_helper()
3697 bytes -= toread; in kvm_read_guest_virt_helper()
3698 data += toread; in kvm_read_guest_virt_helper()
3699 addr += toread; in kvm_read_guest_virt_helper()