towrite 5496 arch/x86/kvm/x86.c unsigned towrite = min(bytes, (unsigned)PAGE_SIZE - offset); towrite 5501 arch/x86/kvm/x86.c ret = kvm_vcpu_write_guest(vcpu, gpa, data, towrite); towrite 5507 arch/x86/kvm/x86.c bytes -= towrite; towrite 5508 arch/x86/kvm/x86.c data += towrite; towrite 5509 arch/x86/kvm/x86.c addr += towrite; towrite 2687 drivers/md/raid5-cache.c if (dev->towrite && !test_bit(R5_OVERWRITE, &dev->flags) && towrite 2734 drivers/md/raid5-cache.c if (dev->towrite) { towrite 511 drivers/md/raid5.c if (dev->toread || dev->read || dev->towrite || dev->written || towrite 515 drivers/md/raid5.c dev->read, dev->towrite, dev->written, towrite 795 drivers/md/raid5.c if (head->dev[dd_idx].towrite->bi_opf != sh->dev[dd_idx].towrite->bi_opf || towrite 796 drivers/md/raid5.c bio_op(head->dev[dd_idx].towrite) != bio_op(sh->dev[dd_idx].towrite)) towrite 1746 drivers/md/raid5.c chosen = dev->towrite; towrite 1747 drivers/md/raid5.c dev->towrite = NULL; towrite 3111 drivers/md/raid5.c if (dev->towrite && !delay_towrite(conf, dev, s)) { towrite 3152 drivers/md/raid5.c if (dev->towrite && towrite 3222 drivers/md/raid5.c bip = &sh->dev[dd_idx].towrite; towrite 3251 drivers/md/raid5.c (i == dd_idx || sh->dev[i].towrite)) { towrite 3278 drivers/md/raid5.c for (bi=sh->dev[dd_idx].towrite; towrite 3379 drivers/md/raid5.c bi = sh->dev[i].towrite; towrite 3380 drivers/md/raid5.c sh->dev[i].towrite = NULL; towrite 3544 drivers/md/raid5.c (dev->towrite && !test_bit(R5_OVERWRITE, &dev->flags))) towrite 3583 drivers/md/raid5.c if (fdev[i]->towrite && towrite 3893 drivers/md/raid5.c if (((dev->towrite && !delay_towrite(conf, dev, s)) || towrite 3958 drivers/md/raid5.c if (((dev->towrite && !delay_towrite(conf, dev, s)) || towrite 4402 drivers/md/raid5.c dev->toread, dev->towrite, dev->written); towrite 4426 drivers/md/raid5.c if (dev->towrite) { towrite 5534 drivers/md/raid5.c if (sh->dev[d].towrite || sh->dev[d].toread) { towrite 5548 drivers/md/raid5.c sh->dev[d].towrite = bi; towrite 256 drivers/md/raid5.h struct bio *toread, *read, *towrite, *written; towrite 194 drivers/mtd/maps/pcmciamtd.c int towrite = win_size - (to & (win_size-1)); towrite 197 drivers/mtd/maps/pcmciamtd.c if(towrite > len) towrite 198 drivers/mtd/maps/pcmciamtd.c towrite = len; towrite 204 drivers/mtd/maps/pcmciamtd.c pr_debug("memcpy from %p to %p len = %d\n", from, addr, towrite); towrite 205 drivers/mtd/maps/pcmciamtd.c memcpy_toio(addr, from, towrite); towrite 206 drivers/mtd/maps/pcmciamtd.c len -= towrite; towrite 207 drivers/mtd/maps/pcmciamtd.c to += towrite; towrite 208 drivers/mtd/maps/pcmciamtd.c from += towrite; towrite 1545 fs/ext2/super.c size_t towrite = len; towrite 1549 fs/ext2/super.c while (towrite > 0) { towrite 1550 fs/ext2/super.c tocopy = sb->s_blocksize - offset < towrite ? towrite 1551 fs/ext2/super.c sb->s_blocksize - offset : towrite; towrite 1574 fs/ext2/super.c towrite -= tocopy; towrite 1579 fs/ext2/super.c if (len == towrite) towrite 1581 fs/ext2/super.c if (inode->i_size < off+len-towrite) towrite 1582 fs/ext2/super.c i_size_write(inode, off+len-towrite); towrite 1586 fs/ext2/super.c return len - towrite; towrite 1827 fs/f2fs/super.c size_t towrite = len; towrite 1834 fs/f2fs/super.c while (towrite > 0) { towrite 1836 fs/f2fs/super.c towrite); towrite 1857 fs/f2fs/super.c towrite -= tocopy; towrite 1863 fs/f2fs/super.c if (len == towrite) towrite 1867 fs/f2fs/super.c return len - towrite; towrite 415 fs/jffs2/wbuf.c uint32_t towrite = (end-start) - ((end-start)%c->wbuf_pagesize); towrite 418 fs/jffs2/wbuf.c towrite, ofs); towrite 425 fs/jffs2/wbuf.c mtd_write(c->mtd, ofs, towrite, &retlen, brokenbuf); towrite 429 fs/jffs2/wbuf.c ret = mtd_write(c->mtd, ofs, towrite, &retlen, towrite 432 fs/jffs2/wbuf.c if (ret || retlen != towrite || jffs2_verify_write(c, rewrite_buf, ofs)) { towrite 444 fs/jffs2/wbuf.c c->wbuf_len = (end - start) - towrite; towrite 445 fs/jffs2/wbuf.c c->wbuf_ofs = ofs + towrite; towrite 446 fs/jffs2/wbuf.c memmove(c->wbuf, rewrite_buf + towrite, c->wbuf_len); towrite 788 fs/jfs/super.c size_t towrite = len; towrite 793 fs/jfs/super.c while (towrite > 0) { towrite 794 fs/jfs/super.c tocopy = sb->s_blocksize - offset < towrite ? towrite 795 fs/jfs/super.c sb->s_blocksize - offset : towrite; towrite 818 fs/jfs/super.c towrite -= tocopy; towrite 823 fs/jfs/super.c if (len == towrite) { towrite 827 fs/jfs/super.c if (inode->i_size < off+len-towrite) towrite 828 fs/jfs/super.c i_size_write(inode, off+len-towrite); towrite 832 fs/jfs/super.c return len - towrite; towrite 2548 fs/reiserfs/super.c size_t towrite = len; towrite 2556 fs/reiserfs/super.c while (towrite > 0) { towrite 2557 fs/reiserfs/super.c tocopy = sb->s_blocksize - offset < towrite ? towrite 2558 fs/reiserfs/super.c sb->s_blocksize - offset : towrite; towrite 2586 fs/reiserfs/super.c towrite -= tocopy; towrite 2591 fs/reiserfs/super.c if (len == towrite) towrite 2593 fs/reiserfs/super.c if (inode->i_size < off + len - towrite) towrite 2594 fs/reiserfs/super.c i_size_write(inode, off + len - towrite); towrite 2597 fs/reiserfs/super.c return len - towrite;