Home
last modified time | relevance | path

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

/freebsd/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_rfgain.c95 uint32_t bitPosition, bitsShifted; in ar5212GetRfField() local
103 bitPosition = (firstBit - 1) % 8; in ar5212GetRfField()
107 lastBit = (bitPosition + bitsLeft > 8) ? in ar5212GetRfField()
108 (8) : (bitPosition + bitsLeft); in ar5212GetRfField()
109 mask = (((1 << lastBit) - 1) ^ ((1 << bitPosition) - 1)) << in ar5212GetRfField()
112 bitPosition) << bitsShifted; in ar5212GetRfField()
113 bitsShifted += lastBit - bitPosition; in ar5212GetRfField()
114 bitsLeft -= (8 - bitPosition); in ar5212GetRfField()
115 bitPosition = 0; in ar5212GetRfField()
H A Dar5212_reset.c2677 int32_t bitPosition, bitsLeft; in ar5212ModifyRfBuffer() local
2685 bitPosition = (firstBit - 1) % 8; in ar5212ModifyRfBuffer()
2688 lastBit = (bitPosition + bitsLeft > 8) ? in ar5212ModifyRfBuffer()
2689 8 : bitPosition + bitsLeft; in ar5212ModifyRfBuffer()
2690 mask = (((1 << lastBit) - 1) ^ ((1 << bitPosition) - 1)) << in ar5212ModifyRfBuffer()
2693 rfBuf[arrayEntry] |= ((tmp32 << bitPosition) << in ar5212ModifyRfBuffer()
2695 bitsLeft -= 8 - bitPosition; in ar5212ModifyRfBuffer()
2696 tmp32 = tmp32 >> (8 - bitPosition); in ar5212ModifyRfBuffer()
2697 bitPosition = 0; in ar5212ModifyRfBuffer()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h1043 bool operator[](unsigned bitPosition) const {
1044 assert(bitPosition < getBitWidth() && "Bit position out of bounds!");
1045 return (maskBit(bitPosition) & getWord(bitPosition)) != 0;
1465 LLVM_ABI void flipBit(unsigned bitPosition);
1474 LLVM_ABI void insertBits(const APInt &SubBits, unsigned bitPosition);
1475 LLVM_ABI void insertBits(uint64_t SubBits, unsigned bitPosition,
1479 LLVM_ABI APInt extractBits(unsigned numBits, unsigned bitPosition) const;
1481 unsigned bitPosition) const;
1958 static unsigned whichWord(unsigned bitPosition) {
1959 return bitPosition / APINT_BITS_PER_WORD;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPInt.cpp392 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument
393 assert(bitPosition < BitWidth && "Out of the bit-width range!"); in flipBit()
394 setBitVal(bitPosition, !(*this)[bitPosition]); in flipBit()
397 void APInt::insertBits(const APInt &subBits, unsigned bitPosition) { in insertBits() argument
399 assert((subBitWidth + bitPosition) <= BitWidth && "Illegal bit insertion"); in insertBits()
414 U.VAL &= ~(mask << bitPosition); in insertBits()
415 U.VAL |= (subBits.U.VAL << bitPosition); in insertBits()
419 unsigned loBit = whichBit(bitPosition); in insertBits()
420 unsigned loWord = whichWord(bitPosition); in insertBits()
421 unsigned hi1Word = whichWord(bitPosition + subBitWidth - 1); in insertBits()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/DIA/
H A DDIARawSymbol.cpp238 RAW_METHOD_DUMP(OS, bitPosition); in dump()