Skip to main content

InvalidationWaitDw0Dw1

Struct InvalidationWaitDw0Dw1 

Source
pub struct InvalidationWaitDw0Dw1(/* private fields */);
Expand description

Invalidation Wait Descriptor (type 0x05, §6.5.2.8).

SW and IF independently request completion notifications; both may be disabled. FN controls following-descriptor ordering, not notification (§6.5.2.11). This implementation accepts SW=IF=FN=0 as a wait without notification or fence; §7.10 also gives an explicit fence-only example.

Bits [3:0]   = Type (0x05)
Bit  [4]     = IF (Interrupt Flag — generate invalidation completion event)
Bit  [5]     = SW (Status Write — write status data to status address)
Bit  [6]     = FN (Fence — complete this wait before following descriptors)
Bit  [7]     = PD (Page-request Drain)
Bit  [8]     = reserved
Bits [11:9]  = Type[6:4] (zero)
Bits [31:12] = reserved
Bits [63:32] = Status Data (32-bit value to write)
Bits [65:64] = reserved
Bits [127:66]= Status Address [63:2] (DWORD-aligned)

Implementations§

Source§

impl InvalidationWaitDw0Dw1

Source

pub const fn new() -> Self

Creates a new default initialized bitfield.

Source

pub const fn from_bits(bits: u64) -> Self

Convert from bits.

Source

pub const fn into_bits(self) -> u64

Convert into bits.

Source

pub const fn desc_type(&self) -> u8

Descriptor type (must be 0x05).

Bits: 0..4

Source

pub const fn with_desc_type_checked(self, value: u8) -> Result<Self, ()>

Descriptor type (must be 0x05).

Bits: 0..4

Source

pub const fn with_desc_type(self, value: u8) -> Self

Descriptor type (must be 0x05).

Bits: 0..4

Source

pub const fn set_desc_type(&mut self, value: u8)

Descriptor type (must be 0x05).

Bits: 0..4

Source

pub const fn set_desc_type_checked(&mut self, value: u8) -> Result<(), ()>

Descriptor type (must be 0x05).

Bits: 0..4

Source

pub const fn iflag(&self) -> bool

Interrupt Flag — 1 = generate invalidation completion event; 0 = no event.

Bits: 4..5

Source

pub const fn with_iflag_checked(self, value: bool) -> Result<Self, ()>

Interrupt Flag — 1 = generate invalidation completion event; 0 = no event.

Bits: 4..5

Source

pub const fn with_iflag(self, value: bool) -> Self

Interrupt Flag — 1 = generate invalidation completion event; 0 = no event.

Bits: 4..5

Source

pub const fn set_iflag(&mut self, value: bool)

Interrupt Flag — 1 = generate invalidation completion event; 0 = no event.

Bits: 4..5

Source

pub const fn set_iflag_checked(&mut self, value: bool) -> Result<(), ()>

Interrupt Flag — 1 = generate invalidation completion event; 0 = no event.

Bits: 4..5

Source

pub const fn sw(&self) -> bool

Status Write — 1 = write status_data to status_address; 0 = ignore both.

Bits: 5..6

Source

pub const fn with_sw_checked(self, value: bool) -> Result<Self, ()>

Status Write — 1 = write status_data to status_address; 0 = ignore both.

Bits: 5..6

Source

pub const fn with_sw(self, value: bool) -> Self

Status Write — 1 = write status_data to status_address; 0 = ignore both.

Bits: 5..6

Source

pub const fn set_sw(&mut self, value: bool)

Status Write — 1 = write status_data to status_address; 0 = ignore both.

Bits: 5..6

Source

pub const fn set_sw_checked(&mut self, value: bool) -> Result<(), ()>

Status Write — 1 = write status_data to status_address; 0 = ignore both.

Bits: 5..6

Source

pub const fn fn_flag(&self) -> bool

Fence — 1 = complete this wait before executing following descriptors. If 0, following descriptors may execute before this wait completes.

Bits: 6..7

Source

pub const fn with_fn_flag_checked(self, value: bool) -> Result<Self, ()>

Fence — 1 = complete this wait before executing following descriptors. If 0, following descriptors may execute before this wait completes.

Bits: 6..7

Source

pub const fn with_fn_flag(self, value: bool) -> Self

Fence — 1 = complete this wait before executing following descriptors. If 0, following descriptors may execute before this wait completes.

Bits: 6..7

Source

pub const fn set_fn_flag(&mut self, value: bool)

Fence — 1 = complete this wait before executing following descriptors. If 0, following descriptors may execute before this wait completes.

Bits: 6..7

Source

pub const fn set_fn_flag_checked(&mut self, value: bool) -> Result<(), ()>

Fence — 1 = complete this wait before executing following descriptors. If 0, following descriptors may execute before this wait completes.

Bits: 6..7

Source

pub const fn pd(&self) -> bool

Page-request Drain.

Bits: 7..8

Source

pub const fn with_pd_checked(self, value: bool) -> Result<Self, ()>

Page-request Drain.

Bits: 7..8

Source

pub const fn with_pd(self, value: bool) -> Self

Page-request Drain.

Bits: 7..8

Source

pub const fn set_pd(&mut self, value: bool)

Page-request Drain.

Bits: 7..8

Source

pub const fn set_pd_checked(&mut self, value: bool) -> Result<(), ()>

Page-request Drain.

Bits: 7..8

Source

pub const fn type_hi(&self) -> u8

Upper three bits of the descriptor type (zero for this type).

Bits: 9..12

Source

pub const fn with_type_hi_checked(self, value: u8) -> Result<Self, ()>

Upper three bits of the descriptor type (zero for this type).

Bits: 9..12

Source

pub const fn with_type_hi(self, value: u8) -> Self

Upper three bits of the descriptor type (zero for this type).

Bits: 9..12

Source

pub const fn set_type_hi(&mut self, value: u8)

Upper three bits of the descriptor type (zero for this type).

Bits: 9..12

Source

pub const fn set_type_hi_checked(&mut self, value: u8) -> Result<(), ()>

Upper three bits of the descriptor type (zero for this type).

Bits: 9..12

Source

pub const fn status_data(&self) -> u32

Status Data (32-bit value to write when SW=1).

Bits: 32..64

Source

pub const fn with_status_data_checked(self, value: u32) -> Result<Self, ()>

Status Data (32-bit value to write when SW=1).

Bits: 32..64

Source

pub const fn with_status_data(self, value: u32) -> Self

Status Data (32-bit value to write when SW=1).

Bits: 32..64

Source

pub const fn set_status_data(&mut self, value: u32)

Status Data (32-bit value to write when SW=1).

Bits: 32..64

Source

pub const fn set_status_data_checked(&mut self, value: u32) -> Result<(), ()>

Status Data (32-bit value to write when SW=1).

Bits: 32..64

Trait Implementations§

Source§

impl Clone for InvalidationWaitDw0Dw1

Source§

fn clone(&self) -> InvalidationWaitDw0Dw1

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InvalidationWaitDw0Dw1

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for InvalidationWaitDw0Dw1

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<InvalidationWaitDw0Dw1> for u64

Source§

fn from(v: InvalidationWaitDw0Dw1) -> u64

Converts to this type from the input type.
Source§

impl From<u64> for InvalidationWaitDw0Dw1

Source§

fn from(v: u64) -> Self

Converts to this type from the input type.
Source§

impl Inspect for InvalidationWaitDw0Dw1

Source§

fn inspect(&self, req: Request<'_>)

Inspects the object.
Source§

impl Copy for InvalidationWaitDw0Dw1

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more