pub struct ScalableContextEntryLo(/* private fields */);Expand description
Scalable context bits 63:0.
Implementations§
Source§impl ScalableContextEntryLo
impl ScalableContextEntryLo
Sourcepub const fn with_p_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_p_checked(self, value: bool) -> Result<Self, ()>
Present.
Bits: 0..1
Sourcepub const fn with_fpd_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_fpd_checked(self, value: bool) -> Result<Self, ()>
Evaluated even when P=0.
Bits: 1..2
Sourcepub const fn set_fpd_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_fpd_checked(&mut self, value: bool) -> Result<(), ()>
Evaluated even when P=0.
Bits: 1..2
Sourcepub const fn with_dte_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_dte_checked(self, value: bool) -> Result<Self, ()>
Device-TLB enable; reserved-zero without ATS.
Bits: 2..3
Sourcepub const fn with_dte(self, value: bool) -> Self
pub const fn with_dte(self, value: bool) -> Self
Device-TLB enable; reserved-zero without ATS.
Bits: 2..3
Sourcepub const fn set_dte(&mut self, value: bool)
pub const fn set_dte(&mut self, value: bool)
Device-TLB enable; reserved-zero without ATS.
Bits: 2..3
Sourcepub const fn set_dte_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_dte_checked(&mut self, value: bool) -> Result<(), ()>
Device-TLB enable; reserved-zero without ATS.
Bits: 2..3
Sourcepub const fn paside(&self) -> bool
pub const fn paside(&self) -> bool
Explicit PASID enable; does not govern requests without PASID.
Bits: 3..4
Sourcepub const fn with_paside_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_paside_checked(self, value: bool) -> Result<Self, ()>
Explicit PASID enable; does not govern requests without PASID.
Bits: 3..4
Sourcepub const fn with_paside(self, value: bool) -> Self
pub const fn with_paside(self, value: bool) -> Self
Explicit PASID enable; does not govern requests without PASID.
Bits: 3..4
Sourcepub const fn set_paside(&mut self, value: bool)
pub const fn set_paside(&mut self, value: bool)
Explicit PASID enable; does not govern requests without PASID.
Bits: 3..4
Sourcepub const fn set_paside_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_paside_checked(&mut self, value: bool) -> Result<(), ()>
Explicit PASID enable; does not govern requests without PASID.
Bits: 3..4
Sourcepub const fn with_pre_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_pre_checked(self, value: bool) -> Result<Self, ()>
Page request enable; reserved-zero without PRI.
Bits: 4..5
Sourcepub const fn with_pre(self, value: bool) -> Self
pub const fn with_pre(self, value: bool) -> Self
Page request enable; reserved-zero without PRI.
Bits: 4..5
Sourcepub const fn set_pre(&mut self, value: bool)
pub const fn set_pre(&mut self, value: bool)
Page request enable; reserved-zero without PRI.
Bits: 4..5
Sourcepub const fn set_pre_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_pre_checked(&mut self, value: bool) -> Result<(), ()>
Page request enable; reserved-zero without PRI.
Bits: 4..5
Sourcepub const fn with_pdts_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_pdts_checked(self, value: u8) -> Result<Self, ()>
Directory size: 2^(PDTS+7) entries.
Bits: 9..12
Sourcepub const fn with_pdts(self, value: u8) -> Self
pub const fn with_pdts(self, value: u8) -> Self
Directory size: 2^(PDTS+7) entries.
Bits: 9..12
Sourcepub const fn set_pdts_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_pdts_checked(&mut self, value: u8) -> Result<(), ()>
Directory size: 2^(PDTS+7) entries.
Bits: 9..12
Sourcepub const fn pasiddirptr(&self) -> u64
pub const fn pasiddirptr(&self) -> u64
PASID directory address, bits 63:12.
Bits: 12..64
Sourcepub const fn with_pasiddirptr_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_pasiddirptr_checked(self, value: u64) -> Result<Self, ()>
PASID directory address, bits 63:12.
Bits: 12..64
Sourcepub const fn with_pasiddirptr(self, value: u64) -> Self
pub const fn with_pasiddirptr(self, value: u64) -> Self
PASID directory address, bits 63:12.
Bits: 12..64
Sourcepub const fn set_pasiddirptr(&mut self, value: u64)
pub const fn set_pasiddirptr(&mut self, value: u64)
PASID directory address, bits 63:12.
Bits: 12..64
Trait Implementations§
Source§impl Clone for ScalableContextEntryLo
impl Clone for ScalableContextEntryLo
Source§fn clone(&self) -> ScalableContextEntryLo
fn clone(&self) -> ScalableContextEntryLo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScalableContextEntryLo
impl Debug for ScalableContextEntryLo
Source§impl Default for ScalableContextEntryLo
impl Default for ScalableContextEntryLo
Source§impl From<ScalableContextEntryLo> for u64
impl From<ScalableContextEntryLo> for u64
Source§fn from(v: ScalableContextEntryLo) -> u64
fn from(v: ScalableContextEntryLo) -> u64
Source§impl From<u64> for ScalableContextEntryLo
impl From<u64> for ScalableContextEntryLo
Source§impl FromBytes for ScalableContextEntryLowhere
u64: FromBytes,
impl FromBytes for ScalableContextEntryLowhere
u64: FromBytes,
§fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
&Self. Read more§fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Source§impl FromZeros for ScalableContextEntryLowhere
u64: FromZeros,
impl FromZeros for ScalableContextEntryLowhere
u64: FromZeros,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Self from zeroed bytes. Read more§fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
Box<Self> from zeroed bytes. Read more§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
Vec<Self> from zeroed bytes. Read moreSource§impl Inspect for ScalableContextEntryLo
impl Inspect for ScalableContextEntryLo
Source§impl IntoBytes for ScalableContextEntryLowhere
u64: IntoBytes,
impl IntoBytes for ScalableContextEntryLowhere
u64: IntoBytes,
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl KnownLayout for ScalableContextEntryLowhere
Self: Sized,
impl KnownLayout for ScalableContextEntryLowhere
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
Self. Read more§fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
Self with the given pointer
metadata. Read more