pub struct CcmdReg(/* private fields */);Expand description
Context Command Register (MMIO offset 0x028, 64-bit, RW). §10.4.7.
Register-based context-cache invalidation (used before QI is enabled).
Implementations§
Source§impl CcmdReg
impl CcmdReg
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 invalidation.
Bits: 0..16
Sourcepub const fn with_did(self, value: u16) -> Self
pub const fn with_did(self, value: u16) -> Self
Domain ID for domain-selective invalidation.
Bits: 0..16
Sourcepub const fn set_did(&mut self, value: u16)
pub const fn set_did(&mut self, value: u16)
Domain ID for domain-selective invalidation.
Bits: 0..16
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 invalidation.
Bits: 0..16
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: 16..32
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: 16..32
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: 16..32
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: 16..32
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: 32..34
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: 32..34
Sourcepub const fn set_fm(&mut self, value: u8)
pub const fn set_fm(&mut self, value: u8)
Function Mask for device-selective invalidation.
Bits: 32..34
Sourcepub const fn set_fm_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_fm_checked(&mut self, value: u8) -> Result<(), ()>
Function Mask for device-selective invalidation.
Bits: 32..34
Sourcepub const fn caig(&self) -> u8
pub const fn caig(&self) -> u8
Context Actual Invalidation Granularity (RO, set by HW).
Bits: 59..61
Sourcepub const fn with_caig_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_caig_checked(self, value: u8) -> Result<Self, ()>
Context Actual Invalidation Granularity (RO, set by HW).
Bits: 59..61
Sourcepub const fn with_caig(self, value: u8) -> Self
pub const fn with_caig(self, value: u8) -> Self
Context Actual Invalidation Granularity (RO, set by HW).
Bits: 59..61
Sourcepub const fn set_caig(&mut self, value: u8)
pub const fn set_caig(&mut self, value: u8)
Context Actual Invalidation Granularity (RO, set by HW).
Bits: 59..61
Sourcepub const fn set_caig_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_caig_checked(&mut self, value: u8) -> Result<(), ()>
Context Actual Invalidation Granularity (RO, set by HW).
Bits: 59..61
Sourcepub const fn cirg(&self) -> u8
pub const fn cirg(&self) -> u8
Context Invalidation Request Granularity. 01=global, 10=domain, 11=device.
Bits: 61..63
Sourcepub const fn with_cirg_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_cirg_checked(self, value: u8) -> Result<Self, ()>
Context Invalidation Request Granularity. 01=global, 10=domain, 11=device.
Bits: 61..63
Sourcepub const fn with_cirg(self, value: u8) -> Self
pub const fn with_cirg(self, value: u8) -> Self
Context Invalidation Request Granularity. 01=global, 10=domain, 11=device.
Bits: 61..63
Sourcepub const fn set_cirg(&mut self, value: u8)
pub const fn set_cirg(&mut self, value: u8)
Context Invalidation Request Granularity. 01=global, 10=domain, 11=device.
Bits: 61..63
Sourcepub const fn set_cirg_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_cirg_checked(&mut self, value: u8) -> Result<(), ()>
Context Invalidation Request Granularity. 01=global, 10=domain, 11=device.
Bits: 61..63
Sourcepub const fn icc(&self) -> bool
pub const fn icc(&self) -> bool
Invalidate Context-Cache — set by SW, cleared by HW when done.
Bits: 63..64
Sourcepub const fn with_icc_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_icc_checked(self, value: bool) -> Result<Self, ()>
Invalidate Context-Cache — set by SW, cleared by HW when done.
Bits: 63..64
Sourcepub const fn with_icc(self, value: bool) -> Self
pub const fn with_icc(self, value: bool) -> Self
Invalidate Context-Cache — set by SW, cleared by HW when done.
Bits: 63..64