Lines Matching defs:Resource
24 /// A region allocated from a parent [`Resource`].
39 type Target = Resource;
43 unsafe { Resource::from_raw(self.resource.as_ptr()) }
77 /// [`Resource`] is a transparent wrapper around a valid `bindings::resource`.
79 pub struct Resource(Opaque<bindings::resource>);
81 impl Resource {
82 /// Creates a reference to a [`Resource`] from a valid pointer.
89 /// The caller must also ensure that the [`Resource`] is only accessed via the
109 // - Safe as per the invariant of `Resource`.
132 // SAFETY: Safe as per the invariants of `Resource`.
139 // SAFETY: Safe as per the invariants of `Resource`.
147 // SAFETY: Safe as per the invariants of `Resource`.
164 // SAFETY: Safe as per the invariants of `Resource`.
171 // SAFETY: `Resource` only holds a pointer to a C `struct resource`, which is
173 unsafe impl Send for Resource {}
175 // SAFETY: `Resource` only holds a pointer to a C `struct resource`, references
177 unsafe impl Sync for Resource {}
179 /// Resource flags as stored in the C `struct resource::flags` field.
220 /// Resource is software muxed.
223 /// Resource represents a memory region.
226 /// Resource represents a memory region that must be ioremaped using `ioremap_np`.