pub struct ContextCacheInvalidateDw0Dw1(/* private fields */);Expand description
Context-Cache Invalidation Descriptor (type 0x01, §6.5.2.1).
Bits [3:0] = Type (0x01)
Bits [5:4] = Granularity (01=global, 10=domain, 11=device)
Bits [8:6] = reserved
Bits [11:9] = Type[6:4] (zero)
Bits [15:12] = reserved
Bits [31:16] = Domain ID (for domain/device granularity)
Bits [47:32] = Source ID (for device granularity)
Bits [49:48] = Function Mask (for device granularity)
Bits [63:50] = reserved
Bits [127:64]= reservedImplementations§
Source§impl ContextCacheInvalidateDw0Dw1
impl ContextCacheInvalidateDw0Dw1
Sourcepub const fn with_desc_type_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_desc_type_checked(self, value: u8) -> Result<Self, ()>
Descriptor type (must be 0x01).
Bits: 0..4
Sourcepub const fn with_desc_type(self, value: u8) -> Self
pub const fn with_desc_type(self, value: u8) -> Self
Descriptor type (must be 0x01).
Bits: 0..4
Sourcepub const fn set_desc_type(&mut self, value: u8)
pub const fn set_desc_type(&mut self, value: u8)
Descriptor type (must be 0x01).
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<(), ()>
Descriptor type (must be 0x01).
Bits: 0..4
Sourcepub const fn granularity(&self) -> u8
pub const fn granularity(&self) -> u8
Invalidation granularity: 01=global, 10=domain, 11=device.
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, ()>
Invalidation granularity: 01=global, 10=domain, 11=device.
Bits: 4..6
Sourcepub const fn with_granularity(self, value: u8) -> Self
pub const fn with_granularity(self, value: u8) -> Self
Invalidation granularity: 01=global, 10=domain, 11=device.
Bits: 4..6
Sourcepub const fn set_granularity(&mut self, value: u8)
pub const fn set_granularity(&mut self, value: u8)
Invalidation granularity: 01=global, 10=domain, 11=device.
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<(), ()>
Invalidation granularity: 01=global, 10=domain, 11=device.
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 bits of the descriptor type.
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 bits of the descriptor type.
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 bits of the descriptor type.
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 bits of the descriptor type.
Bits: 9..12
Sourcepub const fn did(&self) -> u16
pub const fn did(&self) -> u16
Domain ID (for domain-selective and device-selective invalidation).
Bits: 16..32
Sourcepub const fn with_did_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_did_checked(self, value: u16) -> Result<Self, ()>
Domain ID (for domain-selective and device-selective invalidation).
Bits: 16..32
Sourcepub const fn with_did(self, value: u16) -> Self
pub const fn with_did(self, value: u16) -> Self
Domain ID (for domain-selective and device-selective invalidation).
Bits: 16..32
Sourcepub const fn set_did(&mut self, value: u16)
pub const fn set_did(&mut self, value: u16)
Domain ID (for domain-selective and device-selective invalidation).
Bits: 16..32
Sourcepub const fn set_did_checked(&mut self, value: u16) -> Result<(), ()>
pub const fn set_did_checked(&mut self, value: u16) -> Result<(), ()>
Domain ID (for domain-selective and device-selective invalidation).
Bits: 16..32
Sourcepub const fn with_sid_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_sid_checked(self, value: u16) -> Result<Self, ()>
Source ID (for device-selective invalidation).
Bits: 32..48
Sourcepub const fn with_sid(self, value: u16) -> Self
pub const fn with_sid(self, value: u16) -> Self
Source ID (for device-selective invalidation).
Bits: 32..48
Sourcepub const fn set_sid(&mut self, value: u16)
pub const fn set_sid(&mut self, value: u16)
Source ID (for device-selective invalidation).
Bits: 32..48
Sourcepub const fn set_sid_checked(&mut self, value: u16) -> Result<(), ()>
pub const fn set_sid_checked(&mut self, value: u16) -> Result<(), ()>
Source ID (for device-selective invalidation).
Bits: 32..48
Sourcepub const fn with_fm_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_fm_checked(self, value: u8) -> Result<Self, ()>
Function Mask for device-selective invalidation.
Bits: 48..50
Sourcepub const fn with_fm(self, value: u8) -> Self
pub const fn with_fm(self, value: u8) -> Self
Function Mask for device-selective invalidation.
Bits: 48..50
Trait Implementations§
Source§impl Clone for ContextCacheInvalidateDw0Dw1
impl Clone for ContextCacheInvalidateDw0Dw1
Source§fn clone(&self) -> ContextCacheInvalidateDw0Dw1
fn clone(&self) -> ContextCacheInvalidateDw0Dw1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more