Skip to main content

TranslationControlRegisterEl2

Struct TranslationControlRegisterEl2 

Source
pub struct TranslationControlRegisterEl2(/* private fields */);
Expand description

The layout of TCR_EL2.

Implementations§

Source§

impl TranslationControlRegisterEl2

Source

pub const RSVD1_MASK: u64

Mask of all reserved-as-1 bits.

Source

pub const RSVD0_MASK: u64

Mask of all reserved-as-0 bits.

Source

pub const DEFAULT: u64

The default value of the layout, combining all field defaults and reserved-as values.

Source

pub const MTX_MASK: u64

Unshifted bitmask of mtx.

Source

pub const MTX_SHIFT: usize = 33

Bit shift (i.e., the low bit) of mtx.

Source

pub const DS_MASK: u64

Unshifted bitmask of ds.

Source

pub const DS_SHIFT: usize = 32

Bit shift (i.e., the low bit) of ds.

Source

pub const TCMA_MASK: u64

Unshifted bitmask of tcma.

Source

pub const TCMA_SHIFT: usize = 30

Bit shift (i.e., the low bit) of tcma.

Source

pub const TBID_MASK: u64

Unshifted bitmask of tbid.

Source

pub const TBID_SHIFT: usize = 29

Bit shift (i.e., the low bit) of tbid.

Source

pub const HWU62_MASK: u64

Unshifted bitmask of hwu62.

Source

pub const HWU62_SHIFT: usize = 28

Bit shift (i.e., the low bit) of hwu62.

Source

pub const HWU61_MASK: u64

Unshifted bitmask of hwu61.

Source

pub const HWU61_SHIFT: usize = 27

Bit shift (i.e., the low bit) of hwu61.

Source

pub const HWU60_MASK: u64

Unshifted bitmask of hwu60.

Source

pub const HWU60_SHIFT: usize = 26

Bit shift (i.e., the low bit) of hwu60.

Source

pub const HWU59_MASK: u64

Unshifted bitmask of hwu59.

Source

pub const HWU59_SHIFT: usize = 25

Bit shift (i.e., the low bit) of hwu59.

Source

pub const HPD_MASK: u64

Unshifted bitmask of hpd.

Source

pub const HPD_SHIFT: usize = 24

Bit shift (i.e., the low bit) of hpd.

Source

pub const HD_MASK: u64

Unshifted bitmask of hd.

Source

pub const HD_SHIFT: usize = 22

Bit shift (i.e., the low bit) of hd.

Source

pub const HA_MASK: u64

Unshifted bitmask of ha.

Source

pub const HA_SHIFT: usize = 21

Bit shift (i.e., the low bit) of ha.

Source

pub const TBI_MASK: u64

Unshifted bitmask of tbi.

Source

pub const TBI_SHIFT: usize = 20

Bit shift (i.e., the low bit) of tbi.

Source

pub const PS_MASK: u64

Unshifted bitmask of ps.

Source

pub const PS_SHIFT: usize = 16

Bit shift (i.e., the low bit) of ps.

Source

pub const TG0_MASK: u64

Unshifted bitmask of tg0.

Source

pub const TG0_SHIFT: usize = 14

Bit shift (i.e., the low bit) of tg0.

Source

pub const SH0_MASK: u64

Unshifted bitmask of sh0.

Source

pub const SH0_SHIFT: usize = 12

Bit shift (i.e., the low bit) of sh0.

Source

pub const ORGN0_MASK: u64

Unshifted bitmask of orgn0.

Source

pub const ORGN0_SHIFT: usize = 10

Bit shift (i.e., the low bit) of orgn0.

Source

pub const IRGN0_MASK: u64

Unshifted bitmask of irgn0.

Source

pub const IRGN0_SHIFT: usize = 8

Bit shift (i.e., the low bit) of irgn0.

Source

pub const T0SZ_MASK: u64

Unshifted bitmask of t0sz.

Source

pub const T0SZ_SHIFT: usize = 0

Bit shift (i.e., the low bit) of t0sz.

Source

pub const FIELDS: [FieldMetadata<u64>; 18]

Metadata of all named fields in the layout.

Source

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).

Source

pub const fn bits(self) -> u64

Source

pub const fn mtx(&self) -> bool

The value of TranslationControlRegisterEl233.

Source

pub const fn set_mtx(&mut self, value: bool) -> &mut Self

Sets the value of TranslationControlRegisterEl233.

Source

pub const fn ds(&self) -> bool

The value of TranslationControlRegisterEl232.

Source

pub const fn set_ds(&mut self, value: bool) -> &mut Self

Sets the value of TranslationControlRegisterEl232.

Source

pub const fn tcma(&self) -> bool

The value of TranslationControlRegisterEl230.

Source

pub const fn set_tcma(&mut self, value: bool) -> &mut Self

Sets the value of TranslationControlRegisterEl230.

Source

pub const fn tbid(&self) -> bool

The value of TranslationControlRegisterEl229.

Source

pub const fn set_tbid(&mut self, value: bool) -> &mut Self

Sets the value of TranslationControlRegisterEl229.

Source

pub const fn hwu62(&self) -> bool

The value of TranslationControlRegisterEl228.

Source

pub const fn set_hwu62(&mut self, value: bool) -> &mut Self

Sets the value of TranslationControlRegisterEl228.

Source

pub const fn hwu61(&self) -> bool

The value of TranslationControlRegisterEl227.

Source

pub const fn set_hwu61(&mut self, value: bool) -> &mut Self

Sets the value of TranslationControlRegisterEl227.

Source

pub const fn hwu60(&self) -> bool

The value of TranslationControlRegisterEl226.

Source

pub const fn set_hwu60(&mut self, value: bool) -> &mut Self

