Lines Matching refs:blocksize

271 block_round(off_t o, int blocksize)
273 return ((o + blocksize - 1) / blocksize);
277 block_truncate(off_t o, int blocksize)
279 return (o / blocksize);
283 block_remainder(off_t o, int blocksize)
285 return (o % blocksize);
292 u_int32_t blocksize = vn->sc_secsize;
311 remainder = block_remainder(offset, blocksize);
313 block_truncate(offset, blocksize),
314 block_round(resid + remainder, blocksize),
323 this_offset = (off_t)this_block_number * blocksize + remainder;
325 this_resid = this_block_count * blocksize - remainder;
385 u_int32_t blocksize = vn->sc_secsize;
403 offset_block_number = block_truncate(offset, blocksize);
404 remainder = block_remainder(offset, blocksize);
405 resid_block_count = block_round(resid + remainder, blocksize);
417 && block_remainder(offset + resid, blocksize) > 0) {
436 shadow_block_number * blocksize + remainder);
437 this_resid = (off_t)shadow_block_count * blocksize - remainder;
651 u_int32_t blocksize = vn->sc_secsize;
659 resid = buf_resid(bp) / blocksize;
676 (off_t)this_offset * blocksize,
677 (user_ssize_t)this_resid * blocksize,
682 this_resid -= (temp_resid / blocksize);
689 start += this_resid * blocksize;
691 buf_setresid(bp, resid * blocksize);
699 u_int32_t blocksize = vn->sc_secsize;
707 resid = buf_resid(bp) / blocksize;
721 * blocksize;
727 (off_t)this_offset * blocksize,
728 (user_ssize_t)this_resid * blocksize,
733 this_resid -= (temp_resid / blocksize);
740 start += this_resid * blocksize;
742 buf_setresid(bp, resid * blocksize);
987 /* recompute the size in terms of the new blocksize */