Home | History | Annotate | Download | only in Pei

Lines Matching defs:Bit

60   // each bit in the bit array represents USBHC_MEM_UNIT

144 UINT8 Bit;
156 for (Byte = 0, Bit = 0; Byte < Block->BitsLen;) {
158 // If current bit is zero, the corresponding memory unit is
160 // Available counts the consective number of zero bit.
162 if (!USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit)) {
169 NEXT_BIT (Byte, Bit);
172 NEXT_BIT (Byte, Bit);
176 StartBit = Bit;
188 Bit = StartBit;
191 ASSERT (!USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
193 Block->Bits[Byte] = (UINT8) (Block->Bits[Byte] | (UINT8) USB_HC_BIT (Bit));
194 NEXT_BIT (Byte, Bit);
449 UINTN Bit;
463 // compute the start byte and bit in the bit array
466 Bit = ((ToFree - Block->BufHost) / USBHC_MEM_UNIT) % 8;
469 // reset associated bits in bit arry
472 ASSERT (USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
474 Block->Bits[Byte] = (UINT8) (Block->Bits[Byte] ^ USB_HC_BIT (Bit));
475 NEXT_BIT (Byte, Bit);