Home
last modified time | relevance | path

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

/linux-6.1.9/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-6.1.9/fs/jfs/
Dsuper.c782 size_t towrite = len; in jfs_quota_write() local
787 while (towrite > 0) { in jfs_quota_write()
788 tocopy = sb->s_blocksize - offset < towrite ? in jfs_quota_write()
789 sb->s_blocksize - offset : towrite; in jfs_quota_write()
812 towrite -= tocopy; in jfs_quota_write()
817 if (len == towrite) { in jfs_quota_write()
821 if (inode->i_size < off+len-towrite) in jfs_quota_write()
822 i_size_write(inode, off+len-towrite); in jfs_quota_write()
826 return len - towrite; in jfs_quota_write()
/linux-6.1.9/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-6.1.9/fs/ext2/
Dsuper.c1545 size_t towrite = len; in ext2_quota_write() local
1549 while (towrite > 0) { in ext2_quota_write()
1550 tocopy = min_t(size_t, sb->s_blocksize - offset, towrite); in ext2_quota_write()
1573 towrite -= tocopy; in ext2_quota_write()
1578 if (len == towrite) in ext2_quota_write()
1580 if (inode->i_size < off+len-towrite) in ext2_quota_write()
1581 i_size_write(inode, off+len-towrite); in ext2_quota_write()
1585 return len - towrite; in ext2_quota_write()
/linux-6.1.9/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-6.1.9/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()
947 if (head->dev[dd_idx].towrite->bi_opf != sh->dev[dd_idx].towrite->bi_opf || in stripe_add_to_batch_list()
948 bio_op(head->dev[dd_idx].towrite) != bio_op(sh->dev[dd_idx].towrite)) in stripe_add_to_batch_list()
1953 chosen = dev->towrite; in ops_run_biodrain()
1954 dev->towrite = NULL; in ops_run_biodrain()
3391 if (dev->towrite && !delay_towrite(conf, dev, s)) { in schedule_reconstruction()
3432 if (dev->towrite && in schedule_reconstruction()
3494 bip = &sh->dev[dd_idx].towrite; in stripe_bio_overlaps()
3523 (i == dd_idx || sh->dev[i].towrite)) { in stripe_bio_overlaps()
[all …]
Draid5.h266 struct bio *toread, *read, *towrite, *written; member
Draid5-cache.c2685 if (dev->towrite && !test_bit(R5_OVERWRITE, &dev->flags) && in r5c_try_caching_write()
2732 if (dev->towrite) { in r5c_try_caching_write()
/linux-6.1.9/fs/f2fs/
Dsuper.c2529 size_t towrite = len; in f2fs_quota_write() local
2535 while (towrite > 0) { in f2fs_quota_write()
2537 towrite); in f2fs_quota_write()
2555 towrite -= tocopy; in f2fs_quota_write()
2561 if (len == towrite) in f2fs_quota_write()
2565 return len - towrite; in f2fs_quota_write()
/linux-6.1.9/arch/x86/kvm/
Dx86.c7307 unsigned towrite = min(bytes, (unsigned)PAGE_SIZE - offset); in kvm_write_guest_virt_helper() local
7312 ret = kvm_vcpu_write_guest(vcpu, gpa, data, towrite); in kvm_write_guest_virt_helper()
7318 bytes -= towrite; in kvm_write_guest_virt_helper()
7319 data += towrite; in kvm_write_guest_virt_helper()
7320 addr += towrite; in kvm_write_guest_virt_helper()