pub struct Dccisw(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl Dccisw
impl Dccisw
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 DCCISW value for cache cleaning and 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 DCCISW value for cache cleaning and 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 Dccisw
impl SysRegWrite for Dccisw
impl Copy for Dccisw
Auto Trait Implementations§
impl Freeze for Dccisw
impl RefUnwindSafe for Dccisw
impl Send for Dccisw
impl Sync for Dccisw
impl Unpin for Dccisw
impl UnwindSafe for Dccisw
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