Lines Matching full:word
101 xfs_rtword_t *b; /* current word in buffer */ in xfs_rtfind_back()
102 int bit; /* bit number in the word */ in xfs_rtfind_back()
105 xfs_rtword_t *bufp; /* starting word in buffer */ in xfs_rtfind_back()
107 xfs_rtblock_t firstbit; /* first useful bit in the word */ in xfs_rtfind_back()
113 int word; /* word number in the buffer */ in xfs_rtfind_back() local
125 * Get the first word's index & point to it. in xfs_rtfind_back()
127 word = XFS_BITTOWORD(mp, start); in xfs_rtfind_back()
128 b = &bufp[word]; in xfs_rtfind_back()
137 * If the starting position is not word-aligned, deal with the in xfs_rtfind_back()
138 * partial word. in xfs_rtfind_back()
143 * and mask for all the relevant bits in this word. in xfs_rtfind_back()
163 * Go on to previous block if that's where the previous word is in xfs_rtfind_back()
164 * and we need the previous word. in xfs_rtfind_back()
166 if (--word == -1 && i < len) { in xfs_rtfind_back()
176 word = XFS_BLOCKWMASK(mp); in xfs_rtfind_back()
177 b = &bufp[word]; in xfs_rtfind_back()
180 * Go on to the previous word in the buffer. in xfs_rtfind_back()
186 * Starting on a word boundary, no partial word. in xfs_rtfind_back()
209 * Go on to previous block if that's where the previous word is in xfs_rtfind_back()
210 * and we need the previous word. in xfs_rtfind_back()
212 if (--word == -1 && i < len) { in xfs_rtfind_back()
222 word = XFS_BLOCKWMASK(mp); in xfs_rtfind_back()
223 b = &bufp[word]; in xfs_rtfind_back()
226 * Go on to the previous word in the buffer. in xfs_rtfind_back()
232 * If not ending on a word boundary, deal with the last in xfs_rtfind_back()
233 * (partial) word. in xfs_rtfind_back()
238 * and mask for all the relevant bits in this word. in xfs_rtfind_back()
276 xfs_rtword_t *b; /* current word in buffer */ in xfs_rtfind_forw()
277 int bit; /* bit number in the word */ in xfs_rtfind_forw()
280 xfs_rtword_t *bufp; /* starting word in buffer */ in xfs_rtfind_forw()
283 xfs_rtblock_t lastbit; /* last useful bit in the word */ in xfs_rtfind_forw()
288 int word; /* word number in the buffer */ in xfs_rtfind_forw() local
300 * Get the first word's index & point to it. in xfs_rtfind_forw()
302 word = XFS_BITTOWORD(mp, start); in xfs_rtfind_forw()
303 b = &bufp[word]; in xfs_rtfind_forw()
312 * If the starting position is not word-aligned, deal with the in xfs_rtfind_forw()
313 * partial word. in xfs_rtfind_forw()
318 * and mask for all the relevant bits in this word. in xfs_rtfind_forw()
337 * Go on to next block if that's where the next word is in xfs_rtfind_forw()
338 * and we need the next word. in xfs_rtfind_forw()
340 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtfind_forw()
350 word = 0; in xfs_rtfind_forw()
353 * Go on to the previous word in the buffer. in xfs_rtfind_forw()
359 * Starting on a word boundary, no partial word. in xfs_rtfind_forw()
382 * Go on to next block if that's where the next word is in xfs_rtfind_forw()
383 * and we need the next word. in xfs_rtfind_forw()
385 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtfind_forw()
395 word = 0; in xfs_rtfind_forw()
398 * Go on to the next word in the buffer. in xfs_rtfind_forw()
404 * If not ending on a word boundary, deal with the last in xfs_rtfind_forw()
405 * (partial) word. in xfs_rtfind_forw()
409 * Calculate mask for all the relevant bits in this word. in xfs_rtfind_forw()
539 xfs_rtword_t *b; /* current word in buffer */ in xfs_rtmodify_range()
540 int bit; /* bit number in the word */ in xfs_rtmodify_range()
543 xfs_rtword_t *bufp; /* starting word in buffer */ in xfs_rtmodify_range()
545 xfs_rtword_t *first; /* first used word in the buffer */ in xfs_rtmodify_range()
547 int lastbit; /* last useful bit in word */ in xfs_rtmodify_range()
549 int word; /* word number in the buffer */ in xfs_rtmodify_range() local
564 * Compute the starting word's address, and starting bit. in xfs_rtmodify_range()
566 word = XFS_BITTOWORD(mp, start); in xfs_rtmodify_range()
567 first = b = &bufp[word]; in xfs_rtmodify_range()
574 * If not starting on a word boundary, deal with the first in xfs_rtmodify_range()
575 * (partial) word. in xfs_rtmodify_range()
592 * Go on to the next block if that's where the next word is in xfs_rtmodify_range()
593 * and we need the next word. in xfs_rtmodify_range()
595 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtmodify_range()
608 word = 0; in xfs_rtmodify_range()
611 * Go on to the next word in the buffer in xfs_rtmodify_range()
617 * Starting on a word boundary, no partial word. in xfs_rtmodify_range()
627 * Set the word value correctly. in xfs_rtmodify_range()
632 * Go on to the next block if that's where the next word is in xfs_rtmodify_range()
633 * and we need the next word. in xfs_rtmodify_range()
635 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtmodify_range()
648 word = 0; in xfs_rtmodify_range()
651 * Go on to the next word in the buffer in xfs_rtmodify_range()
657 * If not ending on a word boundary, deal with the last in xfs_rtmodify_range()
658 * (partial) word. in xfs_rtmodify_range()
773 xfs_rtword_t *b; /* current word in buffer */ in xfs_rtcheck_range()
774 int bit; /* bit number in the word */ in xfs_rtcheck_range()
777 xfs_rtword_t *bufp; /* starting word in buffer */ in xfs_rtcheck_range()
780 xfs_rtblock_t lastbit; /* last useful bit in word */ in xfs_rtcheck_range()
783 int word; /* word number in the buffer */ in xfs_rtcheck_range() local
798 * Compute the starting word's address, and starting bit. in xfs_rtcheck_range()
800 word = XFS_BITTOWORD(mp, start); in xfs_rtcheck_range()
801 b = &bufp[word]; in xfs_rtcheck_range()
808 * If not starting on a word boundary, deal with the first in xfs_rtcheck_range()
809 * (partial) word. in xfs_rtcheck_range()
835 * Go on to next block if that's where the next word is in xfs_rtcheck_range()
836 * and we need the next word. in xfs_rtcheck_range()
838 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtcheck_range()
848 word = 0; in xfs_rtcheck_range()
851 * Go on to the next word in the buffer. in xfs_rtcheck_range()
857 * Starting on a word boundary, no partial word. in xfs_rtcheck_range()
881 * Go on to next block if that's where the next word is in xfs_rtcheck_range()
882 * and we need the next word. in xfs_rtcheck_range()
884 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtcheck_range()
894 word = 0; in xfs_rtcheck_range()
897 * Go on to the next word in the buffer. in xfs_rtcheck_range()
903 * If not ending on a word boundary, deal with the last in xfs_rtcheck_range()
904 * (partial) word. in xfs_rtcheck_range()