Lines Matching refs:blocksize

273 block_round(off_t o, int blocksize)  in block_round()  argument
275 return (o + blocksize - 1) / blocksize; in block_round()
279 block_truncate(off_t o, int blocksize) in block_truncate() argument
281 return o / blocksize; in block_truncate()
285 block_remainder(off_t o, int blocksize) in block_remainder() argument
287 return o % blocksize; in block_remainder()
294 u_int32_t blocksize = vn->sc_secsize; in vnread_shadow() local
313 remainder = block_remainder(offset, blocksize); in vnread_shadow()
315 block_truncate(offset, blocksize), in vnread_shadow()
316 block_round(resid + remainder, blocksize), in vnread_shadow()
324 this_offset = this_block_number * blocksize + remainder; in vnread_shadow()
326 this_resid = this_block_count * blocksize - remainder; in vnread_shadow()
386 u_int32_t blocksize = vn->sc_secsize; in vnwrite_shadow() local
404 offset_block_number = block_truncate(offset, blocksize); in vnwrite_shadow()
405 remainder = block_remainder(offset, blocksize); in vnwrite_shadow()
406 resid_block_count = block_round(resid + remainder, blocksize); in vnwrite_shadow()
418 && block_remainder(offset + resid, blocksize) > 0) { in vnwrite_shadow()
436 uio_setoffset(uio, shadow_block_number * blocksize + remainder); in vnwrite_shadow()
437 this_resid = shadow_block_count * blocksize - remainder; in vnwrite_shadow()
645 u_int32_t blocksize = vn->sc_secsize; in shadow_read() local
653 resid = buf_resid(bp) / blocksize; in shadow_read()
669 this_offset * blocksize, in shadow_read()
670 (user_ssize_t)this_resid * blocksize, in shadow_read()
675 this_resid -= (temp_resid / blocksize); in shadow_read()
682 start += this_resid * blocksize; in shadow_read()
684 buf_setresid(bp, (uint32_t)(resid * blocksize)); in shadow_read()
692 u_int32_t blocksize = vn->sc_secsize; in shadow_write() local
700 resid = buf_resid(bp) / blocksize; in shadow_write()
714 * blocksize; in shadow_write()
720 this_offset * blocksize, in shadow_write()
721 (user_ssize_t)this_resid * blocksize, in shadow_write()
726 this_resid -= (temp_resid / blocksize); in shadow_write()
733 start += this_resid * blocksize; in shadow_write()
735 buf_setresid(bp, (uint32_t)(resid * blocksize)); in shadow_write()