Skip to main content

PasidInvalidateDw0Dw1

Struct PasidInvalidateDw0Dw1 

Source
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

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

Low four type bits (7 for PASID-cache, 6 for P_IOTLB).

Bits: 0..4

Source

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

Source

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

Source

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

Source

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

Source

pub const fn granularity(&self) -> u8

PASID-cache: 0=domain, 1=PASID, 3=global; P_IOTLB: 2=PASID, 3=page.

Bits: 4..6

Source

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

Source

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

Source

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

Source

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

Source

pub const fn type_hi(&self) -> u8

Upper three type bits.

Bits: 9..12

Source

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

Upper three type bits.

Bits: 9..12

Source

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

Upper three type bits.

Bits: 9..12

Source

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

Upper three type bits.

Bits: 9..12

Source

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

Upper three type bits.

Bits: 9..12

Source

pub const fn did(&self) -> u16

Domain ID.

Bits: 16..32

Source

pub const fn with_did_checked(self, value: u16) -> Result<Self, ()>

Domain ID.

Bits: 16..32

Source

pub const fn with_did(self, value: u16) -> Self

Domain ID.

Bits: 16..32

Source

pub const fn set_did(&mut self, value: u16)

Domain ID.

Bits: 16..32

Source

pub const fn set_did_checked(&mut self, value: u16) -> Result<(), ()>

Domain ID.

Bits: 16..32

Source

pub const fn pasid(&self) -> u32

PASID, including an implied RID_PASID.

Bits: 32..52

Source

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

PASID, including an implied RID_PASID.

Bits: 32..52

Source

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

PASID, including an implied RID_PASID.

Bits: 32..52

Source

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

PASID, including an implied RID_PASID.

Bits: 32..52

Source

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

PASID, including an implied RID_PASID.

Bits: 32..52

Trait Implementations§

Source§

impl Clone for PasidInvalidateDw0Dw1

Source§

fn clone(&self) -> PasidInvalidateDw0Dw1

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 PasidInvalidateDw0Dw1

Source§

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

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

impl Default for PasidInvalidateDw0Dw1

Source§

fn default() -> Self

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

impl From<PasidInvalidateDw0Dw1> for u64

Source§

fn from(v: PasidInvalidateDw0Dw1) -> u64

Converts to this type from the input type.
Source§

impl From<u64> for PasidInvalidateDw0Dw1

Source§

fn from(v: u64) -> Self

Converts to this type from the input type.
Source§

impl Inspect for PasidInvalidateDw0Dw1

Source§

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

Inspects the object.
Source§

impl Copy for PasidInvalidateDw0Dw1

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