Lines Matching full:word

183 	int			bit;	/* bit number in the word */  in xfs_rtfind_back()
186 xfs_rtxnum_t firstbit; /* first useful bit in the word */ in xfs_rtfind_back()
193 unsigned int word; /* word number in the buffer */ in xfs_rtfind_back() local
204 * Get the first word's index & point to it. in xfs_rtfind_back()
206 word = xfs_rtx_to_rbmword(mp, start); in xfs_rtfind_back()
213 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_back()
216 * If the starting position is not word-aligned, deal with the in xfs_rtfind_back()
217 * partial word. in xfs_rtfind_back()
222 * and mask for all the relevant bits in this word. in xfs_rtfind_back()
241 * Go on to previous block if that's where the previous word is in xfs_rtfind_back()
242 * and we need the previous word. in xfs_rtfind_back()
244 if (--word == -1 && i < len) { in xfs_rtfind_back()
252 word = mp->m_blockwsize - 1; in xfs_rtfind_back()
256 * Starting on a word boundary, no partial word. in xfs_rtfind_back()
268 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_back()
279 * Go on to previous block if that's where the previous word is in xfs_rtfind_back()
280 * and we need the previous word. in xfs_rtfind_back()
282 if (--word == -1 && i < len) { in xfs_rtfind_back()
290 word = mp->m_blockwsize - 1; in xfs_rtfind_back()
294 * If not ending on a word boundary, deal with the last in xfs_rtfind_back()
295 * (partial) word. in xfs_rtfind_back()
300 * and mask for all the relevant bits in this word. in xfs_rtfind_back()
307 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_back()
337 int bit; /* bit number in the word */ in xfs_rtfind_forw()
341 xfs_rtxnum_t lastbit;/* last useful bit in the word */ in xfs_rtfind_forw()
347 unsigned int word; /* word number in the buffer */ in xfs_rtfind_forw() local
360 * Get the first word's index & point to it. in xfs_rtfind_forw()
362 word = xfs_rtx_to_rbmword(mp, start); in xfs_rtfind_forw()
369 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_forw()
372 * If the starting position is not word-aligned, deal with the in xfs_rtfind_forw()
373 * partial word. in xfs_rtfind_forw()
378 * and mask for all the relevant bits in this word. in xfs_rtfind_forw()
396 * Go on to next block if that's where the next word is in xfs_rtfind_forw()
397 * and we need the next word. in xfs_rtfind_forw()
399 if (++word == mp->m_blockwsize && i < len) { in xfs_rtfind_forw()
407 word = 0; in xfs_rtfind_forw()
411 * Starting on a word boundary, no partial word. in xfs_rtfind_forw()
423 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_forw()
434 * Go on to next block if that's where the next word is in xfs_rtfind_forw()
435 * and we need the next word. in xfs_rtfind_forw()
437 if (++word == mp->m_blockwsize && i < len) { in xfs_rtfind_forw()
445 word = 0; in xfs_rtfind_forw()
449 * If not ending on a word boundary, deal with the last in xfs_rtfind_forw()
450 * (partial) word. in xfs_rtfind_forw()
454 * Calculate mask for all the relevant bits in this word. in xfs_rtfind_forw()
460 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_forw()
549 /* Log rtbitmap block from the word @from to the byte before @next. */
577 int bit; /* bit number in the word */ in xfs_rtmodify_range()
581 int lastbit; /* last useful bit in word */ in xfs_rtmodify_range()
584 unsigned int firstword; /* first word used in the buffer */ in xfs_rtmodify_range()
585 unsigned int word; /* word number in the buffer */ in xfs_rtmodify_range() local
599 * Compute the starting word's address, and starting bit. in xfs_rtmodify_range()
601 firstword = word = xfs_rtx_to_rbmword(mp, start); in xfs_rtmodify_range()
608 * If not starting on a word boundary, deal with the first in xfs_rtmodify_range()
609 * (partial) word. in xfs_rtmodify_range()
620 incore = xfs_rtbitmap_getword(args, word); in xfs_rtmodify_range()
625 xfs_rtbitmap_setword(args, word, incore); in xfs_rtmodify_range()
628 * Go on to the next block if that's where the next word is in xfs_rtmodify_range()
629 * and we need the next word. in xfs_rtmodify_range()
631 if (++word == mp->m_blockwsize && i < len) { in xfs_rtmodify_range()
636 xfs_trans_log_rtbitmap(args, firstword, word); in xfs_rtmodify_range()
641 firstword = word = 0; in xfs_rtmodify_range()
645 * Starting on a word boundary, no partial word. in xfs_rtmodify_range()
655 * Set the word value correctly. in xfs_rtmodify_range()
657 xfs_rtbitmap_setword(args, word, val); in xfs_rtmodify_range()
660 * Go on to the next block if that's where the next word is in xfs_rtmodify_range()
661 * and we need the next word. in xfs_rtmodify_range()
663 if (++word == mp->m_blockwsize && i < len) { in xfs_rtmodify_range()
668 xfs_trans_log_rtbitmap(args, firstword, word); in xfs_rtmodify_range()
673 firstword = word = 0; in xfs_rtmodify_range()
677 * If not ending on a word boundary, deal with the last in xfs_rtmodify_range()
678 * (partial) word. in xfs_rtmodify_range()
688 incore = xfs_rtbitmap_getword(args, word); in xfs_rtmodify_range()
693 xfs_rtbitmap_setword(args, word, incore); in xfs_rtmodify_range()
694 word++; in xfs_rtmodify_range()
699 if (word > firstword) in xfs_rtmodify_range()
700 xfs_trans_log_rtbitmap(args, firstword, word); in xfs_rtmodify_range()
791 int bit; /* bit number in the word */ in xfs_rtcheck_range()
795 xfs_rtxnum_t lastbit; /* last useful bit in word */ in xfs_rtcheck_range()
799 unsigned int word; /* word number in the buffer */ in xfs_rtcheck_range() local
813 * Compute the starting word's address, and starting bit. in xfs_rtcheck_range()
815 word = xfs_rtx_to_rbmword(mp, start); in xfs_rtcheck_range()
822 * If not starting on a word boundary, deal with the first in xfs_rtcheck_range()
823 * (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 * Starting on a word boundary, no partial word. in xfs_rtcheck_range()
876 incore = xfs_rtbitmap_getword(args, word); in xfs_rtcheck_range()
888 * Go on to next block if that's where the next word is in xfs_rtcheck_range()
889 * and we need the next word. in xfs_rtcheck_range()
891 if (++word == mp->m_blockwsize && i < len) { in xfs_rtcheck_range()
899 word = 0; 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()
914 incore = xfs_rtbitmap_getword(args, word); in xfs_rtcheck_range()