Lines Matching refs:bits
231 uint8_t bits; in util_saa_le32() local
270 bits = find_msb_set(CONFIG_BT_CTLR_ADV_ISO_SET * 0x03); in util_saa_le32()
271 saa &= ~BIT_MASK(bits); in util_saa_le32()
327 uint8_t shift, byteIdx, bits; in util_get_bits() local
334 bits = MIN(num_bits, 8 - bit_offs); in util_get_bits()
335 value |= ((data[byteIdx] >> bit_offs) & BIT_MASK(bits)) << shift; in util_get_bits()
336 shift += bits; in util_get_bits()
337 num_bits -= bits; in util_get_bits()
355 uint8_t byteIdx, bits; in util_set_bits() local
360 bits = MIN(num_bits, 8 - bit_offs); in util_set_bits()
361 data[byteIdx] = (data[byteIdx] & ~(BIT_MASK(bits) << bit_offs)) | in util_set_bits()
362 ((value & BIT_MASK(bits)) << bit_offs); in util_set_bits()
363 value >>= bits; in util_set_bits()
364 num_bits -= bits; in util_set_bits()