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