Home | History | Annotate | Download | only in UfsBlockIoPei

Lines Matching defs:Bit

47   // each bit in the bit array represents UFS_PEIM_MEM_UNIT

115 UINT8 Bit;
127 for (Byte = 0, Bit = 0; Byte < Block->BitsLen;) {
129 // If current bit is zero, the corresponding memory unit is
131 // Available counts the consective number of zero bit.
133 if (!UFS_PEIM_MEM_BIT_IS_SET (Block->Bits[Byte], Bit)) {
140 UFS_PEIM_NEXT_BIT (Byte, Bit);
143 UFS_PEIM_NEXT_BIT (Byte, Bit);
147 StartBit = Bit;
159 Bit = StartBit;
162 ASSERT (!UFS_PEIM_MEM_BIT_IS_SET (Block->Bits[Byte], Bit));
164 Block->Bits[Byte] = (UINT8) (Block->Bits[Byte] | (UINT8) UFS_PEIM_MEM_BIT (Bit));
165 UFS_PEIM_NEXT_BIT (Byte, Bit);
407 UINTN Bit;
421 // compute the start byte and bit in the bit array
424 Bit = ((ToFree - Block->Buf) / UFS_PEIM_MEM_UNIT) % 8;
427 // reset associated bits in bit array
430 ASSERT (UFS_PEIM_MEM_BIT_IS_SET (Block->Bits[Byte], Bit));
432 Block->Bits[Byte] = (UINT8) (Block->Bits[Byte] ^ UFS_PEIM_MEM_BIT (Bit));
433 UFS_PEIM_NEXT_BIT (Byte, Bit);