Lines Matching defs:bit
638 * The metadata file $Bitmap has one binary bit representing each cluster on
639 * disk. The bit will be set for each cluster that is in use. The function
640 * reads the relevant part of $Bitmap into a buffer and tests the bit.
644 * refreshed. @bmplcn stores offset to the first bit (in bits) stored in the
657 int byte, bit;
689 bit = 1 << (lcn & 7);
691 ntfs_log_debug("cluster = %lld, bmplcn = %lld, byte = %d, bit = %d, "
692 "in use %d\n", lcn, bmplcn, byte, bit, buffer[byte] &
693 bit);
695 return (buffer[byte] & bit);
703 * The metadata file $BITMAP has one binary bit representing each record in the
704 * MFT. The bit will be set for each record that is in use. The function
705 * reads the relevant part of $BITMAP into a buffer and tests the bit.
718 static s64 bmpmref = -sizeof(buffer) - 1; /* Which bit of $BITMAP is in the buffer */
719 int byte, bit;
745 bit = 1 << (mref & 7);
747 ntfs_log_debug("cluster = %lld, bmpmref = %lld, byte = %d, bit = %d, in use %d\n", mref, bmpmref, byte, bit, buffer[byte] & bit);
749 return (buffer[byte] & bit);