Skip to main content

ExtendedTranslationControlRegister

Struct ExtendedTranslationControlRegister 

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

The layout of TCR2_EL1.

Implementations§

Source§

impl ExtendedTranslationControlRegister

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 FNGNA1_MASK: u64

Unshifted bitmask of fngna1.

Source

pub const FNGNA1_SHIFT: usize = 21

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

Source

pub const FNGNA0_MASK: u64

Unshifted bitmask of fngna0.

Source

pub const FNGNA0_SHIFT: usize = 20

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

Source

pub const FNG1_MASK: u64

Unshifted bitmask of fng1.

Source

pub const FNG1_SHIFT: usize = 18

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

Source

pub const FNG0_MASK: u64

Unshifted bitmask of fng0.

Source

pub const FNG0_SHIFT: usize = 17

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

Source

pub const A2_MASK: u64

Unshifted bitmask of a2.

Source

pub const A2_SHIFT: usize = 16

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

Source

pub const DISCH1_MASK: u64

Unshifted bitmask of disch1.

Source

pub const DISCH1_SHIFT: usize = 15

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

Source

pub const DISCH0_MASK: u64

Unshifted bitmask of disch0.

Source

pub const DISCH0_SHIFT: usize = 14

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

Source

pub const HAFT_MASK: u64

Unshifted bitmask of haft.

Source

pub const HAFT_SHIFT: usize = 11

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

Source

pub const PTTWI_MASK: u64

Unshifted bitmask of pttwi.

Source

pub const PTTWI_SHIFT: usize = 10

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

Source

pub const D128_MASK: u64

Unshifted bitmask of d128.

Source

pub const D128_SHIFT: usize = 5

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

Source

pub const AIE_MASK: u64

Unshifted bitmask of aie.

Source

pub const AIE_SHIFT: usize = 4

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

Source

pub const POE_MASK: u64

Unshifted bitmask of poe.

Source

pub const POE_SHIFT: usize = 3

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

Source

pub const E0POE_MASK: u64

Unshifted bitmask of e0poe.

Source

pub const E0POE_SHIFT: usize = 2

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

Source

pub const PIE_MASK: u64

Unshifted bitmask of pie.

Source

pub const PIE_SHIFT: usize = 1

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

Source

pub const PNCH_MASK: u64

Unshifted bitmask of pnch.

Source

pub const PNCH_SHIFT: usize = 0

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

Source

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

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 fngna1(&self) -> bool

The value of ExtendedTranslationControlRegister21.

Source

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

Sets the value of ExtendedTranslationControlRegister21.

Source

pub const fn fngna0(&self) -> bool

The value of ExtendedTranslationControlRegister20.

Source

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

Sets the value of ExtendedTranslationControlRegister20.

Source

pub const fn fng1(&self) -> bool

The value of ExtendedTranslationControlRegister18.

Source

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

Sets the value of ExtendedTranslationControlRegister18.

Source

pub const fn fng0(&self) -> bool

The value of ExtendedTranslationControlRegister17.

Source

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

Sets the value of ExtendedTranslationControlRegister17.

Source

pub const fn a2(&self) -> bool

The value of ExtendedTranslationControlRegister16.

Source

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

Sets the value of ExtendedTranslationControlRegister16.

Source

pub const fn disch1(&self) -> bool

The value of ExtendedTranslationControlRegister15.

Source

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

Sets the value of ExtendedTranslationControlRegister15.

Source

pub const fn disch0(&self) -> bool

The value of ExtendedTranslationControlRegister14.

Source

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

Sets the value of ExtendedTranslationControlRegister14.

Source

pub const fn haft(&self) -> bool

The value of ExtendedTranslationControlRegister11.

Source

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

Sets the value of ExtendedTranslationControlRegister11.

Source

pub const fn pttwi(&self) -> bool

The value of ExtendedTranslationControlRegister10.

Source

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

Sets the value of ExtendedTranslationControlRegister10.

Source

pub const fn d128(&self) -> bool

The value of ExtendedTranslationControlRegister5.

Source

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

Sets the value of ExtendedTranslationControlRegister5.

Source

pub const fn aie(&self) -> bool

The value of ExtendedTranslationControlRegister4.

Source

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

Sets the value of ExtendedTranslationControlRegister4.

Source

pub const fn poe(&self) -> bool

The value of ExtendedTranslationControlRegister3.

Source

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

Sets the value of ExtendedTranslationControlRegister3.

Source

pub const fn e0poe(&self) -> bool

The value of ExtendedTranslationControlRegister2.

Source

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

Sets the value of ExtendedTranslationControlRegister2.

Source

pub const fn pie(&self) -> bool

The value of ExtendedTranslationControlRegister1.

Source

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

Sets the value of ExtendedTranslationControlRegister1.

Source

pub const fn pnch(&self) -> bool

The value of ExtendedTranslationControlRegister0.

Source

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

Sets the value of ExtendedTranslationControlRegister0.

Source§

impl ExtendedTranslationControlRegister

Source

pub fn iter(&self) -> ExtendedTranslationControlRegisterIter

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

Trait Implementations§

Source§

impl Binary for ExtendedTranslationControlRegister

Source§

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

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

impl Clone for ExtendedTranslationControlRegister

Source§

fn clone(&self) -> ExtendedTranslationControlRegister

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 ExtendedTranslationControlRegister

Source§

impl Debug for ExtendedTranslationControlRegister

Source§

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

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

impl Default for ExtendedTranslationControlRegister

Source§

fn default() -> Self

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

Source§

impl Eq for ExtendedTranslationControlRegister

Source§

impl From<ExtendedTranslationControlRegister> for u64

Source§

fn from(value: ExtendedTranslationControlRegister) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for ExtendedTranslationControlRegister

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for ExtendedTranslationControlRegister

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = ExtendedTranslationControlRegisterIter

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 ExtendedTranslationControlRegister

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = ExtendedTranslationControlRegisterIter

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 ExtendedTranslationControlRegister

Source§

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

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

impl Octal for ExtendedTranslationControlRegister

Source§

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

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

impl PartialEq for ExtendedTranslationControlRegister

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ExtendedTranslationControlRegister

Source§

impl UpperHex for ExtendedTranslationControlRegister

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.