Lines Matching defs: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;
645 u_int32_t blocksize = vn->sc_secsize;
653 resid = buf_resid(bp) / blocksize;
670 (off_t)this_offset * blocksize,
671 (user_ssize_t)this_resid * blocksize,
676 this_resid -= (temp_resid / blocksize);
683 start += this_resid * blocksize;
685 buf_setresid(bp, resid * blocksize);
693 u_int32_t blocksize = vn->sc_secsize;
701 resid = buf_resid(bp) / blocksize;
715 * blocksize;
721 (off_t)this_offset * blocksize,
722 (user_ssize_t)this_resid * blocksize,
727 this_resid -= (temp_resid / blocksize);
734 start += this_resid * blocksize;
736 buf_setresid(bp, resid * blocksize);
976 /* recompute the size in terms of the new blocksize */