Searched refs:num_bits (Results 1 – 5 of 5) sorted by relevance
62 void insert(FixedWidthIntegerType value, BitInserter& it, size_t num_bits) const { in insert() argument63 ASSERT(num_bits <= (sizeof(FixedWidthIntegerType) * 8)); in insert()65 for (size_t i = 0; i < num_bits / 8; i++) { in insert()69 it.insert_byte(static_cast<uint8_t>(value >> (((num_bits / 8) - i - 1) * 8))); in insert()72 if (num_bits % 8) { in insert()73 it.insert_bits(static_cast<uint8_t>(value >> ((num_bits / 8) * 8)), num_bits % 8); in insert()
36 void insert_bits(uint8_t byte, size_t num_bits) { in insert_bits() argument37 size_t total_bits = num_bits + num_saved_bits_; in insert_bits()
633 p_t2t->lock_tlv[p_t2t->num_lock_tlvs].num_bits = count; in rw_t2t_handle_tlv_detect_rsp()887 p_t2t->lock_tlv[p_t2t->num_lock_tlvs].num_bits = num_dynamic_lock_bits; in rw_t2t_extract_default_locks_info()2059 uint8_t num_bits; in rw_t2t_get_lock_bits_for_segment() local2095 .num_bits); in rw_t2t_get_lock_bits_for_segment()2096 num_bits = in rw_t2t_get_lock_bits_for_segment()2100 .num_bits % in rw_t2t_get_lock_bits_for_segment()2103 if (((bytes_locked_per_bit * num_bits) + byte_count) <= lower_offset) { in rw_t2t_get_lock_bits_for_segment()2105 byte_count += bytes_locked_per_bit * num_bits; in rw_t2t_get_lock_bits_for_segment()2109 while (bit_count < num_bits) { in rw_t2t_get_lock_bits_for_segment()2137 .num_bits); in rw_t2t_get_lock_bits_for_segment()[all …]
345 uint8_t num_bits; in rw_t1t_handle_write_rsp() local447 num_bits = in rw_t1t_handle_write_rsp()450 .num_bits) in rw_t1t_handle_write_rsp()453 .num_bits % in rw_t1t_handle_write_rsp()460 tags_pow(2, num_bits) - 1; in rw_t1t_handle_write_rsp()470 .num_bits) in rw_t1t_handle_write_rsp()474 .num_bits % in rw_t1t_handle_write_rsp()502 value = (uint8_t)(tags_pow(2, num_bits) - 1); in rw_t1t_handle_write_rsp()1036 p_t1t->lock_tlv[p_t1t->num_lock_tlvs].num_bits = tlv_value[1]; in rw_t1t_handle_tlv_detect_rsp()1841 uint8_t num_bits; in rw_t1t_get_lock_bits_for_segment() local[all …]
136 uint8_t num_bits; /* Number of lock bits in the lock byte */ member369 uint8_t num_bits; /* Number of lock bits in the lock byte */ member