Lines Matching refs:nbits
64 int nbits) in xfs_buf_item_straddle() argument
70 offset + ((first_bit + nbits) << XFS_BLF_SHIFT)); in xfs_buf_item_straddle()
72 if (last - first != nbits * XFS_BLF_CHUNK) in xfs_buf_item_straddle()
95 int nbits; in xfs_buf_item_size_segment() local
107 nbits = xfs_contig_bits(blfp->blf_data_map, in xfs_buf_item_size_segment()
109 ASSERT(nbits > 0); in xfs_buf_item_size_segment()
115 if (nbits > 1 && in xfs_buf_item_size_segment()
116 xfs_buf_item_straddle(bp, offset, first_bit, nbits)) in xfs_buf_item_size_segment()
120 *nbytes += nbits * XFS_BLF_CHUNK; in xfs_buf_item_size_segment()
129 (uint)first_bit + nbits + 1); in xfs_buf_item_size_segment()
156 xfs_buf_item_straddle(bp, offset, first_bit, nbits)) { in xfs_buf_item_size_segment()
160 nbits = 1; in xfs_buf_item_size_segment()
163 nbits++; in xfs_buf_item_size_segment()
260 uint nbits) in xfs_buf_item_copy_iovec() argument
265 nbits * XFS_BLF_CHUNK); in xfs_buf_item_copy_iovec()
281 uint nbits; in xfs_buf_item_format_segment() local
322 nbits = xfs_contig_bits(blfp->blf_data_map, in xfs_buf_item_format_segment()
324 ASSERT(nbits > 0); in xfs_buf_item_format_segment()
330 if (nbits > 1 && in xfs_buf_item_format_segment()
331 xfs_buf_item_straddle(bp, offset, first_bit, nbits)) in xfs_buf_item_format_segment()
335 first_bit, nbits); in xfs_buf_item_format_segment()
345 (uint)first_bit + nbits + 1); in xfs_buf_item_format_segment()
353 nbits = 1; in xfs_buf_item_format_segment()
372 first_bit, nbits); in xfs_buf_item_format_segment()
376 xfs_buf_item_straddle(bp, offset, first_bit, nbits)) { in xfs_buf_item_format_segment()
378 first_bit, nbits); in xfs_buf_item_format_segment()
382 nbits = 1; in xfs_buf_item_format_segment()
385 nbits++; in xfs_buf_item_format_segment()