/packages/modules/Bluetooth/system/gd/packet/parser/fields/ |
D | packet_field.cc | 43 int PacketField::GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const { in GenBounds() argument 45 if ((start_offset.empty() && size.empty()) || (start_offset.empty() && end_offset.empty()) || in GenBounds() 46 (end_offset.empty() && size.empty())) { in GenBounds() 47 …ERROR(this) << "GenBounds called without enough information. " << start_offset << end_offset << si… in GenBounds() 50 if (start_offset.bits() % 8 != 0 || end_offset.bits() % 8 != 0) { in GenBounds() 51 …< "Can not find the bounds of a field at a non byte-aligned offset." << start_offset << end_offset; in GenBounds() 57 s << "size_t field_begin = end_index - (" << end_offset << " + " << size << ") / 8;"; in GenBounds() 60 if (!end_offset.empty()) { in GenBounds() 61 s << "size_t field_end = end_index - (" << end_offset << ") / 8;"; in GenBounds() 109 std::ostream&, Size start_offset, Size end_offset, Size size) const { in GetRustBitOffset() argument [all …]
|
D | scalar_field.cc | 52 int ScalarField::GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const { in GenBounds() argument 59 } else if (!end_offset.empty()) { in GenBounds() 60 num_leading_bits = GetShiftBits(end_offset.bits() + size.bits()); in GenBounds() 61 Size byte_offset = Size(num_leading_bits + size.bits()) + end_offset; in GenBounds() 99 void ScalarField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter() 103 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter() 151 std::ostream&, Size start_offset, Size end_offset, Size size) const { in GetRustBitOffset() argument 157 } else if (!end_offset.empty()) { in GetRustBitOffset() 158 num_leading_bits = GetShiftBits(end_offset.bits() + size.bits()); in GetRustBitOffset() 159 Size byte_offset = Size(num_leading_bits + size.bits()) + end_offset; in GetRustBitOffset() [all …]
|
D | custom_field_fixed_size.cc | 38 int CustomFieldFixedSize::GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size)… in GenBounds() argument 42 } else if (!end_offset.empty()) { in GenBounds() 43 Size byte_offset = size + end_offset; in GenBounds() 80 void CustomFieldFixedSize::GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::… in GenRustGetter() argument 82 int num_leading_bits = GetRustBitOffset(s, start_offset, end_offset, GetSize()); in GenRustGetter() 95 void CustomFieldFixedSize::GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const… in GenRustWriter() 97 int num_leading_bits = GetRustBitOffset(s, start_offset, end_offset, GetSize()); in GenRustWriter()
|
D | scalar_field.h | 34 …virtual int GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const overri… 40 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override; 59 Size end_offset, Size size) const override; 61 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid… 63 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
|
D | packet_field.h | 54 virtual int GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const; 63 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const = 0; 125 std::ostream& s, Size start_offset, Size end_offset, Size size) const; 127 …virtual void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const… 129 virtual void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const = 0;
|
D | fixed_scalar_field.cc | 41 void FixedScalarField::GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const { in GenRustWriter() 43 FixedField::GenRustWriter(s, start_offset, end_offset); in GenRustWriter() 47 std::ostream& s, Size start_offset, Size end_offset, std::string parent_name) const { in GenRustGetter() argument 48 FixedField::GenRustGetter(s, start_offset, end_offset, parent_name); in GenRustGetter()
|
D | struct_field.h | 40 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override; 56 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid… 58 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override; 60 …void GenBoundsCheck(std::ostream& s, Size start_offset, Size end_offset, std::string) const overri…
|
D | vector_field.h | 46 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override; 74 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid… 76 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override; 78 …void GenBoundsCheck(std::ostream& s, Size start_offset, Size end_offset, std::string parent_name) …
|
D | custom_field_fixed_size.h | 32 …virtual int GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const overri… 46 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid… 48 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
|
D | checksum_field.h | 37 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override; 51 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid… 53 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
|
D | padding_field.h | 42 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override; 56 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid… 58 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
|
D | checksum_start_field.h | 40 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override; 58 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid… 60 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
|
D | custom_field.h | 40 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override; 58 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid… 60 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
|
D | payload_field.h | 41 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override; 61 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid… 63 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
|
D | array_field.h | 45 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override; 69 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string parent_name) c… 71 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
|
D | fixed_scalar_field.h | 42 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid… 44 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
|
D | fixed_field.cc | 25 void FixedField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter() 27 ScalarField::GenGetter(s, start_offset, end_offset); in GenGetter()
|
D | count_field.h | 33 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override; 47 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
|
D | size_field.cc | 29 void SizeField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter() 31 ScalarField::GenGetter(s, start_offset, end_offset); in GenGetter()
|
D | count_field.cc | 29 void CountField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter() 31 ScalarField::GenGetter(s, start_offset, end_offset); in GenGetter()
|
D | reserved_field.h | 52 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid… 54 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
|
D | body_field.h | 57 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid… 59 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
|
D | group_field.h | 60 …void GenRustGetter(std::ostream& s, Size start_offset, Size end_offset, std::string) const overrid… 62 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
|
D | variable_length_struct_field.h | 40 virtual void GenGetter(std::ostream& s, Size start_offset, Size end_offset) const override; 58 void GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const override;
|
/packages/modules/Bluetooth/tools/pdl/src/backends/ |
D | intermediate.rs | 215 let end_offset = if computed_values.contains_key(&computed_size_id) { in compute_getters() localVariable 224 computed_offsets.insert(ComputedOffsetId::FieldEndOffset("_body_"), end_offset); in compute_getters() 225 end_offset in compute_getters() 236 let end_offset = if computed_values.contains_key(&computed_size_id) { in compute_getters() localVariable 245 computed_offsets.insert(ComputedOffsetId::FieldEndOffset("_payload_"), end_offset); in compute_getters() 246 end_offset in compute_getters() 446 let end_offset = if let Entry::Vacant(entry) = in compute_getters() localVariable 468 computed_offsets.insert(ComputedOffsetId::FieldEndOffset(id), end_offset); in compute_getters() 469 end_offset in compute_getters()
|