Home | History | Annotate | Download | only in SdBlockIoPei

Lines Matching defs:Bit

47   // each bit in the bit array represents SD_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 (!SD_PEIM_MEM_BIT_IS_SET (Block->Bits[Byte], Bit)) {
140 SD_PEIM_NEXT_BIT (Byte, Bit);
143 SD_PEIM_NEXT_BIT (Byte, Bit);
147 StartBit = Bit;
159 Bit = StartBit;
162 ASSERT (!SD_PEIM_MEM_BIT_IS_SET (Block->Bits[Byte], Bit));
164 Block->Bits[Byte] = (UINT8) (Block->Bits[Byte] | (UINT8) SD_PEIM_MEM_BIT (Bit));
165 SD_PEIM_NEXT_BIT (Byte, Bit);
407 UINTN Bit;
421 // compute the start byte and bit in the bit array
424 Bit = ((ToFree - Block->Buf) / SD_PEIM_MEM_UNIT) % 8;
427 // reset associated bits in bit array
430 ASSERT (SD_PEIM_MEM_BIT_IS_SET (Block->Bits[Byte], Bit));
432 Block->Bits[Byte] = (UINT8) (Block->Bits[Byte] ^ SD_PEIM_MEM_BIT (Bit));
433 SD_PEIM_NEXT_BIT (Byte, Bit);