Lines Matching defs:SIZE
61 const SIZE: usize;
65 const SIZE: usize = 256;
69 const SIZE: usize = 4096;
136 const MIN_SIZE: usize = S::SIZE;
148 pub struct Bar<'a, const SIZE: usize = 0> {
150 io: MmioRaw<SIZE>,
154 impl<'a, const SIZE: usize> Bar<'a, SIZE> {
226 /// The returned `Devres<Bar<'static, SIZE>>` can outlive the original lifetime `'a`. Access
228 pub fn into_devres(self) -> Result<Devres<Bar<'static, SIZE>>> {
232 let bar: Bar<'static, SIZE> = unsafe { core::mem::transmute(self) };
246 impl<const SIZE: usize> Drop for Bar<'_, SIZE> {
252 impl<const SIZE: usize> Deref for Bar<'_, SIZE> {
253 type Target = Mmio<SIZE>;
263 /// can be performed on compile time for offsets (plus the requested type size) < SIZE.
264 pub fn iomap_region_sized<'a, const SIZE: usize>(
268 ) -> Result<Bar<'a, SIZE>> {