pub struct PasidInvalidateDw0Dw1(/* private fields */);Expand description
Common low word of PASID-cache and P_IOTLB descriptors (§§6.5.2.2, 6.5.2.4).
Implementations§
Source§impl PasidInvalidateDw0Dw1
impl PasidInvalidateDw0Dw1
Sourcepub const fn desc_type(&self) -> u8
pub const fn desc_type(&self) -> u8
Low four type bits (7 for PASID-cache, 6 for P_IOTLB).
Bits: 0..4
Sourcepub const fn with_desc_type_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_desc_type_checked(self, value: u8) -> Result<Self, ()>
Low four type bits (7 for PASID-cache, 6 for P_IOTLB).
Bits: 0..4
Sourcepub const fn with_desc_type(self, value: u8) -> Self
pub const fn with_desc_type(self, value: u8) -> Self
Low four type bits (7 for PASID-cache, 6 for P_IOTLB).
Bits: 0..4
Sourcepub const fn set_desc_type(&mut self, value: u8)
pub const fn set_desc_type(&mut self, value: u8)
Low four type bits (7 for PASID-cache, 6 for P_IOTLB).
Bits: 0..4
Sourcepub const fn set_desc_type_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_desc_type_checked(&mut self, value: u8) -> Result<(), ()>
Low four type bits (7 for PASID-cache, 6 for P_IOTLB).
Bits: 0..4
Sourcepub const fn granularity(&self) -> u8
pub const fn granularity(&self) -> u8
PASID-cache: 0=domain, 1=PASID, 3=global; P_IOTLB: 2=PASID, 3=page.
Bits: 4..6
Sourcepub const fn with_granularity_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_granularity_checked(self, value: u8) -> Result<Self, ()>
PASID-cache: 0=domain, 1=PASID, 3=global; P_IOTLB: 2=PASID, 3=page.
Bits: 4..6
Sourcepub const fn with_granularity(self, value: u8) -> Self
pub const fn with_granularity(self, value: u8) -> Self
PASID-cache: 0=domain, 1=PASID, 3=global; P_IOTLB: 2=PASID, 3=page.
Bits: 4..6
Sourcepub const fn set_granularity(&mut self, value: u8)
pub const fn set_granularity(&mut self, value: u8)
PASID-cache: 0=domain, 1=PASID, 3=global; P_IOTLB: 2=PASID, 3=page.
Bits: 4..6
Sourcepub const fn set_granularity_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_granularity_checked(&mut self, value: u8) -> Result<(), ()>
PASID-cache: 0=domain, 1=PASID, 3=global; P_IOTLB: 2=PASID, 3=page.
Bits: 4..6
Sourcepub const fn with_type_hi_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_type_hi_checked(self, value: u8) -> Result<Self, ()>
Upper three type bits.
Bits: 9..12
Sourcepub const fn with_type_hi(self, value: u8) -> Self
pub const fn with_type_hi(self, value: u8) -> Self
Upper three type bits.
Bits: 9..12
Sourcepub const fn set_type_hi(&mut self, value: u8)
pub const fn set_type_hi(&mut self, value: u8)
Upper three type bits.
Bits: 9..12
Sourcepub const fn set_type_hi_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_type_hi_checked(&mut self, value: u8) -> Result<(), ()>
Upper three type bits.
Bits: 9..12
Sourcepub const fn with_did_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_did_checked(self, value: u16) -> Result<Self, ()>
Domain ID.
Bits: 16..32
Sourcepub const fn with_pasid_checked(self, value: u32) -> Result<Self, ()>
pub const fn with_pasid_checked(self, value: u32) -> Result<Self, ()>
PASID, including an implied RID_PASID.
Bits: 32..52
Sourcepub const fn with_pasid(self, value: u32) -> Self
pub const fn with_pasid(self, value: u32) -> Self
PASID, including an implied RID_PASID.
Bits: 32..52
Trait Implementations§
Source§impl Clone for PasidInvalidateDw0Dw1
impl Clone for PasidInvalidateDw0Dw1
Source§fn clone(&self) -> PasidInvalidateDw0Dw1
fn clone(&self) -> PasidInvalidateDw0Dw1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more