Searched refs:Devres (Results 1 – 6 of 6) sorted by relevance
/linux/rust/kernel/io/ |
H A D | mem.rs | 10 use crate::devres::Devres; 77 pub fn iomap_sized<const SIZE: usize>(self) -> impl PinInit<Devres<IoMem<SIZE>>, Error> + 'a { in iomap_sized() 89 ) -> impl PinInit<Devres<ExclusiveIoMem<SIZE>>, Error> + 'a { in iomap_exclusive_sized() 135 pub fn iomap(self) -> impl PinInit<Devres<IoMem<0>>, Error> + 'a { in iomap() 141 pub fn iomap_exclusive(self) -> impl PinInit<Devres<ExclusiveIoMem<0>>, Error> + 'a { in iomap_exclusive() 189 pub fn new<'a>(io_request: IoRequest<'a>) -> impl PinInit<Devres<Self>, Error> + 'a { in new() 193 Devres::new(dev, Self::ioremap(res)) in new() 257 pub fn new<'a>(io_request: IoRequest<'a>) -> impl PinInit<Devres<Self>, Error> + 'a { in new() 261 Devres::new(dev, Self::ioremap(res)) in new()
|
/linux/rust/kernel/ |
H A D | devres.rs | 3 //! Devres abstraction 5 //! [`Devres`] represents an abstraction for the kernel devres (device resource management) 22 /// [`Devres`] inner data accessed from [`Devres::callback`]. 27 /// Tracks whether [`Devres::callback`] has been completed. 43 /// To achieve that [`Devres`] registers a devres callback on creation, which is called once the 46 /// After the [`Devres`] has been unbound it is not possible to access the encapsulated resource 49 /// [`Devres`] users should make sure to simply free the corresponding backing resource in `T`'s 55 /// # use kernel::{bindings, device::{Bound, Device}, devres::Devres, io::{Io, IoRaw}}; 96 /// let devres = KBox::pin_init(Devres 108 pub struct Devres<T: Send> { global() struct 118 callbackDevres global() argument 124 impl<T: Send> Devres<T> { global() implementation 268 unsafe impl<T: Send> Send for Devres<T> {} global() implementation 271 unsafe impl<T: Send + Sync> Sync for Devres<T> {} global() implementation 274 impl<T: Send> PinnedDrop for Devres<T> { global() implementation [all...] |
H A D | pci.rs | 10 devres::Devres, 422 ) -> impl PinInit<Devres<Bar<SIZE>>, Error> + 'a { in iomap_region_sized() 423 Devres::new(self.as_ref(), Bar::<SIZE>::new(self, bar, name)) in iomap_region_sized() 431 ) -> impl PinInit<Devres<Bar>, Error> + 'a { in iomap_region()
|
/linux/Documentation/driver-api/driver-model/ |
H A D | devres.rst | 2 Devres - Managed Device Resource 11 1. Intro : Huh? Devres? 12 2. Devres : Devres in a nutshell 13 3. Devres Group : Group devres'es and release them together 47 2. Devres 145 3. Devres group 148 Devres entries can be grouped using devres group. When a group is
|
/linux/samples/rust/ |
H A D | rust_driver_pci.rs | 7 use kernel::{bindings, c_str, device::Core, devres::Devres, pci, prelude::*, types::ARef}; 32 bar: Devres<Bar0>,
|
/linux/drivers/gpu/nova-core/ |
H A D | gpu.rs | 3 use kernel::{device, devres::Devres, error::code::*, pci, prelude::*, sync::Arc}; 170 bar: Arc<Devres<Bar0>>, 268 devres_bar: Arc<Devres<Bar0>>, in new()
|