Home
last modified time | relevance | path

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

/linux-6.15/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()
/linux-6.15/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()
/linux-6.15/drivers/iio/gyro/
H A Dmpu3050-core.c532 unsigned int toread; in mpu3050_trigger_handler() local
545 toread = bytes_per_datum + 2; in mpu3050_trigger_handler()
548 toread = bytes_per_datum; in mpu3050_trigger_handler()
557 toread); in mpu3050_trigger_handler()
575 fifocnt -= toread; in mpu3050_trigger_handler()
/linux-6.15/fs/jfs/
H A Dsuper.c702 size_t toread; in jfs_quota_read() local
711 toread = len; in jfs_quota_read()
712 while (toread > 0) { in jfs_quota_read()
713 tocopy = min_t(size_t, sb->s_blocksize - offset, toread); in jfs_quota_read()
730 toread -= tocopy; in jfs_quota_read()
/linux-6.15/tools/iio/
H A Diio_generic_buffer.c349 unsigned long toread; in main() local
746 toread = buf_len; in main()
748 read_size = read(buf_fd, data, toread * scan_size); in main()
/linux-6.15/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()
/linux-6.15/drivers/net/can/c_can/
H A Dc_can_main.c883 u32 pkts = 0, pend = 0, toread, n; in c_can_do_rx_poll() local
893 toread = c_can_adjust_pending(pend, in c_can_do_rx_poll()
896 toread = pend; in c_can_do_rx_poll()
899 pend &= ~toread; in c_can_do_rx_poll()
901 n = c_can_read_objects(dev, priv, toread, quota); in c_can_do_rx_poll()
/linux-6.15/fs/ext2/
H A Dsuper.c1527 size_t toread; in ext2_quota_read() local
1536 toread = len; in ext2_quota_read()
1537 while (toread > 0) { in ext2_quota_read()
1538 tocopy = min_t(size_t, sb->s_blocksize - offset, toread); in ext2_quota_read()
1555 toread -= tocopy; in ext2_quota_read()
/linux-6.15/drivers/md/
H A Draid5.h266 struct bio *toread, *read, *towrite, *written; member
H A Draid5.c1484 dev->read = rbi = dev->toread; in ops_run_biofill()
1485 dev->toread = NULL; in ops_run_biofill()
3456 bip = &sh->dev[dd_idx].toread; in stripe_bio_overlaps()
3512 bip = &sh->dev[dd_idx].toread; in __add_stripe_bio()
3663 bi = sh->dev[i].toread; in handle_failed_stripe()
3664 sh->dev[i].toread = NULL; in handle_failed_stripe()
3773 if (dev->toread || in need_this_block()
3785 if ((s->failed >= 1 && fdev[0]->toread) || in need_this_block()
3786 (s->failed >= 2 && fdev[1]->toread)) in need_this_block()
4632 dev->toread, dev->towrite, dev->written); in analyse_stripe()
[all …]
/linux-6.15/drivers/mtd/nand/raw/
H A Dnand_base.c3671 int toread = min(oobreadlen, max_oobsize); in nand_do_read_ops() local
3673 if (toread) { in nand_do_read_ops()
3675 toread); in nand_do_read_ops()
3676 oobreadlen -= toread; in nand_do_read_ops()
3780 int i, toread, sndrnd = 0, pos, ret; in nand_read_oob_syndrome() local
3803 toread = min_t(int, length, chunk); in nand_read_oob_syndrome()
3805 ret = nand_read_data_op(chip, bufpoi, toread, false, false); in nand_read_oob_syndrome()
3809 bufpoi += toread; in nand_read_oob_syndrome()
3810 length -= toread; in nand_read_oob_syndrome()
/linux-6.15/fs/f2fs/
H A Dsuper.c2695 size_t toread; in f2fs_quota_read() local
2704 toread = len; in f2fs_quota_read()
2705 while (toread > 0) { in f2fs_quota_read()
2706 tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); in f2fs_quota_read()
2734 toread -= tocopy; in f2fs_quota_read()
/linux-6.15/fs/ext4/
H A Dsuper.c7242 size_t toread; in ext4_quota_read() local
7250 toread = len; in ext4_quota_read()
7251 while (toread > 0) { in ext4_quota_read()
7252 tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread); in ext4_quota_read()
7262 toread -= tocopy; in ext4_quota_read()
/linux-6.15/arch/x86/kvm/
H A Dx86.c7612 unsigned toread = min(bytes, (unsigned)PAGE_SIZE - offset); in kvm_read_guest_virt_helper() local
7618 offset, toread); in kvm_read_guest_virt_helper()
7624 bytes -= toread; in kvm_read_guest_virt_helper()
7625 data += toread; in kvm_read_guest_virt_helper()
7626 addr += toread; in kvm_read_guest_virt_helper()