/linux/rust/kernel/ |
H A D | faux.rs | 22 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 D | driver.rs | 6 //! 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 D | auxiliary.rs | 236 // 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 D | cpufreq.rs | 835 /// 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 D | rust_driver_auxiliary.rs | 46 _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 D | rust_driver_faux.rs | 16 _reg: faux::Registration, 23 let reg = faux::Registration::new(c_str!("rust-faux-sample-device"), None)?; in init()
|
/linux/rust/kernel/drm/ |
H A D | driver.rs | 117 /// 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 D | mod.rs | 14 pub use self::driver::Registration;
|
/linux/drivers/gpu/nova-core/ |
H A D | driver.rs | 11 _reg: auxiliary::Registration, 45 _reg: auxiliary::Registration::new( in probe()
|
/linux/rust/kernel/net/ |
H A D | phy.rs | 637 /// 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 D | Kconfig | 23 bool "GVRP (GARP VLAN Registration Protocol) support" 33 bool "MVRP (Multiple VLAN Registration Protocol) support"
|
/linux/Documentation/tee/ |
H A D | tee.rst | 18 - Registration of TEE drivers
|
/linux/Documentation/power/regulator/ |
H A D | regulator.rst | 9 Registration chapter
|
/linux/drivers/gpu/drm/nova/ |
H A D | driver.rs | 50 drm::Registration::new_foreign_owned(&drm, adev.as_ref(), 0)?; in probe()
|
/linux/Documentation/driver-api/ |
H A D | vfio-mediated-device.rst | 76 Registration Interfaces 82 * Registration interface for a mediated bus driver 85 Registration Interface for a Mediated Bus Driver
|
/linux/Documentation/filesystems/ |
H A D | api-summary.rst | 35 Registration and Superblocks
|
/linux/Documentation/driver-api/surface_aggregator/clients/ |
H A D | san.rst | 31 loaded, regardless of being linked as client or not. Registration is done
|
/linux/Documentation/power/ |
H A D | energy-model.rst | 109 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 D | i2c-mux-gpio.rst | 75 Device Registration
|
/linux/drivers/cpufreq/ |
H A D | rcpufreq_dt.rs | 215 cpufreq::Registration::<CPUFreqDTDriver>::new_foreign_owned(pdev.as_ref())?; in probe()
|
/linux/Documentation/crypto/ |
H A D | devel-algos.rst | 57 Registration specifics 108 Registration Specifics
|
/linux/Documentation/input/ |
H A D | userio.rst | 62 forth. Registration can only be performed once a port type is set with
|
/linux/Documentation/driver-api/tty/ |
H A D | tty_ldisc.rst | 15 Registration chapter
|
H A D | tty_driver.rst | 44 Registration chapter
|
/linux/Documentation/driver-api/driver-model/ |
H A D | bus.rst | 29 Registration chapter
|