Home | History | Annotate | Download | only in EhciPei

Lines Matching defs:Bit

59   // each bit in the bit array represents USBHC_MEM_UNIT

142 UINT8 Bit;
154 for (Byte = 0, Bit = 0; Byte < Block->BitsLen;) {
156 // If current bit is zero, the corresponding memory unit is
158 // Available counts the consective number of zero bit.
160 if (!USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit)) {
167 NEXT_BIT (Byte, Bit);
170 NEXT_BIT (Byte, Bit);
174 StartBit = Bit;
186 Bit = StartBit;
189 ASSERT (!USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
191 Block->Bits[Byte] = (UINT8) (Block->Bits[Byte] | (UINT8) USB_HC_BIT (Bit));
192 NEXT_BIT (Byte, Bit);
445 UINTN Bit;
459 // compute the start byte and bit in the bit array
462 Bit = ((ToFree - Block->Buf) / USBHC_MEM_UNIT) % 8;
465 // reset associated bits in bit array
468 ASSERT (USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
470 Block->Bits[Byte] = (UINT8) (Block->Bits[Byte] ^ USB_HC_BIT (Bit));
471 NEXT_BIT (Byte, Bit);