pub struct CounterTimerHypervisorControlRegisterVhe(/* private fields */);Expand description
The layout of [CNTHCTL_EL2] when HCR_EL2.E2H == 1 (FEAT_VHE).
Implementations§
Source§impl CounterTimerHypervisorControlRegisterVhe
impl CounterTimerHypervisorControlRegisterVhe
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 CNTPMASK_MASK: u64
pub const CNTPMASK_MASK: u64
Unshifted bitmask of cntpmask.
Sourcepub const CNTPMASK_SHIFT: usize = 19
pub const CNTPMASK_SHIFT: usize = 19
Bit shift (i.e., the low bit) of cntpmask.
Sourcepub const CNTVMASK_MASK: u64
pub const CNTVMASK_MASK: u64
Unshifted bitmask of cntvmask.
Sourcepub const CNTVMASK_SHIFT: usize = 18
pub const CNTVMASK_SHIFT: usize = 18
Bit shift (i.e., the low bit) of cntvmask.
Sourcepub const EVNTIS_MASK: u64
pub const EVNTIS_MASK: u64
Unshifted bitmask of evntis.
Sourcepub const EVNTIS_SHIFT: usize = 17
pub const EVNTIS_SHIFT: usize = 17
Bit shift (i.e., the low bit) of evntis.
Sourcepub const EL1NVVCT_MASK: u64
pub const EL1NVVCT_MASK: u64
Unshifted bitmask of el1nvvct.
Sourcepub const EL1NVVCT_SHIFT: usize = 16
pub const EL1NVVCT_SHIFT: usize = 16
Bit shift (i.e., the low bit) of el1nvvct.
Sourcepub const EL1NVPCT_MASK: u64
pub const EL1NVPCT_MASK: u64
Unshifted bitmask of el1nvpct.
Sourcepub const EL1NVPCT_SHIFT: usize = 15
pub const EL1NVPCT_SHIFT: usize = 15
Bit shift (i.e., the low bit) of el1nvpct.
Sourcepub const EL1TVCT_MASK: u64
pub const EL1TVCT_MASK: u64
Unshifted bitmask of el1tvct.
Sourcepub const EL1TVCT_SHIFT: usize = 14
pub const EL1TVCT_SHIFT: usize = 14
Bit shift (i.e., the low bit) of el1tvct.
Sourcepub const EL1TVT_MASK: u64
pub const EL1TVT_MASK: u64
Unshifted bitmask of el1tvt.
Sourcepub const EL1TVT_SHIFT: usize = 13
pub const EL1TVT_SHIFT: usize = 13
Bit shift (i.e., the low bit) of el1tvt.
Sourcepub const EL1PTEN_MASK: u64
pub const EL1PTEN_MASK: u64
Unshifted bitmask of el1pten.
Sourcepub const EL1PTEN_SHIFT: usize = 11
pub const EL1PTEN_SHIFT: usize = 11
Bit shift (i.e., the low bit) of el1pten.
Sourcepub const EL1PCTEN_MASK: u64
pub const EL1PCTEN_MASK: u64
Unshifted bitmask of el1pcten.
Sourcepub const EL1PCTEN_SHIFT: usize = 10
pub const EL1PCTEN_SHIFT: usize = 10
Bit shift (i.e., the low bit) of el1pcten.
Sourcepub const EL0PTEN_MASK: u64
pub const EL0PTEN_MASK: u64
Unshifted bitmask of el0pten.
Sourcepub const EL0PTEN_SHIFT: usize = 9
pub const EL0PTEN_SHIFT: usize = 9
Bit shift (i.e., the low bit) of el0pten.
Sourcepub const EL0VTEN_MASK: u64
pub const EL0VTEN_MASK: u64
Unshifted bitmask of el0vten.
Sourcepub const EL0VTEN_SHIFT: usize = 8
pub const EL0VTEN_SHIFT: usize = 8
Bit shift (i.e., the low bit) of el0vten.
Sourcepub const EVNTI_MASK: u64
pub const EVNTI_MASK: u64
Unshifted bitmask of evnti.
Sourcepub const EVNTI_SHIFT: usize = 4
pub const EVNTI_SHIFT: usize = 4
Bit shift (i.e., the low bit) of evnti.
Sourcepub const EVNTDIR_MASK: u64
pub const EVNTDIR_MASK: u64
Unshifted bitmask of evntdir.
Sourcepub const EVNTDIR_SHIFT: usize = 3
pub const EVNTDIR_SHIFT: usize = 3
Bit shift (i.e., the low bit) of evntdir.
Sourcepub const EVNTEN_MASK: u64
pub const EVNTEN_MASK: u64
Unshifted bitmask of evnten.
Sourcepub const EVNTEN_SHIFT: usize = 2
pub const EVNTEN_SHIFT: usize = 2
Bit shift (i.e., the low bit) of evnten.
Sourcepub const EL0VCTEN_MASK: u64
pub const EL0VCTEN_MASK: u64
Unshifted bitmask of el0vcten.
Sourcepub const EL0VCTEN_SHIFT: usize = 1
pub const EL0VCTEN_SHIFT: usize = 1
Bit shift (i.e., the low bit) of el0vcten.
Sourcepub const EL0PCTEN_MASK: u64
pub const EL0PCTEN_MASK: u64
Unshifted bitmask of el0pcten.
Sourcepub const EL0PCTEN_SHIFT: usize = 0
pub const EL0PCTEN_SHIFT: usize = 0
Bit shift (i.e., the low bit) of el0pcten.
Sourcepub const FIELDS: [FieldMetadata<u64>; 17]
pub const FIELDS: [FieldMetadata<u64>; 17]
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_cntpmask(&mut self, value: bool) -> &mut Self
pub const fn set_cntpmask(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe19.
Sourcepub const fn set_cntvmask(&mut self, value: bool) -> &mut Self
pub const fn set_cntvmask(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe18.
Sourcepub const fn set_evntis(&mut self, value: bool) -> &mut Self
pub const fn set_evntis(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe17.
Sourcepub const fn set_el1nvvct(&mut self, value: bool) -> &mut Self
pub const fn set_el1nvvct(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe16.
Sourcepub const fn set_el1nvpct(&mut self, value: bool) -> &mut Self
pub const fn set_el1nvpct(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe15.
Sourcepub const fn set_el1tvct(&mut self, value: bool) -> &mut Self
pub const fn set_el1tvct(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe14.
Sourcepub const fn set_el1tvt(&mut self, value: bool) -> &mut Self
pub const fn set_el1tvt(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe13.
Sourcepub const fn set_ecv(&mut self, value: bool) -> &mut Self
pub const fn set_ecv(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe12.
Sourcepub const fn set_el1pten(&mut self, value: bool) -> &mut Self
pub const fn set_el1pten(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe11.
Sourcepub const fn set_el1pcten(&mut self, value: bool) -> &mut Self
pub const fn set_el1pcten(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe10.
Sourcepub const fn set_el0pten(&mut self, value: bool) -> &mut Self
pub const fn set_el0pten(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe9.
Sourcepub const fn set_el0vten(&mut self, value: bool) -> &mut Self
pub const fn set_el0vten(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe8.
Sourcepub const fn set_evnti(&mut self, value: u8) -> &mut Self
pub const fn set_evnti(&mut self, value: u8) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe[7:4].
Sourcepub const fn set_evntdir(&mut self, value: bool) -> &mut Self
pub const fn set_evntdir(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe3.
Sourcepub const fn set_evnten(&mut self, value: bool) -> &mut Self
pub const fn set_evnten(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe2.
Sourcepub const fn set_el0vcten(&mut self, value: bool) -> &mut Self
pub const fn set_el0vcten(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe1.
Sourcepub const fn set_el0pcten(&mut self, value: bool) -> &mut Self
pub const fn set_el0pcten(&mut self, value: bool) -> &mut Self
Sets the value of CounterTimerHypervisorControlRegisterVhe0.
Trait Implementations§
Source§impl Binary for CounterTimerHypervisorControlRegisterVhe
impl Binary for CounterTimerHypervisorControlRegisterVhe
Source§impl Clone for CounterTimerHypervisorControlRegisterVhe
impl Clone for CounterTimerHypervisorControlRegisterVhe
Source§fn clone(&self) -> CounterTimerHypervisorControlRegisterVhe
fn clone(&self) -> CounterTimerHypervisorControlRegisterVhe
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CounterTimerHypervisorControlRegisterVhe
Source§impl Debug for CounterTimerHypervisorControlRegisterVhe
impl Debug for CounterTimerHypervisorControlRegisterVhe
Source§impl Default for CounterTimerHypervisorControlRegisterVhe
impl Default for CounterTimerHypervisorControlRegisterVhe
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 CounterTimerHypervisorControlRegisterVhe
Source§impl From<CounterTimerHypervisorControlRegisterVhe> for u64
impl From<CounterTimerHypervisorControlRegisterVhe> for u64
Source§fn from(value: CounterTimerHypervisorControlRegisterVhe) -> Self
fn from(value: CounterTimerHypervisorControlRegisterVhe) -> Self
Source§impl From<u64> for CounterTimerHypervisorControlRegisterVhe
impl From<u64> for CounterTimerHypervisorControlRegisterVhe
Source§impl IntoIterator for CounterTimerHypervisorControlRegisterVhe
impl IntoIterator for CounterTimerHypervisorControlRegisterVhe
Source§impl<'a> IntoIterator for &'a CounterTimerHypervisorControlRegisterVhe
impl<'a> IntoIterator for &'a CounterTimerHypervisorControlRegisterVhe
Source§impl LowerHex for CounterTimerHypervisorControlRegisterVhe
impl LowerHex for CounterTimerHypervisorControlRegisterVhe
Source§impl Octal for CounterTimerHypervisorControlRegisterVhe
impl Octal for CounterTimerHypervisorControlRegisterVhe
Source§impl PartialEq for CounterTimerHypervisorControlRegisterVhe
impl PartialEq for CounterTimerHypervisorControlRegisterVhe
impl StructuralPartialEq for CounterTimerHypervisorControlRegisterVhe
Auto Trait Implementations§
impl Freeze for CounterTimerHypervisorControlRegisterVhe
impl RefUnwindSafe for CounterTimerHypervisorControlRegisterVhe
impl Send for CounterTimerHypervisorControlRegisterVhe
impl Sync for CounterTimerHypervisorControlRegisterVhe
impl Unpin for CounterTimerHypervisorControlRegisterVhe
impl UnsafeUnpin for CounterTimerHypervisorControlRegisterVhe
impl UnwindSafe for CounterTimerHypervisorControlRegisterVhe
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)