Home
last modified time | relevance | path

Searched refs:bitPosition (Results 1 – 5 of 5) sorted by relevance

/freebsd-12.1/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_rfgain.c97 uint32_t bitPosition, bitsShifted; in ar5212GetRfField() local
105 bitPosition = (firstBit - 1) % 8; in ar5212GetRfField()
109 lastBit = (bitPosition + bitsLeft > 8) ? in ar5212GetRfField()
110 (8) : (bitPosition + bitsLeft); in ar5212GetRfField()
111 mask = (((1 << lastBit) - 1) ^ ((1 << bitPosition) - 1)) << in ar5212GetRfField()
114 bitPosition) << bitsShifted; in ar5212GetRfField()
115 bitsShifted += lastBit - bitPosition; in ar5212GetRfField()
116 bitsLeft -= (8 - bitPosition); in ar5212GetRfField()
117 bitPosition = 0; in ar5212GetRfField()
H A Dar5212_reset.c2681 int32_t bitPosition, bitsLeft; in ar5212ModifyRfBuffer() local
2689 bitPosition = (firstBit - 1) % 8; in ar5212ModifyRfBuffer()
2692 lastBit = (bitPosition + bitsLeft > 8) ? in ar5212ModifyRfBuffer()
2693 8 : bitPosition + bitsLeft; in ar5212ModifyRfBuffer()
2694 mask = (((1 << lastBit) - 1) ^ ((1 << bitPosition) - 1)) << in ar5212ModifyRfBuffer()
2697 rfBuf[arrayEntry] |= ((tmp32 << bitPosition) << in ar5212ModifyRfBuffer()
2699 bitsLeft -= 8 - bitPosition; in ar5212ModifyRfBuffer()
2700 tmp32 = tmp32 >> (8 - bitPosition); in ar5212ModifyRfBuffer()
2701 bitPosition = 0; in ar5212ModifyRfBuffer()
/freebsd-12.1/contrib/llvm/include/llvm/ADT/
H A DAPInt.h120 static unsigned whichWord(unsigned bitPosition) { in whichWord() argument
121 return bitPosition / APINT_BITS_PER_WORD; in whichWord()
128 static unsigned whichBit(unsigned bitPosition) { in whichBit() argument
129 return bitPosition % APINT_BITS_PER_WORD; in whichBit()
138 static uint64_t maskBit(unsigned bitPosition) { in maskBit() argument
139 return 1ULL << whichBit(bitPosition); in maskBit()
163 uint64_t getWord(unsigned bitPosition) const { in getWord() argument
1117 bool operator[](unsigned bitPosition) const {
1119 return (maskBit(bitPosition) & getWord(bitPosition)) != 0;
1490 void flipBit(unsigned bitPosition);
[all …]
/freebsd-12.1/contrib/llvm/lib/Support/
H A DAPInt.cpp340 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument
342 if ((*this)[bitPosition]) clearBit(bitPosition); in flipBit()
343 else setBit(bitPosition); in flipBit()
360 U.VAL &= ~(mask << bitPosition); in insertBits()
365 unsigned loBit = whichBit(bitPosition); in insertBits()
366 unsigned loWord = whichWord(bitPosition); in insertBits()
399 setBit(bitPosition + i); in insertBits()
401 clearBit(bitPosition + i); in insertBits()
407 assert(bitPosition < BitWidth && (numBits + bitPosition) <= BitWidth && in extractBits()
413 unsigned loBit = whichBit(bitPosition); in extractBits()
[all …]
/freebsd-12.1/contrib/llvm/lib/DebugInfo/PDB/DIA/
H A DDIARawSymbol.cpp239 RAW_METHOD_DUMP(OS, bitPosition); in dump()