Home
last modified time | relevance | path

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

/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h1015 bool operator[](unsigned bitPosition) const {
1017 return (maskBit(bitPosition) & getWord(bitPosition)) != 0;
1412 void flipBit(unsigned bitPosition);
1421 void insertBits(const APInt &SubBits, unsigned bitPosition);
1884 static unsigned whichWord(unsigned bitPosition) {
1885 return bitPosition / APINT_BITS_PER_WORD;
1889 static unsigned whichBit(unsigned bitPosition) {
1890 return bitPosition % APINT_BITS_PER_WORD;
1899 static uint64_t maskBit(unsigned bitPosition) {
1900 return 1ULL << whichBit(bitPosition);
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DAPInt.cpp363 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument
365 setBitVal(bitPosition, !(*this)[bitPosition]); in flipBit()
385 U.VAL &= ~(mask << bitPosition); in insertBits()
390 unsigned loBit = whichBit(bitPosition); in insertBits()
430 U.VAL &= ~(maskBits << bitPosition); in insertBits()
431 U.VAL |= subBits << bitPosition; in insertBits()
435 unsigned loBit = whichBit(bitPosition); in insertBits()
454 assert(bitPosition < BitWidth && (numBits + bitPosition) <= BitWidth && in extractBits()
460 unsigned loBit = whichBit(bitPosition); in extractBits()
491 assert(bitPosition < BitWidth && (numBits + bitPosition) <= BitWidth && in extractBitsAsZExtValue()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/PDB/DIA/
H A DDIARawSymbol.cpp238 RAW_METHOD_DUMP(OS, bitPosition); in dump()