Home
last modified time | relevance | path

Searched refs:towrite (Results 1 – 10 of 10) sorted by relevance

/Linux-v6.6/drivers/mtd/maps/
Dpcmciamtd.c194 int towrite = win_size - (to & (win_size-1)); in pcmcia_copy_to_remap() local
197 if(towrite > len) in pcmcia_copy_to_remap()
198 towrite = len; in pcmcia_copy_to_remap()
204 pr_debug("memcpy from %p to %p len = %d\n", from, addr, towrite); in pcmcia_copy_to_remap()
205 memcpy_toio(addr, from, towrite); in pcmcia_copy_to_remap()
206 len -= towrite; in pcmcia_copy_to_remap()
207 to += towrite; in pcmcia_copy_to_remap()
208 from += towrite; in pcmcia_copy_to_remap()
/Linux-v6.6/fs/jfs/
Dsuper.c781 size_t towrite = len; in jfs_quota_write() local
786 while (towrite > 0) { in jfs_quota_write()
787 tocopy = min_t(size_t, sb->s_blocksize - offset, towrite); in jfs_quota_write()
810 towrite -= tocopy; in jfs_quota_write()
815 if (len == towrite) { in jfs_quota_write()
819 if (inode->i_size < off+len-towrite) in jfs_quota_write()
820 i_size_write(inode, off+len-towrite); in jfs_quota_write()
824 return len - towrite; in jfs_quota_write()
/Linux-v6.6/fs/jffs2/
Dwbuf.c415 uint32_t towrite = (end-start) - ((end-start)%c->wbuf_pagesize); in jffs2_wbuf_recover() local
418 towrite, ofs); in jffs2_wbuf_recover()
425 mtd_write(c->mtd, ofs, towrite, &retlen, brokenbuf); in jffs2_wbuf_recover()
429 ret = mtd_write(c->mtd, ofs, towrite, &retlen, in jffs2_wbuf_recover()
432 if (ret || retlen != towrite || jffs2_verify_write(c, rewrite_buf, ofs)) { in jffs2_wbuf_recover()
444 c->wbuf_len = (end - start) - towrite; in jffs2_wbuf_recover()
445 c->wbuf_ofs = ofs + towrite; in jffs2_wbuf_recover()
446 memmove(c->wbuf, rewrite_buf + towrite, c->wbuf_len); in jffs2_wbuf_recover()
/Linux-v6.6/fs/ext2/
Dsuper.c1537 size_t towrite = len; in ext2_quota_write() local
1541 while (towrite > 0) { in ext2_quota_write()
1542 tocopy = min_t(size_t, sb->s_blocksize - offset, towrite); in ext2_quota_write()
1565 towrite -= tocopy; in ext2_quota_write()
1570 if (len == towrite) in ext2_quota_write()
1572 if (inode->i_size < off+len-towrite) in ext2_quota_write()
1573 i_size_write(inode, off+len-towrite); in ext2_quota_write()
1577 return len - towrite; in ext2_quota_write()
/Linux-v6.6/fs/reiserfs/
Dsuper.c2544 size_t towrite = len; in reiserfs_quota_write() local
2552 while (towrite > 0) { in reiserfs_quota_write()
2553 tocopy = min_t(unsigned long, sb->s_blocksize - offset, towrite); in reiserfs_quota_write()
2581 towrite -= tocopy; in reiserfs_quota_write()
2586 if (len == towrite) in reiserfs_quota_write()
2588 if (inode->i_size < off + len - towrite) in reiserfs_quota_write()
2589 i_size_write(inode, off + len - towrite); in reiserfs_quota_write()
2592 return len - towrite; in reiserfs_quota_write()
/Linux-v6.6/drivers/md/
Draid5.c598 if (dev->toread || dev->read || dev->towrite || dev->written || in init_stripe()
602 dev->read, dev->towrite, dev->written, in init_stripe()
954 if (head->dev[dd_idx].towrite->bi_opf != sh->dev[dd_idx].towrite->bi_opf || in stripe_add_to_batch_list()
955 bio_op(head->dev[dd_idx].towrite) != bio_op(sh->dev[dd_idx].towrite)) in stripe_add_to_batch_list()
1960 chosen = dev->towrite; in ops_run_biodrain()
1961 dev->towrite = NULL; in ops_run_biodrain()
3398 if (dev->towrite && !delay_towrite(conf, dev, s)) { in schedule_reconstruction()
3439 if (dev->towrite && in schedule_reconstruction()
3501 bip = &sh->dev[dd_idx].towrite; in stripe_bio_overlaps()
3530 (i == dd_idx || sh->dev[i].towrite)) { in stripe_bio_overlaps()
[all …]
Draid5.h266 struct bio *toread, *read, *towrite, *written; member
Draid5-cache.c2686 if (dev->towrite && !test_bit(R5_OVERWRITE, &dev->flags) && in r5c_try_caching_write()
2733 if (dev->towrite) { in r5c_try_caching_write()
/Linux-v6.6/fs/f2fs/
Dsuper.c2679 size_t towrite = len; in f2fs_quota_write() local
2685 while (towrite > 0) { in f2fs_quota_write()
2687 towrite); in f2fs_quota_write()
2705 towrite -= tocopy; in f2fs_quota_write()
2711 if (len == towrite) in f2fs_quota_write()
2715 return len - towrite; in f2fs_quota_write()
/Linux-v6.6/arch/x86/kvm/
Dx86.c7442 unsigned towrite = min(bytes, (unsigned)PAGE_SIZE - offset); in kvm_write_guest_virt_helper() local
7447 ret = kvm_vcpu_write_guest(vcpu, gpa, data, towrite); in kvm_write_guest_virt_helper()
7453 bytes -= towrite; in kvm_write_guest_virt_helper()
7454 data += towrite; in kvm_write_guest_virt_helper()
7455 addr += towrite; in kvm_write_guest_virt_helper()