Sets the value of TranslationControlRegisterEl226.

Source

pub const fn hwu59(&self) -> bool

The value of TranslationControlRegisterEl225.

Source

pub const fn set_hwu59(&mut self, value: bool) -> &mut Self

Sets the value of TranslationControlRegisterEl225.

Source

pub const fn hpd(&self) -> bool

The value of TranslationControlRegisterEl224.

Source

pub const fn set_hpd(&mut self, value: bool) -> &mut Self

Sets the value of TranslationControlRegisterEl224.

Source

pub const fn hd(&self) -> bool

The value of TranslationControlRegisterEl222.

Source

pub const fn set_hd(&mut self, value: bool) -> &mut Self

Sets the value of TranslationControlRegisterEl222.

Source

pub const fn ha(&self) -> bool

The value of TranslationControlRegisterEl221.

Source

pub const fn set_ha(&mut self, value: bool) -> &mut Self

Sets the value of TranslationControlRegisterEl221.

Source

pub const fn tbi(&self) -> bool

The value of TranslationControlRegisterEl220.

Source

pub const fn set_tbi(&mut self, value: bool) -> &mut Self

Sets the value of TranslationControlRegisterEl220.

Source

pub fn ps(&self) -> PhysicalAddressSize

The value of TranslationControlRegisterEl2[18:16].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_ps to recover from invalid bit patterns.

Source

pub fn try_ps(&self) -> Result<PhysicalAddressSize, InvalidBits<u8>>

Fallible variant of Self::ps.

Source

pub fn set_ps(&mut self, value: PhysicalAddressSize) -> &mut Self

Sets the value of TranslationControlRegisterEl2[18:16].

Source

pub fn tg0(&self) -> TcrTg0Value

The value of TranslationControlRegisterEl2[15:14].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_tg0 to recover from invalid bit patterns.

Source

pub fn try_tg0(&self) -> Result<TcrTg0Value, InvalidBits<u8>>

Fallible variant of Self::tg0.

Source

pub fn set_tg0(&mut self, value: TcrTg0Value) -> &mut Self

Sets the value of TranslationControlRegisterEl2[15:14].

Source

pub fn sh0(&self) -> ShareabilityAttribute

The value of TranslationControlRegisterEl2[13:12].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_sh0 to recover from invalid bit patterns.

Source

pub fn try_sh0(&self) -> Result<ShareabilityAttribute, InvalidBits<u8>>

Fallible variant of Self::sh0.

Source

pub fn set_sh0(&mut self, value: ShareabilityAttribute) -> &mut Self

Sets the value of TranslationControlRegisterEl2[13:12].

Source

pub fn orgn0(&self) -> CacheabilityAttribute

The value of TranslationControlRegisterEl2[11:10].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_orgn0 to recover from invalid bit patterns.

Source

pub fn try_orgn0(&self) -> Result<CacheabilityAttribute, InvalidBits<u8>>

Fallible variant of Self::orgn0.

Source

pub fn set_orgn0(&mut self, value: CacheabilityAttribute) -> &mut Self

Sets the value of TranslationControlRegisterEl2[11:10].

Source

pub fn irgn0(&self) -> CacheabilityAttribute

The value of TranslationControlRegisterEl2[9:8].

§Panics

Panics if the field’s bit pattern is not a valid value of the custom representation. Use Self::try_irgn0 to recover from invalid bit patterns.

Source

pub fn try_irgn0(&self) -> Result<CacheabilityAttribute, InvalidBits<u8>>

Fallible variant of Self::irgn0.

Source

pub fn set_irgn0(&mut self, value: CacheabilityAttribute) -> &mut Self

Sets the value of TranslationControlRegisterEl2[9:8].

Source

pub const fn t0sz(&self) -> u8

The value of TranslationControlRegisterEl2[5:0].

Source

pub const fn set_t0sz(&mut self, value: u8) -> &mut Self

Sets the value of TranslationControlRegisterEl2[5:0].

Source§

impl TranslationControlRegisterEl2

Source

pub fn iter(&self) -> TranslationControlRegisterEl2Iter

Returns an iterator over (metadata, value) pairs for each field.

Trait Implementations§

Source§

impl Binary for TranslationControlRegisterEl2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Clone for TranslationControlRegisterEl2

Source§

fn clone(&self) -> TranslationControlRegisterEl2

Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for TranslationControlRegisterEl2

Source§

impl Debug for TranslationControlRegisterEl2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TranslationControlRegisterEl2

Source§

fn default() -> Self

Returns an instance with the default bits set (i.e,. with a value of Self::DEFAULT.

Source§

impl Eq for TranslationControlRegisterEl2

Source§

impl From<TranslationControlRegisterEl2> for u64

Source§

fn from(value: TranslationControlRegisterEl2) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for TranslationControlRegisterEl2

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for TranslationControlRegisterEl2

Source§

type Item = (&'static FieldMetadata<u64>, u64)

The type of the elements being iterated over.
Source§

type IntoIter = TranslationControlRegisterEl2Iter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'a> IntoIterator for &'a TranslationControlRegisterEl2

Source§

type Item = (&'static FieldMetadata<u64>, u64)

The type of the elements being iterated over.
Source§

type IntoIter = TranslationControlRegisterEl2Iter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl LowerHex for TranslationControlRegisterEl2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Octal for TranslationControlRegisterEl2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for TranslationControlRegisterEl2

Source§

fn eq(&self, other: &TranslationControlRegisterEl2) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable)§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for TranslationControlRegisterEl2

Source§

impl UpperHex for TranslationControlRegisterEl2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

Source§

impl<Layout, Base> LayoutOver<Base> for Layout
where Layout: Copy + From<Base> + Into<Base>,

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = !

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.