Home | History | Annotate | Download | only in UhciDxe

Lines Matching defs:Bit

50   // each bit in the bit array represents USBHC_MEM_UNIT

167 UINT8 Bit;
179 for (Byte = 0, Bit = 0; Byte < Block->BitsLen;) {
181 // If current bit is zero, the corresponding memory unit is
183 // Available counts the consective number of zero bit.
185 if (!USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit)) {
192 NEXT_BIT (Byte, Bit);
195 NEXT_BIT (Byte, Bit);
199 StartBit = Bit;
211 Bit = StartBit;
214 ASSERT (!USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
216 Block->Bits[Byte] = (UINT8) (Block->Bits[Byte] | (UINT8) USB_HC_BIT (Bit));
217 NEXT_BIT (Byte, Bit);
515 UINTN Bit;
529 // compute the start byte and bit in the bit array
532 Bit = ((ToFree - Block->Buf) / USBHC_MEM_UNIT) % 8;
535 // reset associated bits in bit array
538 ASSERT (USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
540 Block->Bits[Byte] = (UINT8) (Block->Bits[Byte] ^ USB_HC_BIT (Bit));
541 NEXT_BIT (Byte, Bit);