Skip to main content

CounterTimerHypervisorControlRegisterVhe

Struct CounterTimerHypervisorControlRegisterVhe 

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

The layout of [CNTHCTL_EL2] when HCR_EL2.E2H == 1 (FEAT_VHE).

Implementations§

Source§

impl CounterTimerHypervisorControlRegisterVhe

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

Unshifted bitmask of cntpmask.

Source

pub const CNTPMASK_SHIFT: usize = 19

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

Source

pub const CNTVMASK_MASK: u64

Unshifted bitmask of cntvmask.

Source

pub const CNTVMASK_SHIFT: usize = 18

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

Source

pub const EVNTIS_MASK: u64

Unshifted bitmask of evntis.

Source

pub const EVNTIS_SHIFT: usize = 17

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

Source

pub const EL1NVVCT_MASK: u64

Unshifted bitmask of el1nvvct.

Source

pub const EL1NVVCT_SHIFT: usize = 16

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

Source

pub const EL1NVPCT_MASK: u64

Unshifted bitmask of el1nvpct.

Source

pub const EL1NVPCT_SHIFT: usize = 15

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

Source

pub const EL1TVCT_MASK: u64

Unshifted bitmask of el1tvct.

Source

pub const EL1TVCT_SHIFT: usize = 14

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

Source

pub const EL1TVT_MASK: u64

Unshifted bitmask of el1tvt.

Source

pub const EL1TVT_SHIFT: usize = 13

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

Source

pub const ECV_MASK: u64

Unshifted bitmask of ecv.

Source

pub const ECV_SHIFT: usize = 12

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

Source

pub const EL1PTEN_MASK: u64

Unshifted bitmask of el1pten.

Source

pub const EL1PTEN_SHIFT: usize = 11

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

Source

pub const EL1PCTEN_MASK: u64

Unshifted bitmask of el1pcten.

Source

pub const EL1PCTEN_SHIFT: usize = 10

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

Source

pub const EL0PTEN_MASK: u64

Unshifted bitmask of el0pten.

Source

pub const EL0PTEN_SHIFT: usize = 9

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

Source

pub const EL0VTEN_MASK: u64

Unshifted bitmask of el0vten.

Source

pub const EL0VTEN_SHIFT: usize = 8

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

Source

pub const EVNTI_MASK: u64

Unshifted bitmask of evnti.

Source

pub const EVNTI_SHIFT: usize = 4

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

Source

pub const EVNTDIR_MASK: u64

Unshifted bitmask of evntdir.

Source

pub const EVNTDIR_SHIFT: usize = 3

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

Source

pub const EVNTEN_MASK: u64

Unshifted bitmask of evnten.

Source

pub const EVNTEN_SHIFT: usize = 2

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

Source

pub const EL0VCTEN_MASK: u64

Unshifted bitmask of el0vcten.

Source

pub const EL0VCTEN_SHIFT: usize = 1

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

Source

pub const EL0PCTEN_MASK: u64

Unshifted bitmask of el0pcten.

Source

pub const EL0PCTEN_SHIFT: usize = 0

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

Source

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

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

The value of CounterTimerHypervisorControlRegisterVhe19.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe19.

Source

pub const fn cntvmask(&self) -> bool

The value of CounterTimerHypervisorControlRegisterVhe18.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe18.

Source

pub const fn evntis(&self) -> bool

The value of CounterTimerHypervisorControlRegisterVhe17.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe17.

Source

pub const fn el1nvvct(&self) -> bool

The value of CounterTimerHypervisorControlRegisterVhe16.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe16.

Source

pub const fn el1nvpct(&self) -> bool

The value of CounterTimerHypervisorControlRegisterVhe15.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe15.

Source

pub const fn el1tvct(&self) -> bool

The value of CounterTimerHypervisorControlRegisterVhe14.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe14.

Source

pub const fn el1tvt(&self) -> bool

The value of CounterTimerHypervisorControlRegisterVhe13.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe13.

Source

pub const fn ecv(&self) -> bool

The value of CounterTimerHypervisorControlRegisterVhe12.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe12.

Source

pub const fn el1pten(&self) -> bool

The value of CounterTimerHypervisorControlRegisterVhe11.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe11.

Source

pub const fn el1pcten(&self) -> bool

The value of CounterTimerHypervisorControlRegisterVhe10.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe10.

Source

pub const fn el0pten(&self) -> bool

The value of CounterTimerHypervisorControlRegisterVhe9.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe9.

Source

pub const fn el0vten(&self) -> bool

The value of CounterTimerHypervisorControlRegisterVhe8.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe8.

Source

pub const fn evnti(&self) -> u8

The value of CounterTimerHypervisorControlRegisterVhe[7:4].

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe[7:4].

Source

pub const fn evntdir(&self) -> bool

The value of CounterTimerHypervisorControlRegisterVhe3.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe3.

Source

pub const fn evnten(&self) -> bool

The value of CounterTimerHypervisorControlRegisterVhe2.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe2.

Source

pub const fn el0vcten(&self) -> bool

The value of CounterTimerHypervisorControlRegisterVhe1.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe1.

Source

pub const fn el0pcten(&self) -> bool

The value of CounterTimerHypervisorControlRegisterVhe0.

Source

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

Sets the value of CounterTimerHypervisorControlRegisterVhe0.

Source§

impl CounterTimerHypervisorControlRegisterVhe

Source

pub fn iter(&self) -> CounterTimerHypervisorControlRegisterVheIter

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

Trait Implementations§

Source§

impl Binary for CounterTimerHypervisorControlRegisterVhe

Source§

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

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

impl Clone for CounterTimerHypervisorControlRegisterVhe

Source§

fn clone(&self) -> CounterTimerHypervisorControlRegisterVhe

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 CounterTimerHypervisorControlRegisterVhe

Source§

impl Debug for CounterTimerHypervisorControlRegisterVhe

Source§

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

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

impl Default for CounterTimerHypervisorControlRegisterVhe

Source§

fn default() -> Self

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

Source§

impl Eq for CounterTimerHypervisorControlRegisterVhe

Source§

impl From<CounterTimerHypervisorControlRegisterVhe> for u64

Source§

fn from(value: CounterTimerHypervisorControlRegisterVhe) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for CounterTimerHypervisorControlRegisterVhe

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for CounterTimerHypervisorControlRegisterVhe

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = CounterTimerHypervisorControlRegisterVheIter

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 CounterTimerHypervisorControlRegisterVhe

Source§

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

The type of the elements being iterated over.
Source§

type IntoIter = CounterTimerHypervisorControlRegisterVheIter

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 CounterTimerHypervisorControlRegisterVhe

Source§

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

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

impl Octal for CounterTimerHypervisorControlRegisterVhe

Source§

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

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

impl PartialEq for CounterTimerHypervisorControlRegisterVhe

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CounterTimerHypervisorControlRegisterVhe

Source§

impl UpperHex for CounterTimerHypervisorControlRegisterVhe

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.