Lines Matching defs:drivers
18 /// Some of PHY drivers access to the state of PHY's software state machine.
43 /// PHY drivers get duplex information from hardware and update the current state.
645 /// Registration structure for PHY drivers.
651 /// The `drivers` slice are currently registered to the kernel via `phy_drivers_register`.
653 drivers: Pin<&'static mut [DriverVTable]>,
664 drivers: Pin<&'static mut [DriverVTable]>,
666 if drivers.is_empty() {
670 // the `drivers` slice are initialized properly. `drivers` will not be moved.
673 bindings::phy_drivers_register(drivers[0].0.get(), drivers.len().try_into()?, module.0)
675 // INVARIANT: The `drivers` slice is successfully registered to the kernel via `phy_drivers_register`.
676 Ok(Registration { drivers })
682 // SAFETY: The type invariants guarantee that `self.drivers` is valid.
685 bindings::phy_drivers_unregister(self.drivers[0].0.get(), self.drivers.len() as i32)
774 /// Declares a kernel module for PHYs drivers.
789 /// drivers: [PhySample],
842 /// let drivers = unsafe { &mut DRIVERS };
845 /// ::core::pin::Pin::static_mut(drivers),
891 (drivers: [$($driver:ident),+ $(,)?], device_table: [$($dev:expr),+ $(,)?], $($f:tt)*) => {
910 let drivers = unsafe { &mut DRIVERS };
913 ::core::pin::Pin::static_mut(drivers),