Struct aarch64defs::TranslationControlEl1

source ·
pub struct TranslationControlEl1(/* private fields */);
Expand description

aarch64 TCR_EL1 register

Implementations§

source§

impl TranslationControlEl1

source

pub const fn new() -> Self

Creates a new default initialized bitfield.

source

pub const fn from_bits(bits: u64) -> Self

Convert from bits.

source

pub const fn into_bits(self) -> u64

Convert into bits.

source

pub const fn t0sz(&self) -> u64

Bits: 0..6

source

pub const fn with_t0sz(self, value: u64) -> Self

Bits: 0..6

source

pub fn set_t0sz(&mut self, value: u64)

Bits: 0..6

source

pub const fn epd0(&self) -> u64

Bits: 7..8

source

pub const fn with_epd0(self, value: u64) -> Self

Bits: 7..8

source

pub fn set_epd0(&mut self, value: u64)

Bits: 7..8

source

pub const fn irgn0(&self) -> u64

Bits: 8..10

source

pub const fn with_irgn0(self, value: u64) -> Self

Bits: 8..10

source

pub fn set_irgn0(&mut self, value: u64)

Bits: 8..10

source

pub const fn orgn0(&self) -> u64

Bits: 10..12

source

pub const fn with_orgn0(self, value: u64) -> Self

Bits: 10..12

source

pub fn set_orgn0(&mut self, value: u64)

Bits: 10..12

source

pub const fn sh0(&self) -> u64

Bits: 12..14

source

pub const fn with_sh0(self, value: u64) -> Self

Bits: 12..14

source

pub fn set_sh0(&mut self, value: u64)

Bits: 12..14

source

pub const fn tg0(&self) -> TranslationGranule0

Bits: 14..16

source

pub const fn with_tg0(self, value: TranslationGranule0) -> Self

Bits: 14..16

source

pub fn set_tg0(&mut self, value: TranslationGranule0)

Bits: 14..16

source

pub const fn t1sz(&self) -> u64

Bits: 16..22

source

pub const fn with_t1sz(self, value: u64) -> Self

Bits: 16..22

source

pub fn set_t1sz(&mut self, value: u64)

Bits: 16..22

source

pub const fn a1(&self) -> u64

Bits: 22..23

source

pub const fn with_a1(self, value: u64) -> Self

Bits: 22..23

source

pub fn set_a1(&mut self, value: u64)

Bits: 22..23

source

pub const fn epd1(&self) -> u64

Bits: 23..24

source

pub const fn with_epd1(self, value: u64) -> Self

Bits: 23..24

source

pub fn set_epd1(&mut self, value: u64)

Bits: 23..24

source

pub const fn irgn1(&self) -> u64

Bits: 24..26

source

pub const fn with_irgn1(self, value: u64) -> Self

Bits: 24..26

source

pub fn set_irgn1(&mut self, value: u64)

Bits: 24..26

source

pub const fn orgn1(&self) -> u64

Bits: 26..28

source

pub const fn with_orgn1(self, value: u64) -> Self

Bits: 26..28

source

pub fn set_orgn1(&mut self, value: u64)

Bits: 26..28

source

pub const fn sh1(&self) -> u64

Bits: 28..30

source

pub const fn with_sh1(self, value: u64) -> Self

Bits: 28..30

source

pub fn set_sh1(&mut self, value: u64)

Bits: 28..30

source

pub const fn tg1(&self) -> TranslationGranule1

Bits: 30..32

source

pub const fn with_tg1(self, value: TranslationGranule1) -> Self

Bits: 30..32

source

pub fn set_tg1(&mut self, value: TranslationGranule1)

Bits: 30..32

source

pub const fn ips(&self) -> IntermPhysAddrSize

Bits: 32..35

source

pub const fn with_ips(self, value: IntermPhysAddrSize) -> Self

Bits: 32..35

source

pub fn set_ips(&mut self, value: IntermPhysAddrSize)

Bits: 32..35

source

pub const fn a_s(&self) -> u64

Bits: 36..37

source

pub const fn with_a_s(self, value: u64) -> Self

Bits: 36..37

source

pub fn set_a_s(&mut self, value: u64)

Bits: 36..37

source

pub const fn tbi0(&self) -> u64

Bits: 37..38

source

pub const fn with_tbi0(self, value: u64) -> Self

Bits: 37..38

source

pub fn set_tbi0(&mut self, value: u64)

Bits: 37..38

source

pub const fn tbi1(&self) -> u64

Bits: 38..39

source

pub const fn with_tbi1(self, value: u64) -> Self

Bits: 38..39

source

pub fn set_tbi1(&mut self, value: u64)

Bits: 38..39

source

pub const fn ha(&self) -> u64

Bits: 39..40

source

pub const fn with_ha(self, value: u64) -> Self

Bits: 39..40

source

pub fn set_ha(&mut self, value: u64)

Bits: 39..40

source

pub const fn hd(&self) -> u64

Bits: 40..41

source

pub const fn with_hd(self, value: u64) -> Self

Bits: 40..41

source

pub fn set_hd(&mut self, value: u64)

Bits: 40..41

source

pub const fn hpd0(&self) -> u64

Bits: 41..42

source

pub const fn with_hpd0(self, value: u64) -> Self

Bits: 41..42

source

pub fn set_hpd0(&mut self, value: u64)

Bits: 41..42

source

pub const fn hpd1(&self) -> u64

Bits: 42..43

source

pub const fn with_hpd1(self, value: u64) -> Self

