Home
last modified time | relevance | path

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

/linux/drivers/mtd/maps/
H A 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/fs/jffs2/
H A 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/fs/ext2/
H A 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/drivers/md/
H A Draid5.c599 if (dev->toread || dev->read || dev->towrite || dev->written || in init_stripe()
603 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()
1945 chosen = dev->towrite; in ops_run_biodrain()
1946 dev->towrite = NULL; in ops_run_biodrain()
3355 if (dev->towrite && !delay_towrite(conf, dev, s)) { in schedule_reconstruction()
3396 if (dev->towrite && in schedule_reconstruction()
3458 bip = &sh->dev[dd_idx].towrite; in stripe_bio_overlaps()
3487 (i == dd_idx || sh->dev[i].towrite)) { in stripe_bio_overlaps()
[all …]
H A Draid5.h266 struct bio *toread, *read, *towrite, *written; member
H A Draid5-cache.c2680 if (dev->towrite && !test_bit(R5_OVERWRITE, &dev->flags) && in r5c_try_caching_write()
2727 if (dev->towrite) { in r5c_try_caching_write()
/linux/arch/x86/kvm/
H A Dx86.c7690 unsigned towrite = min(bytes, (unsigned)PAGE_SIZE - offset); in kvm_write_guest_virt_helper() local
7695 ret = kvm_vcpu_write_guest(vcpu, gpa, data, towrite); in kvm_write_guest_virt_helper()
7701 bytes -= towrite; in kvm_write_guest_virt_helper()
7702 data += towrite; in kvm_write_guest_virt_helper()
7703 addr += towrite; in kvm_write_guest_virt_helper()