Home
last modified time | relevance | path

Searched refs:FIELD_WIDTH (Results 1 – 2 of 2) sorted by relevance

/external/crosvm/bit_field/bit_field_derive/
Dbit_field_derive.rs117 const FIELD_WIDTH: u8 = #bits; in bitfield_tuple_struct_impl() constant
173 const FIELD_WIDTH: u8 = #bits; in bitfield_enum_with_width_impl() constant
244 const FIELD_WIDTH: u8 = #bits; in bitfield_enum_without_width_impl() constant
433 <#field_types as ::bit_field::BitFieldSpecifier>::FIELD_WIDTH as usize in get_struct_def()
477 [(); <#ty as ::bit_field::BitFieldSpecifier>::FIELD_WIDTH as usize]; in get_fields_impl()
484 … let offset = #(<#current_types as ::bit_field::BitFieldSpecifier>::FIELD_WIDTH as usize)+*; in get_fields_impl()
485 let val = self.get(offset, <#ty as ::bit_field::BitFieldSpecifier>::FIELD_WIDTH); in get_fields_impl()
492 … let offset = #(<#current_types as ::bit_field::BitFieldSpecifier>::FIELD_WIDTH as usize)+*; in get_fields_impl()
493 self.set(offset, <#ty as ::bit_field::BitFieldSpecifier>::FIELD_WIDTH, val) in get_fields_impl()
622 const FIELD_WIDTH: u8 = #width; in define_bit_field_specifiers() constant
[all …]
/external/crosvm/bit_field/src/
Dlib.rs306 const FIELD_WIDTH: u8; constant
325 if T::FIELD_WIDTH < 64 { in max()
326 (1 << T::FIELD_WIDTH) - 1 in max()
336 const FIELD_WIDTH: u8 = 1; constant