Home | History | Annotate | Download | only in XhciPei

Lines Matching defs:Bit

51   // each bit in the bit array represents USBHC_MEM_UNIT

127 UINT8 Bit;
139 for (Byte = 0, Bit = 0; Byte < Block->BitsLen;) {
141 // If current bit is zero, the corresponding memory unit is
143 // Available counts the consective number of zero bit.
145 if (!USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit)) {
152 NEXT_BIT (Byte, Bit);
154 NEXT_BIT (Byte, Bit);
158 StartBit = Bit;
170 Bit = StartBit;
173 ASSERT (!USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
175 Block->Bits[Byte] = (UINT8) (Block->Bits[Byte] | (UINT8) USB_HC_BIT (Bit));
176 NEXT_BIT (Byte, Bit);
511 UINTN Bit;
525 // compute the start byte and bit in the bit array
528 Bit = ((ToFree - Block->BufHost) / USBHC_MEM_UNIT) % 8;
531 // reset associated bits in bit array
534 ASSERT (USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
536 Block->Bits[Byte] = (UINT8) (Block->Bits[Byte] ^ USB_HC_BIT (Bit));
537 NEXT_BIT (Byte, Bit);