Lines Matching refs:usize
16 pub struct AlignedBox<T, const ALIGN: usize> {
20 impl<T, const ALIGN: usize> AlignedBox<T, ALIGN> {
22 const fn max(a: usize, b: usize) -> usize { in max() argument
62 impl<T, const ALIGN: usize> Debug for AlignedBox<T, ALIGN> {
75 impl<T, const ALIGN: usize> Drop for AlignedBox<T, ALIGN> {
86 impl<T, const ALIGN: usize> core::ops::Deref for AlignedBox<T, ALIGN> {
94 impl<T, const ALIGN: usize> core::ops::DerefMut for AlignedBox<T, ALIGN> {
100 impl<T: Clone + SafeForZero, const ALIGN: usize> Clone for AlignedBox<T, ALIGN> {
114 unsafe impl<const NUM: usize> SafeForZero for [u8; NUM] {}
121 pub fn page_align_up(addr: usize) -> usize { in page_align_up() argument
137 pub fn check_aligned(value: usize, align: usize) -> bool { in check_aligned() argument