Home
last modified time | relevance | path

Searched refs:Registration (Results 1 – 25 of 41) sorted by relevance

12

/linux/rust/kernel/
H A Dfaux.rs22 pub struct Registration(NonNull<bindings::faux_device>); struct
24 impl Registration { implementation
53 impl AsRef<device::Device> for Registration { implementation
61 impl Drop for Registration { implementation
72 unsafe impl Send for Registration {} implementation
77 unsafe impl Sync for Registration {} implementation
H A Ddriver.rs6 //! register using the [`Registration`] class.
51 /// A [`Registration`] is a generic type that represents the registration of some driver type (e.g.
52 /// `bindings::pci_driver`). Therefore a [`Registration`] must be initialized with a type that
56 ///Once the `Registration` structure is dropped, the driver is unregistered.
58 pub struct Registration<T: RegistrationOps> { struct
63 // SAFETY: `Registration` has no fields or methods accessible via `&Registration`, so it is safe to argument
65 unsafe impl<T: RegistrationOps> Sync for Registration<T> {} implementation
68 // any thread, so `Registration` is `Send`.
69 unsafe impl<T: RegistrationOps> Send for Registration< implementation
71 impl<T: RegistrationOps> Registration<T> { global() implementation
91 impl<T: RegistrationOps> PinnedDrop for Registration<T> { global() implementation
[all...]
H A Dauxiliary.rs236 // SAFETY: `adev` points to the memory that has been allocated in `Registration::new`, via in release()
294 pub struct Registration(NonNull<bindings::auxiliary_device>); struct
296 impl Registration { implementation
339 impl Drop for Registration { implementation
353 // SAFETY: A `Registration` of a `struct auxiliary_device` can be released from any thread.
354 unsafe impl Send for Registration {} implementation
356 // SAFETY: `Registration` does not expose any methods or fields that need synchronization.
357 unsafe impl Sync for Registration {} implementation
H A Dcpufreq.rs835 /// CPU frequency driver Registration.
898 /// cpufreq::Registration::<SampleDriver>::new_foreign_owned(pdev.as_ref())?;
904 pub struct Registration<T: Driver>(KBox<UnsafeCell<bindings::cpufreq_driver>>, PhantomData<T>); struct
906 /// SAFETY: `Registration` doesn't offer any methods or access to fields when shared between threads
908 unsafe impl<T: Driver> Sync for Registration<T> {} implementation
911 /// SAFETY: Registration with and unregistration from the cpufreq subsystem can happen from any
913 unsafe impl<T: Driver> Send for Registration<T> {} implementation
915 impl<T: Driver> Registration<T> { implementation
1041 // SAFETY: `drv` is guaranteed to be valid for the lifetime of `Registration`. in new()
1047 /// Same as [`Registration
1060 impl<T: Driver> Registration<T> { global() implementation
1393 impl<T: Driver> Drop for Registration<T> { global() implementation
[all...]
/linux/samples/rust/
H A Drust_driver_auxiliary.rs46 _reg: [auxiliary::Registration; 2],
68 auxiliary::Registration::new(pdev.as_ref(), AUXILIARY_NAME, 0, MODULE_NAME)?, in probe()
69 auxiliary::Registration::new(pdev.as_ref(), AUXILIARY_NAME, 1, MODULE_NAME)?, in probe()
99 _pci_driver: driver::Registration<pci::Adapter<ParentDriver>>,
101 _aux_driver: driver::Registration<auxiliary::Adapter<AuxiliaryDriver>>,
107 _pci_driver <- driver::Registration::new(MODULE_NAME, module), in init()
108 _aux_driver <- driver::Registration::new(MODULE_NAME, module), in init()
H A Drust_driver_faux.rs16 _reg: faux::Registration,
23 let reg = faux::Registration::new(c_str!("rust-faux-sample-device"), None)?; in init()
/linux/rust/kernel/drm/
H A Ddriver.rs117 /// Once the `Registration` structure is dropped, the device is unregistered.
118 pub struct Registration<T: Driver>(ARef<drm::Device<T>>); struct
120 impl<T: Driver> Registration<T> { implementation
121 /// Creates a new [`Registration`] and registers it.
129 /// Same as [`Registration::new`}, but transfers ownership of the [`Registration`] to
143 let reg = Registration::<T>::new(drm, flags)?; in new_foreign_owned()
154 // SAFETY: `Registration` doesn't offer any methods or access to fields when shared between
156 unsafe impl<T: Driver> Sync for Registration<T> {} implementation
158 // SAFETY: Registration wit
159 unsafe impl<T: Driver> Send for Registration<T> {} global() implementation
161 impl<T: Driver> Drop for Registration<T> { global() implementation
[all...]
H A Dmod.rs14 pub use self::driver::Registration;
/linux/drivers/gpu/nova-core/
H A Ddriver.rs11 _reg: auxiliary::Registration,
45 _reg: auxiliary::Registration::new( in probe()
/linux/rust/kernel/net/
H A Dphy.rs637 /// Registration structure for PHY drivers.
644 pub struct Registration { struct
648 // SAFETY: The only action allowed in a `Registration` instance is dropping it, which is safe to do argument
650 unsafe impl Send for Registration {} implementation
652 impl Registration { implementation
668 Ok(Registration { drivers }) in register()
672 impl Drop for Registration { implementation
816 /// _reg: ::kernel::net::phy::Registration,
842 /// let mut reg = ::kernel::net::phy::Registration::register(
883 _reg: $crate::net::phy::Registration,
[all...]
/linux/net/8021q/
H A DKconfig23 bool "GVRP (GARP VLAN Registration Protocol) support"
33 bool "MVRP (Multiple VLAN Registration Protocol) support"
/linux/Documentation/tee/
H A Dtee.rst18 - Registration of TEE drivers
/linux/Documentation/power/regulator/
H A Dregulator.rst9 Registration chapter
/linux/drivers/gpu/drm/nova/
H A Ddriver.rs50 drm::Registration::new_foreign_owned(&drm, adev.as_ref(), 0)?; in probe()
/linux/Documentation/driver-api/
H A Dvfio-mediated-device.rst76 Registration Interfaces
82 * Registration interface for a mediated bus driver
85 Registration Interface for a Mediated Bus Driver
/linux/Documentation/filesystems/
H A Dapi-summary.rst35 Registration and Superblocks
/linux/Documentation/driver-api/surface_aggregator/clients/
H A Dsan.rst31 loaded, regardless of being linked as client or not. Registration is done
/linux/Documentation/power/
H A Denergy-model.rst109 2.2 Registration of performance domains
112 Registration of 'advanced' EM
141 Registration of EM using DT
151 Registration of 'artificial' EM
171 Registration of 'simple' EM
/linux/Documentation/i2c/muxes/
H A Di2c-mux-gpio.rst75 Device Registration
/linux/drivers/cpufreq/
H A Drcpufreq_dt.rs215 cpufreq::Registration::<CPUFreqDTDriver>::new_foreign_owned(pdev.as_ref())?; in probe()
/linux/Documentation/crypto/
H A Ddevel-algos.rst57 Registration specifics
108 Registration Specifics
/linux/Documentation/input/
H A Duserio.rst62 forth. Registration can only be performed once a port type is set with
/linux/Documentation/driver-api/tty/
H A Dtty_ldisc.rst15 Registration chapter
H A Dtty_driver.rst44 Registration chapter
/linux/Documentation/driver-api/driver-model/
H A Dbus.rst29 Registration chapter

12