Lines Matching full:word
109 xfs_rtword_t *b; /* current word in buffer */ in xfs_rtfind_back()
110 int bit; /* bit number in the word */ in xfs_rtfind_back()
113 xfs_rtword_t *bufp; /* starting word in buffer */ in xfs_rtfind_back()
115 xfs_rtblock_t firstbit; /* first useful bit in the word */ in xfs_rtfind_back()
121 int word; /* word number in the buffer */ in xfs_rtfind_back() local
133 * Get the first word's index & point to it. in xfs_rtfind_back()
135 word = XFS_BITTOWORD(mp, start); in xfs_rtfind_back()
136 b = &bufp[word]; in xfs_rtfind_back()
145 * If the starting position is not word-aligned, deal with the in xfs_rtfind_back()
146 * partial word. in xfs_rtfind_back()
151 * and mask for all the relevant bits in this word. in xfs_rtfind_back()
171 * Go on to previous block if that's where the previous word is in xfs_rtfind_back()
172 * and we need the previous word. in xfs_rtfind_back()
174 if (--word == -1 && i < len) { in xfs_rtfind_back()
184 word = XFS_BLOCKWMASK(mp); in xfs_rtfind_back()
185 b = &bufp[word]; in xfs_rtfind_back()
188 * Go on to the previous word in the buffer. in xfs_rtfind_back()
194 * Starting on a word boundary, no partial word. in xfs_rtfind_back()
217 * Go on to previous block if that's where the previous word is in xfs_rtfind_back()
218 * and we need the previous word. in xfs_rtfind_back()
220 if (--word == -1 && i < len) { in xfs_rtfind_back()
230 word = XFS_BLOCKWMASK(mp); in xfs_rtfind_back()
231 b = &bufp[word]; in xfs_rtfind_back()
234 * Go on to the previous word in the buffer. in xfs_rtfind_back()
240 * If not ending on a word boundary, deal with the last in xfs_rtfind_back()
241 * (partial) word. in xfs_rtfind_back()
246 * and mask for all the relevant bits in this word. in xfs_rtfind_back()
284 xfs_rtword_t *b; /* current word in buffer */ in xfs_rtfind_forw()
285 int bit; /* bit number in the word */ in xfs_rtfind_forw()
288 xfs_rtword_t *bufp; /* starting word in buffer */ in xfs_rtfind_forw()
291 xfs_rtblock_t lastbit; /* last useful bit in the word */ in xfs_rtfind_forw()
296 int word; /* word number in the buffer */ in xfs_rtfind_forw() local
308 * Get the first word's index & point to it. in xfs_rtfind_forw()
310 word = XFS_BITTOWORD(mp, start); in xfs_rtfind_forw()
311 b = &bufp[word]; in xfs_rtfind_forw()
320 * If the starting position is not word-aligned, deal with the in xfs_rtfind_forw()
321 * partial word. in xfs_rtfind_forw()
326 * and mask for all the relevant bits in this word. in xfs_rtfind_forw()
345 * Go on to next block if that's where the next word is in xfs_rtfind_forw()
346 * and we need the next word. in xfs_rtfind_forw()
348 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtfind_forw()
358 word = 0; in xfs_rtfind_forw()
361 * Go on to the previous word in the buffer. in xfs_rtfind_forw()
367 * Starting on a word boundary, no partial word. in xfs_rtfind_forw()
390 * Go on to next block if that's where the next word is in xfs_rtfind_forw()
391 * and we need the next word. in xfs_rtfind_forw()
393 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtfind_forw()
403 word = 0; in xfs_rtfind_forw()
406 * Go on to the next word in the buffer. in xfs_rtfind_forw()
412 * If not ending on a word boundary, deal with the last in xfs_rtfind_forw()
413 * (partial) word. in xfs_rtfind_forw()
417 * Calculate mask for all the relevant bits in this word. in xfs_rtfind_forw()
541 xfs_rtword_t *b; /* current word in buffer */ in xfs_rtmodify_range()
542 int bit; /* bit number in the word */ in xfs_rtmodify_range()
545 xfs_rtword_t *bufp; /* starting word in buffer */ in xfs_rtmodify_range()
547 xfs_rtword_t *first; /* first used word in the buffer */ in xfs_rtmodify_range()
549 int lastbit; /* last useful bit in word */ in xfs_rtmodify_range()
551 int word; /* word number in the buffer */ in xfs_rtmodify_range() local
566 * Compute the starting word's address, and starting bit. in xfs_rtmodify_range()
568 word = XFS_BITTOWORD(mp, start); in xfs_rtmodify_range()
569 first = b = &bufp[word]; in xfs_rtmodify_range()
576 * If not starting on a word boundary, deal with the first in xfs_rtmodify_range()
577 * (partial) word. in xfs_rtmodify_range()
594 * Go on to the next block if that's where the next word is in xfs_rtmodify_range()
595 * and we need the next word. in xfs_rtmodify_range()
597 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtmodify_range()
610 word = 0; in xfs_rtmodify_range()
613 * Go on to the next word in the buffer in xfs_rtmodify_range()
619 * Starting on a word boundary, no partial word. in xfs_rtmodify_range()
629 * Set the word value correctly. in xfs_rtmodify_range()
634 * Go on to the next block if that's where the next word is in xfs_rtmodify_range()
635 * and we need the next word. in xfs_rtmodify_range()
637 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtmodify_range()
650 word = 0; in xfs_rtmodify_range()
653 * Go on to the next word in the buffer in xfs_rtmodify_range()
659 * If not ending on a word boundary, deal with the last in xfs_rtmodify_range()
660 * (partial) word. in xfs_rtmodify_range()
775 xfs_rtword_t *b; /* current word in buffer */ in xfs_rtcheck_range()
776 int bit; /* bit number in the word */ in xfs_rtcheck_range()
779 xfs_rtword_t *bufp; /* starting word in buffer */ in xfs_rtcheck_range()
782 xfs_rtblock_t lastbit; /* last useful bit in word */ in xfs_rtcheck_range()
785 int word; /* word number in the buffer */ in xfs_rtcheck_range() local
800 * Compute the starting word's address, and starting bit. in xfs_rtcheck_range()
802 word = XFS_BITTOWORD(mp, start); in xfs_rtcheck_range()
803 b = &bufp[word]; in xfs_rtcheck_range()
810 * If not starting on a word boundary, deal with the first in xfs_rtcheck_range()
811 * (partial) word. in xfs_rtcheck_range()
837 * Go on to next block if that's where the next word is in xfs_rtcheck_range()
838 * and we need the next word. in xfs_rtcheck_range()
840 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtcheck_range()
850 word = 0; in xfs_rtcheck_range()
853 * Go on to the next word in the buffer. in xfs_rtcheck_range()
859 * Starting on a word boundary, no partial word. in xfs_rtcheck_range()
883 * Go on to next block if that's where the next word is in xfs_rtcheck_range()
884 * and we need the next word. in xfs_rtcheck_range()
886 if (++word == XFS_BLOCKWSIZE(mp) && i < len) { in xfs_rtcheck_range()
896 word = 0; in xfs_rtcheck_range()
899 * Go on to the next word in the buffer. in xfs_rtcheck_range()
905 * If not ending on a word boundary, deal with the last in xfs_rtcheck_range()
906 * (partial) word. in xfs_rtcheck_range()