Lines Matching refs:tocopy
1494 size_t tocopy;
1539 tocopy = MIN(left, ntfs_cntob(1) - off);
1540 cl = ntfs_btocl(tocopy + off);
1541 KASSERT(cl == 1 && tocopy <= ntfs_cntob(1));
1545 (long long) off, (long long) tocopy,
1547 if ((off == 0) && (tocopy == ntfs_cntob(cl)))
1562 uiomove((char *)bp->b_data + off, tocopy, uio);
1564 memcpy((char *)bp->b_data + off, data, tocopy);
1566 data = (char *)data + tocopy;
1567 *initp += tocopy;
1569 left -= tocopy;
1608 size_t tocopy;
1645 tocopy = MIN(left,
1647 cl = ntfs_btocl(tocopy + off);
1649 tocopy <= ntfs_cntob(1));
1657 (long long) tocopy,
1669 tocopy, uio);
1672 tocopy);
1675 data = (char *)data + tocopy;
1676 *initp += tocopy;
1678 left -= tocopy;
1683 tocopy = MIN(left, ntfs_cntob(ccl) - off);
1688 (long long) off, (long long) tocopy,
1690 left -= tocopy;
1694 size_t remains = tocopy;
1698 memset(data, 0, tocopy);
1699 data = (char *)data + tocopy;
1811 off_t off = roff, left = rsize, tocopy;
1834 tocopy = MIN(left, ntfs_cntob(NTFS_COMPUNIT_CL) - off);
1838 uiomove(cup + off, tocopy, uio);
1840 memcpy(data, cup + off, tocopy);
1844 size_t remains = tocopy;
1849 memset(data, 0, tocopy);
1855 uiomove(uup + off, tocopy, uio);
1857 memcpy(data, uup + off, tocopy);
1860 left -= tocopy;
1861 data = (char *)data + tocopy;
1862 off += tocopy - ntfs_cntob(NTFS_COMPUNIT_CL);