Lines Matching refs:start_bit
49 xfs_contig_bits(uint *map, uint size, uint start_bit) in xfs_contig_bits() argument
51 uint * p = ((unsigned int *) map) + (start_bit >> BIT_TO_WORD_SHIFT); in xfs_contig_bits()
57 ASSERT(start_bit < size); in xfs_contig_bits()
58 size -= start_bit & ~(NBWORD - 1); in xfs_contig_bits()
59 start_bit &= (NBWORD - 1); in xfs_contig_bits()
60 if (start_bit) { in xfs_contig_bits()
63 tmp |= (~0U >> (NBWORD-start_bit)); in xfs_contig_bits()
75 return result - start_bit; in xfs_contig_bits()
77 return result + ffz(tmp) - start_bit; in xfs_contig_bits()
88 int xfs_next_bit(uint *map, uint size, uint start_bit) in xfs_next_bit() argument
90 uint * p = ((unsigned int *) map) + (start_bit >> BIT_TO_WORD_SHIFT); in xfs_next_bit()
91 uint result = start_bit & ~(NBWORD - 1); in xfs_next_bit()
96 if (start_bit >= size) in xfs_next_bit()
99 start_bit &= (NBWORD - 1); in xfs_next_bit()
100 if (start_bit) { in xfs_next_bit()
103 tmp &= (~0U << start_bit); in xfs_next_bit()