Searched refs:nbits (Results 1 – 2 of 2) sorted by relevance
676 #define NBITVAL(nbits) (1 << (nbits)) argument677 #define MAXBITVAL(nbits) ((1 << (nbits)) - 1) argument678 #define NBITMASK(nbits) MAXBITVAL(nbits) argument
170 int write(int nbits, uint32_t val) { in write() argument171 HAPTICS_TRACE(" DspMemChunk::write(nbits:%d, val:%u)", nbits, val); in write()174 nwrite = min(24 - _cachebits, nbits); in write()176 _cache |= val >> (nbits - nwrite); in write()178 nbits -= nwrite; in write()192 if (nbits) in write()193 return write(nbits, val); in write()