Home | History | Annotate | Download | only in EhciDxe

Lines Matching defs:Bit

51   // each bit in the bit array represents USBHC_MEM_UNIT

168 UINT8 Bit;
180 for (Byte = 0, Bit = 0; Byte < Block->BitsLen;) {
182 // If current bit is zero, the corresponding memory unit is
184 // Available counts the consective number of zero bit.
186 if (!USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit)) {
193 NEXT_BIT (Byte, Bit);
196 NEXT_BIT (Byte, Bit);
200 StartBit = Bit;
212 Bit = StartBit;
215 ASSERT (!USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
217 Block->Bits[Byte] = (UINT8) (Block->Bits[Byte] | USB_HC_BIT (Bit));
218 NEXT_BIT (Byte, Bit);
517 UINTN Bit;
531 // compute the start byte and bit in the bit array
534 Bit = ((ToFree - Block->BufHost) / USBHC_MEM_UNIT) % 8;
537 // reset associated bits in bit array
540 ASSERT (USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
542 Block->Bits[Byte] = (UINT8) (Block->Bits[Byte] ^ USB_HC_BIT (Bit));
543 NEXT_BIT (Byte, Bit);