pub struct Dcisw(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl Dcisw
impl Dcisw
Sourcepub const fn new<const A: usize, const N: usize>(
way: u8,
set: u16,
level: u3,
) -> Self
pub const fn new<const A: usize, const N: usize>( way: u8, set: u16, level: u3, ) -> Self
Create DCISW value for cache invalidation by set and way.
§Generics
- A: log2(ASSOCIATIVITY) rounded up to the next integer if necessary. For example, a 4-way associative cache will have a value of 2 and a 8-way associative cache will have a value of 3.
- N: log2(LINE LENGTH). For example, a 32-byte line length (4 words) will have a value of 5.
Sourcepub const fn new_with_offsets(
a: usize,
way: u8,
n: usize,
set: u16,
level: u3,
) -> Self
pub const fn new_with_offsets( a: usize, way: u8, n: usize, set: u16, level: u3, ) -> Self
Create DCISW value for cache invalidation by set and way. Returns None on invalid input.
§Arguments
- a: log2(ASSOCIATIVITY) rounded up to the next integer if necessary. For example, a 4-way associative cache will have a value of 2 and a 8-way associative cache will have a value of 3.
- n: log2(LINE LENGTH). For example, a 32-byte line length (4 words) will have a value of 5.
Trait Implementations§
Source§impl SysRegWrite for Dcisw
impl SysRegWrite for Dcisw
impl Copy for Dcisw
Auto Trait Implementations§
impl Freeze for Dcisw
impl RefUnwindSafe for Dcisw
impl Send for Dcisw
impl Sync for Dcisw
impl Unpin for Dcisw
impl UnwindSafe for Dcisw
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more