Lines Matching refs:Region

123 pub struct Region<const SIZE: usize = 0> {
127 impl<const SIZE: usize> Region<SIZE> {
137 core::ptr::slice_from_raw_parts_mut(base, size) as *mut Region<SIZE>
154 impl<const SIZE: usize> KnownSize for Region<SIZE> {
172 unsafe impl<const SIZE: usize> IntoBytes for Region<SIZE> {
218 impl<const SIZE: usize> MmioRaw<Region<SIZE>> {
225 ptr: Region::ptr_try_from_raw_parts_mut(core::ptr::without_provenance_mut(addr), size)?,
433 /// - The valid `Base` to operate on. For most registers, this should be [`Region`].
445 /// Implements [`IoLoc<Region<SIZE>, $ty>`] for [`usize`], allowing [`usize`] to be used as a
450 impl<const SIZE: usize> IoLoc<Region<SIZE>, $ty> for usize {
475 /// Type of this I/O region. For untyped regions, [`Region`] can be used.
526 /// Region,
532 /// # fn test(mmio: &Mmio<'_, Region<0x1000>>) {
533 /// // let mmio: Mmio<'_, Region<0x1000>>;
566 /// Region,
572 /// # fn test(mmio: &Mmio<'_, Region>) -> Result {
573 /// // let mmio: Mmio<'_, Region>;
943 /// Region,
946 /// fn do_reads(io: Mmio<'_, Region>) -> Result {
976 /// Region,
979 /// fn do_writes(io: Mmio<'_, Region>) -> Result {
1011 /// Region,
1015 /// base: Region;
1029 /// fn do_write_reg(io: Mmio<'_, Region>) -> Result {
1060 /// Region,
1063 /// fn do_update(io: Mmio<'_, Region<0x1000>>) -> Result {
1092 /// Region,
1095 /// fn do_reads(io: Mmio<'_, Region<0x1000>>) {
1123 /// Region,
1126 /// fn do_writes(io: Mmio<'_, Region<0x1000>>) {
1155 /// Region,
1159 /// base: Region<0x1000>;
1173 /// fn do_write_reg(io: Mmio<'_, Region<0x1000>>) {
1203 /// Region,
1206 /// fn do_update(io: Mmio<'_, Region<0x1000>>) {
1414 /// Region,
1418 /// fn do_io(io: Mmio<'_, Region<0x100>>) {