Lines Matching full:word

146 	int			bit;	/* bit number in the word */  in xfs_rtfind_back()
149 xfs_rtxnum_t firstbit; /* first useful bit in the word */ in xfs_rtfind_back()
156 unsigned int word; /* word number in the buffer */ in xfs_rtfind_back() local
167 * Get the first word's index & point to it. in xfs_rtfind_back()
169 word = xfs_rtx_to_rbmword(mp, start); in xfs_rtfind_back()
176 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_back()
179 * If the starting position is not word-aligned, deal with the in xfs_rtfind_back()
180 * partial word. in xfs_rtfind_back()
185 * and mask for all the relevant bits in this word. in xfs_rtfind_back()
204 * Go on to previous block if that's where the previous word is in xfs_rtfind_back()
205 * and we need the previous word. in xfs_rtfind_back()
207 if (--word == -1 && i < len) { in xfs_rtfind_back()
215 word = mp->m_blockwsize - 1; in xfs_rtfind_back()
219 * Starting on a word boundary, no partial word. in xfs_rtfind_back()
231 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_back()
242 * Go on to previous block if that's where the previous word is in xfs_rtfind_back()
243 * and we need the previous word. in xfs_rtfind_back()
245 if (--word == -1 && i < len) { in xfs_rtfind_back()
253 word = mp->m_blockwsize - 1; in xfs_rtfind_back()
257 * If not ending on a word boundary, deal with the last in xfs_rtfind_back()
258 * (partial) word. in xfs_rtfind_back()
263 * and mask for all the relevant bits in this word. in xfs_rtfind_back()
270 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_back()
300 int bit; /* bit number in the word */ in xfs_rtfind_forw()
304 xfs_rtxnum_t lastbit;/* last useful bit in the word */ in xfs_rtfind_forw()
310 unsigned int word; /* word number in the buffer */ in xfs_rtfind_forw() local
321 * Get the first word's index & point to it. in xfs_rtfind_forw()
323 word = xfs_rtx_to_rbmword(mp, start); in xfs_rtfind_forw()
330 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_forw()
333 * If the starting position is not word-aligned, deal with the in xfs_rtfind_forw()
334 * partial word. in xfs_rtfind_forw()
339 * and mask for all the relevant bits in this word. in xfs_rtfind_forw()
357 * Go on to next block if that's where the next word is in xfs_rtfind_forw()
358 * and we need the next word. in xfs_rtfind_forw()
360 if (++word == mp->m_blockwsize && i < len) { in xfs_rtfind_forw()
368 word = 0; in xfs_rtfind_forw()
372 * Starting on a word boundary, no partial word. in xfs_rtfind_forw()
384 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_forw()
395 * Go on to next block if that's where the next word is in xfs_rtfind_forw()
396 * and we need the next word. in xfs_rtfind_forw()
398 if (++word == mp->m_blockwsize && i < len) { in xfs_rtfind_forw()
406 word = 0; in xfs_rtfind_forw()
410 * If not ending on a word boundary, deal with the last in xfs_rtfind_forw()
411 * (partial) word. in xfs_rtfind_forw()
415 * Calculate mask for all the relevant bits in this word. in xfs_rtfind_forw()
421 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_forw()
510 /* Log rtbitmap block from the word @from to the byte before @next. */
538 int bit; /* bit number in the word */ in xfs_rtmodify_range()
542 int lastbit; /* last useful bit in word */ in xfs_rtmodify_range()
545 unsigned int firstword; /* first word used in the buffer */ in xfs_rtmodify_range()
546 unsigned int word; /* word number in the buffer */ in xfs_rtmodify_range() local
560 * Compute the starting word's address, and starting bit. in xfs_rtmodify_range()
562 firstword = word = xfs_rtx_to_rbmword(mp, start); in xfs_rtmodify_range()
569 * If not starting on a word boundary, deal with the first in xfs_rtmodify_range()
570 * (partial) word. in xfs_rtmodify_range()
581 incore = xfs_rtbitmap_getword(args, word); in xfs_rtmodify_range()
586 xfs_rtbitmap_setword(args, word, incore); in xfs_rtmodify_range()
589 * Go on to the next block if that's where the next word is in xfs_rtmodify_range()
590 * and we need the next word. in xfs_rtmodify_range()
592 if (++word == mp->m_blockwsize && i < len) { in xfs_rtmodify_range()
597 xfs_trans_log_rtbitmap(args, firstword, word); in xfs_rtmodify_range()
602 firstword = word = 0; in xfs_rtmodify_range()
606 * Starting on a word boundary, no partial word. in xfs_rtmodify_range()
616 * Set the word value correctly. in xfs_rtmodify_range()
618 xfs_rtbitmap_setword(args, word, val); in xfs_rtmodify_range()
621 * Go on to the next block if that's where the next word is in xfs_rtmodify_range()
622 * and we need the next word. in xfs_rtmodify_range()
624 if (++word == mp->m_blockwsize && i < len) { in xfs_rtmodify_range()
629 xfs_trans_log_rtbitmap(args, firstword, word); in xfs_rtmodify_range()
634 firstword = word = 0; in xfs_rtmodify_range()
638 * If not ending on a word boundary, deal with the last in xfs_rtmodify_range()
639 * (partial) word. in xfs_rtmodify_range()
649 incore = xfs_rtbitmap_getword(args, word); in xfs_rtmodify_range()
654 xfs_rtbitmap_setword(args, word, incore); in xfs_rtmodify_range()
655 word++; in xfs_rtmodify_range()
660 if (word > firstword) in xfs_rtmodify_range()
661 xfs_trans_log_rtbitmap(args, firstword, word); in xfs_rtmodify_range()
752 int bit; /* bit number in the word */ in xfs_rtcheck_range()
756 xfs_rtxnum_t lastbit; /* last useful bit in word */ in xfs_rtcheck_range()
760 unsigned int word; /* word number in the buffer */ in xfs_rtcheck_range() local
774 * Compute the starting word's address, and starting bit. in xfs_rtcheck_range()
776 word = xfs_rtx_to_rbmword(mp, start); in xfs_rtcheck_range()
783 * If not starting on a word boundary, deal with the first in xfs_rtcheck_range()
784 * (partial) word. in xfs_rtcheck_range()
798 incore = xfs_rtbitmap_getword(args, word); in xfs_rtcheck_range()
810 * Go on to next block if that's where the next word is in xfs_rtcheck_range()
811 * and we need the next word. in xfs_rtcheck_range()
813 if (++word == mp->m_blockwsize && i < len) { in xfs_rtcheck_range()
821 word = 0; in xfs_rtcheck_range()
825 * Starting on a word boundary, no partial word. in xfs_rtcheck_range()
837 incore = xfs_rtbitmap_getword(args, word); in xfs_rtcheck_range()
849 * Go on to next block if that's where the next word is in xfs_rtcheck_range()
850 * and we need the next word. in xfs_rtcheck_range()
852 if (++word == mp->m_blockwsize && i < len) { in xfs_rtcheck_range()
860 word = 0; in xfs_rtcheck_range()
864 * If not ending on a word boundary, deal with the last in xfs_rtcheck_range()
865 * (partial) word. in xfs_rtcheck_range()
875 incore = xfs_rtbitmap_getword(args, word); in xfs_rtcheck_range()