Lines Matching defs:SIZE
170 pub struct Bar<'a, const SIZE: usize = 0> {
172 io: MmioRaw<crate::io::Region<SIZE>>,
176 impl<const SIZE: usize> ForLt for Bar<'static, SIZE> {
177 type Of<'a> = Bar<'a, SIZE>;
180 // SAFETY: `Bar<'a, SIZE>` is covariant over `'a`; it holds `&'a Device<Bound>`,
182 unsafe impl<const SIZE: usize> CovariantForLt for Bar<'static, SIZE> {}
187 pub type DevresBar<const SIZE: usize = 0> = DevresLt<Bar<'static, SIZE>>;
189 impl<'a, const SIZE: usize> Bar<'a, SIZE> {
263 pub fn into_devres(self) -> Result<DevresBar<SIZE>> {
279 impl<const SIZE: usize> Drop for Bar<'_, SIZE> {
285 impl<'a, const SIZE: usize> IoBase<'a> for &'a Bar<'_, SIZE> {
287 type Target = crate::io::Region<SIZE>;
298 /// can be performed on compile time for offsets (plus the requested type size) < SIZE.
299 pub fn iomap_region_sized<'a, const SIZE: usize>(
303 ) -> Result<Bar<'a, SIZE>> {