Searched refs:numBits (Results 1 – 7 of 7) sorted by relevance
/device/google/contexthub/firmware/os/cpu/cortexm4/ |
D | atomicBitset.c | 23 void atomicBitsetInit(struct AtomicBitset *set, uint32_t numBits) in atomicBitsetInit() argument 25 set->numBits = numBits; in atomicBitsetInit() 26 memset(set->words, 0, sizeof(uint32_t) * ATOMIC_BITSET_NUM_WORDS(numBits)); in atomicBitsetInit() 27 if (numBits & 31) //mark all high bits so that atomicBitsetFindClearAndSet() is simpler in atomicBitsetInit() 28 set->words[numBits / 32] = ((uint32_t)((int32_t)-1LL)) << (numBits & 31); in atomicBitsetInit() 33 return set->numBits; in atomicBitsetGetNumBits() 38 if (num >= set->numBits) /* any value is as good as the next */ in atomicBitsetGetBit() 49 if (num >= set->numBits) in atomicBitsetClearBit() 69 if (num >= set->numBits) in atomicBitsetSetBit() 86 uint32_t idx, numWords = ATOMIC_BITSET_NUM_WORDS(set->numBits); in atomicBitsetFindClearAndSet() [all …]
|
/device/google/contexthub/firmware/os/cpu/x86/ |
D | atomicBitset.c | 24 void atomicBitsetInit(struct AtomicBitset *set, uint32_t numBits) in atomicBitsetInit() argument 26 set->numBits = numBits; in atomicBitsetInit() 27 memset(set->words, 0, (numBits + 31) / 8); in atomicBitsetInit() 28 if (numBits & 31) //mark all high bits so that atomicBitsetFindClearAndSet() is simpler in atomicBitsetInit() 29 set->words[numBits / 32] = ((uint32_t)((int32_t)-1LL)) << (numBits & 31); in atomicBitsetInit() 34 return set->numBits; in atomicBitsetGetNumBits() 39 if (num >= set->numBits) /* any value is as good as the next */ in atomicBitsetGetBit() 51 if (num >= set->numBits) in atomicBitsetClearBit() 63 uint32_t pos, i, numWords = (set->numBits + 31) / 32; in atomicBitsetFindClearAndSet()
|
/device/google/contexthub/firmware/os/inc/ |
D | atomicBitset.h | 36 void atomicBitsetInit(struct AtomicBitset *set, uint32_t numBits); //inited state is all zeroes 60 bool atomicBitsetBulkRead(struct AtomicBitset *set, uint32_t *dest, uint32_t numBits);
|
D | hostIntf.h | 72 void hostIntfCopyInterrupts(void *dst, uint32_t numBits);
|
/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/ |
D | atomicBitset.h | 25 uint32_t numBits; member 33 void atomicBitsetInit(struct AtomicBitset *set, uint32_t numBits);
|
/device/google/contexthub/firmware/os/cpu/x86/inc/cpu/ |
D | atomicBitset.h | 24 uint32_t numBits; member 32 void atomicBitsetInit(struct AtomicBitset *set, uint32_t numBits);
|
/device/google/contexthub/firmware/os/core/ |
D | hostIntf.c | 1604 void hostIntfCopyInterrupts(void *dst, uint32_t numBits) in hostIntfCopyInterrupts() argument 1606 if (mInterrupt->numBits != numBits) in hostIntfCopyInterrupts() 1609 atomicBitsetBulkRead(mInterrupt, dst, numBits); in hostIntfCopyInterrupts()
|