Lines Matching full:word
271 int bit; /* bit number in the word */ in xfs_rtfind_back()
274 xfs_rtxnum_t firstbit; /* first useful bit in the word */ in xfs_rtfind_back()
281 unsigned int word; /* word number in the buffer */ in xfs_rtfind_back() local
292 * Get the first word's index & point to it. in xfs_rtfind_back()
294 word = xfs_rtx_to_rbmword(mp, start); in xfs_rtfind_back()
301 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_back()
304 * If the starting position is not word-aligned, deal with the in xfs_rtfind_back()
305 * partial word. in xfs_rtfind_back()
310 * and mask for all the relevant bits in this word. in xfs_rtfind_back()
329 * Go on to previous block if that's where the previous word is in xfs_rtfind_back()
330 * and we need the previous word. in xfs_rtfind_back()
332 if (--word == -1 && i < len) { in xfs_rtfind_back()
340 word = mp->m_blockwsize - 1; in xfs_rtfind_back()
344 * Starting on a word boundary, no partial word. in xfs_rtfind_back()
356 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_back()
367 * Go on to previous block if that's where the previous word is in xfs_rtfind_back()
368 * and we need the previous word. in xfs_rtfind_back()
370 if (--word == -1 && i < len) { in xfs_rtfind_back()
378 word = mp->m_blockwsize - 1; in xfs_rtfind_back()
382 * If not ending on a word boundary, deal with the last in xfs_rtfind_back()
383 * (partial) word. in xfs_rtfind_back()
388 * and mask for all the relevant bits in this word. in xfs_rtfind_back()
395 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_back()
425 int bit; /* bit number in the word */ in xfs_rtfind_forw()
429 xfs_rtxnum_t lastbit;/* last useful bit in the word */ in xfs_rtfind_forw()
435 unsigned int word; /* word number in the buffer */ in xfs_rtfind_forw() local
448 * Get the first word's index & point to it. in xfs_rtfind_forw()
450 word = xfs_rtx_to_rbmword(mp, start); in xfs_rtfind_forw()
457 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_forw()
460 * If the starting position is not word-aligned, deal with the in xfs_rtfind_forw()
461 * partial word. in xfs_rtfind_forw()
466 * and mask for all the relevant bits in this word. in xfs_rtfind_forw()
484 * Go on to next block if that's where the next word is in xfs_rtfind_forw()
485 * and we need the next word. in xfs_rtfind_forw()
487 if (++word == mp->m_blockwsize && i < len) { in xfs_rtfind_forw()
495 word = 0; in xfs_rtfind_forw()
499 * Starting on a word boundary, no partial word. in xfs_rtfind_forw()
511 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_forw()
522 * Go on to next block if that's where the next word is in xfs_rtfind_forw()
523 * and we need the next word. in xfs_rtfind_forw()
525 if (++word == mp->m_blockwsize && i < len) { in xfs_rtfind_forw()
533 word = 0; in xfs_rtfind_forw()
537 * If not ending on a word boundary, deal with the last in xfs_rtfind_forw()
538 * (partial) word. in xfs_rtfind_forw()
542 * Calculate mask for all the relevant bits in this word. in xfs_rtfind_forw()
548 incore = xfs_rtbitmap_getword(args, word); in xfs_rtfind_forw()
638 /* Log rtbitmap block from the word @from to the byte before @next. */
666 int bit; /* bit number in the word */ in xfs_rtmodify_range()
670 int lastbit; /* last useful bit in word */ in xfs_rtmodify_range()
673 unsigned int firstword; /* first word used in the buffer */ in xfs_rtmodify_range()
674 unsigned int word; /* word number in the buffer */ in xfs_rtmodify_range() local
688 * Compute the starting word's address, and starting bit. in xfs_rtmodify_range()
690 firstword = word = xfs_rtx_to_rbmword(mp, start); in xfs_rtmodify_range()
697 * If not starting on a word boundary, deal with the first in xfs_rtmodify_range()
698 * (partial) word. in xfs_rtmodify_range()
709 incore = xfs_rtbitmap_getword(args, word); in xfs_rtmodify_range()
714 xfs_rtbitmap_setword(args, word, incore); in xfs_rtmodify_range()
717 * Go on to the next block if that's where the next word is in xfs_rtmodify_range()
718 * and we need the next word. in xfs_rtmodify_range()
720 if (++word == mp->m_blockwsize && i < len) { in xfs_rtmodify_range()
725 xfs_trans_log_rtbitmap(args, firstword, word); in xfs_rtmodify_range()
730 firstword = word = 0; in xfs_rtmodify_range()
734 * Starting on a word boundary, no partial word. in xfs_rtmodify_range()
744 * Set the word value correctly. in xfs_rtmodify_range()
746 xfs_rtbitmap_setword(args, word, val); in xfs_rtmodify_range()
749 * Go on to the next block if that's where the next word is in xfs_rtmodify_range()
750 * and we need the next word. in xfs_rtmodify_range()
752 if (++word == mp->m_blockwsize && i < len) { in xfs_rtmodify_range()
757 xfs_trans_log_rtbitmap(args, firstword, word); in xfs_rtmodify_range()
762 firstword = word = 0; in xfs_rtmodify_range()
766 * If not ending on a word boundary, deal with the last in xfs_rtmodify_range()
767 * (partial) word. in xfs_rtmodify_range()
777 incore = xfs_rtbitmap_getword(args, word); in xfs_rtmodify_range()
782 xfs_rtbitmap_setword(args, word, incore); in xfs_rtmodify_range()
783 word++; in xfs_rtmodify_range()
788 if (word > firstword) in xfs_rtmodify_range()
789 xfs_trans_log_rtbitmap(args, firstword, word); in xfs_rtmodify_range()
880 int bit; /* bit number in the word */ in xfs_rtcheck_range()
884 xfs_rtxnum_t lastbit; /* last useful bit in word */ in xfs_rtcheck_range()
888 unsigned int word; /* word number in the buffer */ in xfs_rtcheck_range() local
902 * Compute the starting word's address, and starting bit. in xfs_rtcheck_range()
904 word = xfs_rtx_to_rbmword(mp, start); in xfs_rtcheck_range()
911 * If not starting on a word boundary, deal with the first in xfs_rtcheck_range()
912 * (partial) word. in xfs_rtcheck_range()
926 incore = xfs_rtbitmap_getword(args, word); in xfs_rtcheck_range()
938 * Go on to next block if that's where the next word is in xfs_rtcheck_range()
939 * and we need the next word. in xfs_rtcheck_range()
941 if (++word == mp->m_blockwsize && i < len) { in xfs_rtcheck_range()
949 word = 0; in xfs_rtcheck_range()
953 * Starting on a word boundary, no partial word. in xfs_rtcheck_range()
965 incore = xfs_rtbitmap_getword(args, word); in xfs_rtcheck_range()
977 * Go on to next block if that's where the next word is in xfs_rtcheck_range()
978 * and we need the next word. in xfs_rtcheck_range()
980 if (++word == mp->m_blockwsize && i < len) { in xfs_rtcheck_range()
988 word = 0; in xfs_rtcheck_range()
992 * If not ending on a word boundary, deal with the last in xfs_rtcheck_range()
993 * (partial) word. in xfs_rtcheck_range()
1003 incore = xfs_rtbitmap_getword(args, word); in xfs_rtcheck_range()