pub struct MultiprocessorAffinityRegister(/* private fields */);Expand description
The layout of MPIDR_EL1 and VMPIDR_EL2.
Implementations§
Source§impl MultiprocessorAffinityRegister
impl MultiprocessorAffinityRegister
Sourcepub const RSVD1_MASK: u64
pub const RSVD1_MASK: u64
Mask of all reserved-as-1 bits.
Sourcepub const RSVD0_MASK: u64
pub const RSVD0_MASK: u64
Mask of all reserved-as-0 bits.
Sourcepub const DEFAULT: u64
pub const DEFAULT: u64
The default value of the layout, combining all field defaults and reserved-as values.
Sourcepub const AFF3_SHIFT: usize = 32
pub const AFF3_SHIFT: usize = 32
Bit shift (i.e., the low bit) of aff3.
Sourcepub const AFF2_SHIFT: usize = 16
pub const AFF2_SHIFT: usize = 16
Bit shift (i.e., the low bit) of aff2.
Sourcepub const AFF1_SHIFT: usize = 8
pub const AFF1_SHIFT: usize = 8
Bit shift (i.e., the low bit) of aff1.
Sourcepub const AFF0_SHIFT: usize = 0
pub const AFF0_SHIFT: usize = 0
Bit shift (i.e., the low bit) of aff0.
Sourcepub const FIELDS: [FieldMetadata<u64>; 6]
pub const FIELDS: [FieldMetadata<u64>; 6]
Metadata of all named fields in the layout.
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new instance with reserved-as-1 bits set and
all other bits zeroed (i.e., with a value of
Self::RSVD1_MASK).
pub const fn bits(self) -> u64
Sourcepub const fn set_aff3(&mut self, value: u8) -> &mut Self
pub const fn set_aff3(&mut self, value: u8) -> &mut Self
Sets the value of MultiprocessorAffinityRegister[39:32].
Sourcepub const fn set_u(&mut self, value: bool) -> &mut Self
pub const fn set_u(&mut self, value: bool) -> &mut Self
Sets the value of MultiprocessorAffinityRegister30.
Sourcepub const fn set_mt(&mut self, value: bool) -> &mut Self
pub const fn set_mt(&mut self, value: bool) -> &mut Self
Sets the value of MultiprocessorAffinityRegister24.
Sourcepub const fn set_aff2(&mut self, value: u8) -> &mut Self
pub const fn set_aff2(&mut self, value: u8) -> &mut Self
Sets the value of MultiprocessorAffinityRegister[23:16].
Trait Implementations§
Source§impl Binary for MultiprocessorAffinityRegister
impl Binary for MultiprocessorAffinityRegister
Source§impl Clone for MultiprocessorAffinityRegister
impl Clone for MultiprocessorAffinityRegister
Source§fn clone(&self) -> MultiprocessorAffinityRegister
fn clone(&self) -> MultiprocessorAffinityRegister
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for MultiprocessorAffinityRegister
Source§impl Debug for MultiprocessorAffinityRegister
impl Debug for MultiprocessorAffinityRegister
Source§impl Default for MultiprocessorAffinityRegister
impl Default for MultiprocessorAffinityRegister
Source§fn default() -> Self
fn default() -> Self
Returns an instance with the default bits set (i.e,. with a
value of Self::DEFAULT.
impl Eq for MultiprocessorAffinityRegister
Source§impl From<MultiprocessorAffinityRegister> for u64
impl From<MultiprocessorAffinityRegister> for u64
Source§fn from(value: MultiprocessorAffinityRegister) -> Self
fn from(value: MultiprocessorAffinityRegister) -> Self
Source§impl From<u64> for MultiprocessorAffinityRegister
impl From<u64> for MultiprocessorAffinityRegister
Source§impl IntoIterator for MultiprocessorAffinityRegister
impl IntoIterator for MultiprocessorAffinityRegister
Source§impl<'a> IntoIterator for &'a MultiprocessorAffinityRegister
impl<'a> IntoIterator for &'a MultiprocessorAffinityRegister
Source§impl LowerHex for MultiprocessorAffinityRegister
impl LowerHex for MultiprocessorAffinityRegister
Source§impl Octal for MultiprocessorAffinityRegister
impl Octal for MultiprocessorAffinityRegister
Source§impl PartialEq for MultiprocessorAffinityRegister
impl PartialEq for MultiprocessorAffinityRegister
impl StructuralPartialEq for MultiprocessorAffinityRegister
Auto Trait Implementations§
impl Freeze for MultiprocessorAffinityRegister
impl RefUnwindSafe for MultiprocessorAffinityRegister
impl Send for MultiprocessorAffinityRegister
impl Sync for MultiprocessorAffinityRegister
impl Unpin for MultiprocessorAffinityRegister
impl UnsafeUnpin for MultiprocessorAffinityRegister
impl UnwindSafe for MultiprocessorAffinityRegister
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)