Bits: 42..43

source

pub fn set_hpd1(&mut self, value: u64)

Bits: 42..43

source

pub const fn hwu059(&self) -> u64

Bits: 43..44

source

pub const fn with_hwu059(self, value: u64) -> Self

Bits: 43..44

source

pub fn set_hwu059(&mut self, value: u64)

Bits: 43..44

source

pub const fn hwu060(&self) -> u64

Bits: 44..45

source

pub const fn with_hwu060(self, value: u64) -> Self

Bits: 44..45

source

pub fn set_hwu060(&mut self, value: u64)

Bits: 44..45

source

pub const fn hwu061(&self) -> u64

Bits: 45..46

source

pub const fn with_hwu061(self, value: u64) -> Self

Bits: 45..46

source

pub fn set_hwu061(&mut self, value: u64)

Bits: 45..46

source

pub const fn hwu062(&self) -> u64

Bits: 46..47

source

pub const fn with_hwu062(self, value: u64) -> Self

Bits: 46..47

source

pub fn set_hwu062(&mut self, value: u64)

Bits: 46..47

source

pub const fn hwu159(&self) -> u64

Bits: 47..48

source

pub const fn with_hwu159(self, value: u64) -> Self

Bits: 47..48

source

pub fn set_hwu159(&mut self, value: u64)

Bits: 47..48

source

pub const fn hwu160(&self) -> u64

Bits: 48..49

source

pub const fn with_hwu160(self, value: u64) -> Self

Bits: 48..49

source

pub fn set_hwu160(&mut self, value: u64)

Bits: 48..49

source

pub const fn hwu161(&self) -> u64

Bits: 49..50

source

pub const fn with_hwu161(self, value: u64) -> Self

Bits: 49..50

source

pub fn set_hwu161(&mut self, value: u64)

Bits: 49..50

source

pub const fn hwu162(&self) -> u64

Bits: 50..51

source

pub const fn with_hwu162(self, value: u64) -> Self

Bits: 50..51

source

pub fn set_hwu162(&mut self, value: u64)

Bits: 50..51

source

pub const fn tbid0(&self) -> u64

Bits: 51..52

source

pub const fn with_tbid0(self, value: u64) -> Self

Bits: 51..52

source

pub fn set_tbid0(&mut self, value: u64)

Bits: 51..52

source

pub const fn tbid1(&self) -> u64

Bits: 52..53

source

pub const fn with_tbid1(self, value: u64) -> Self

Bits: 52..53

source

pub fn set_tbid1(&mut self, value: u64)

Bits: 52..53

source

pub const fn nfd0(&self) -> u64

Bits: 53..54

source

pub const fn with_nfd0(self, value: u64) -> Self

Bits: 53..54

source

pub fn set_nfd0(&mut self, value: u64)

Bits: 53..54

source

pub const fn nfd1(&self) -> u64

Bits: 54..55

source

pub const fn with_nfd1(self, value: u64) -> Self

Bits: 54..55

source

pub fn set_nfd1(&mut self, value: u64)

Bits: 54..55

source

pub const fn e0pd0(&self) -> u64

Bits: 55..56

source

pub const fn with_e0pd0(self, value: u64) -> Self

Bits: 55..56

source

pub fn set_e0pd0(&mut self, value: u64)

Bits: 55..56

source

pub const fn e0pd1(&self) -> u64

Bits: 56..57

source

pub const fn with_e0pd1(self, value: u64) -> Self

Bits: 56..57

source

pub fn set_e0pd1(&mut self, value: u64)

Bits: 56..57

source

pub const fn tcma0(&self) -> u64

Bits: 57..58

source

pub const fn with_tcma0(self, value: u64) -> Self

Bits: 57..58

source

pub fn set_tcma0(&mut self, value: u64)

Bits: 57..58

source

pub const fn tcma1(&self) -> u64

Bits: 58..59

source

pub const fn with_tcma1(self, value: u64) -> Self

Bits: 58..59

source

pub fn set_tcma1(&mut self, value: u64)

Bits: 58..59

source

pub const fn ds(&self) -> u64

Bits: 59..60

source

pub const fn with_ds(self, value: u64) -> Self

Bits: 59..60

source

pub fn set_ds(&mut self, value: u64)

Bits: 59..60

source

pub const fn mtx0(&self) -> u64

Bits: 60..61

source

pub const fn with_mtx0(self, value: u64) -> Self

Bits: 60..61

source

pub fn set_mtx0(&mut self, value: u64)

Bits: 60..61

source

pub const fn mtx1(&self) -> u64

Bits: 61..62

source

pub const fn with_mtx1(self, value: u64) -> Self

Bits: 61..62

source

pub fn set_mtx1(&mut self, value: u64)

Bits: 61..62

source§

impl TranslationControlEl1

Trait Implementations§

source§

impl Clone for TranslationControlEl1

source§

fn clone(&self) -> TranslationControlEl1

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for TranslationControlEl1

source§

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

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

impl Default for TranslationControlEl1

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<TranslationControlEl1> for u64

source§

fn from(v: TranslationControlEl1) -> u64

Converts to this type from the input type.
source§

impl From<u64> for TranslationControlEl1

source§

fn from(v: u64) -> Self

Converts to this type from the input type.
source§

impl PartialEq for TranslationControlEl1

source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for TranslationControlEl1

source§

impl Eq for TranslationControlEl1

source§

impl StructuralPartialEq for TranslationControlEl1

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

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

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

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

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

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<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.