Lines Matching refs:Device
13 Device, //
29 /// This abstraction is meant to be used by subsystems to containerize [`Device`] bound resources to
32 /// [`Device`] bound resources should be freed when either the resource goes out of scope or the
33 /// [`Device`] is unbound respectively, depending on what happens first. In any case, it is always
34 /// guaranteed that revoking the device resource is completed before the corresponding [`Device`]
38 /// [`Device`] is unbound, revoking access to the encapsulated resource (see also [`Revocable`]).
53 /// Device,
102 /// # fn no_run(dev: &Device<Bound>) -> Result<(), Error> {
113 dev: ARef<Device>,
127 pub fn new<E>(dev: &Device<Bound>, data: impl PinInit<T, E>) -> Result<Self>
173 // - `self.dev` is a valid `Device`,
185 /// Return a reference of the [`Device`] this [`Devres`] instance has been created with.
186 pub fn device(&self) -> &Device {
193 /// a `&'a Device<Bound>` of the same [`Device`] this [`Devres`] instance has been created with.
197 /// An error is returned if `dev` does not match the same [`Device`] this [`Devres`] instance
214 /// fn from_core(dev: &pci::Device<Core>, devres: Devres<pci::Bar<0x4>>) -> Result {
226 pub fn access<'a>(&'a self, dev: &'a Device<Bound>) -> Result<&'a T> {
276 fn register_foreign<P>(dev: &Device<Bound>, data: P) -> Result
306 /// Device, //
328 /// fn from_bound_context(dev: &Device<Bound>) -> Result {
332 pub fn register<T, E>(dev: &Device<Bound>, data: impl PinInit<T, E>, flags: Flags) -> Result