Lines Matching full:bindings

74 pub struct Device(Opaque<bindings::phy_device>);
86 unsafe fn from_raw<'a>(ptr: *mut bindings::phy_device) -> &'a mut Self { in from_raw()
87 // CAST: `Self` is a `repr(transparent)` wrapper around `bindings::phy_device`. in from_raw()
111 bindings::phy_state_PHY_DOWN => DeviceState::Down, in state()
112 bindings::phy_state_PHY_READY => DeviceState::Ready, in state()
113 bindings::phy_state_PHY_HALTED => DeviceState::Halted, in state()
114 bindings::phy_state_PHY_ERROR => DeviceState::Error, in state()
115 bindings::phy_state_PHY_UP => DeviceState::Up, in state()
116 bindings::phy_state_PHY_RUNNING => DeviceState::Running, in state()
117 bindings::phy_state_PHY_NOLINK => DeviceState::NoLink, in state()
118 bindings::phy_state_PHY_CABLETEST => DeviceState::CableTest, in state()
145 bit_field.get(13, 1) == bindings::AUTONEG_ENABLE as u64 in is_autoneg_enabled()
173 DuplexMode::Full => bindings::DUPLEX_FULL as i32, in set_duplex()
174 DuplexMode::Half => bindings::DUPLEX_HALF as i32, in set_duplex()
175 DuplexMode::Unknown => bindings::DUPLEX_UNKNOWN as i32, in set_duplex()
198 let ret = unsafe { bindings::phy_read_paged(phydev, page.into(), regnum.into()) }; in read_paged()
211 unsafe { bindings::phy_resolve_aneg_linkmode(phydev) }; in resolve_aneg_linkmode()
219 to_result(unsafe { bindings::genphy_soft_reset(phydev) }) in genphy_soft_reset()
227 to_result(unsafe { bindings::phy_init_hw(phydev) }) in init_hw()
235 to_result(unsafe { bindings::_phy_start_aneg(phydev) }) in start_aneg()
243 to_result(unsafe { bindings::genphy_resume(phydev) }) in genphy_resume()
251 to_result(unsafe { bindings::genphy_suspend(phydev) }) in genphy_suspend()
264 to_result(unsafe { bindings::genphy_update_link(phydev) }) in genphy_update_link()
272 to_result(unsafe { bindings::genphy_read_lpa(phydev) }) in genphy_read_lpa()
280 to_result(unsafe { bindings::genphy_read_abilities(phydev) }) in genphy_read_abilities()
297 pub const IS_INTERNAL: u32 = bindings::PHY_IS_INTERNAL;
299 pub const RST_AFTER_CLK_EN: u32 = bindings::PHY_RST_AFTER_CLK_EN;
301 pub const POLL_CABLE_TEST: u32 = bindings::PHY_POLL_CABLE_TEST;
303 pub const ALWAYS_CALL_SUSPEND: u32 = bindings::PHY_ALWAYS_CALL_SUSPEND;
316 phydev: *mut bindings::phy_device, in soft_reset_callback()
331 unsafe extern "C" fn probe_callback(phydev: *mut bindings::phy_device) -> crate::ffi::c_int { in probe_callback()
347 phydev: *mut bindings::phy_device, in get_features_callback()
362 unsafe extern "C" fn suspend_callback(phydev: *mut bindings::phy_device) -> crate::ffi::c_int { in suspend_callback()
376 unsafe extern "C" fn resume_callback(phydev: *mut bindings::phy_device) -> crate::ffi::c_int { in resume_callback()
391 phydev: *mut bindings::phy_device, in config_aneg_callback()
407 phydev: *mut bindings::phy_device, in read_status_callback()
423 phydev: *mut bindings::phy_device, in match_phy_device_callback()
436 phydev: *mut bindings::phy_device, in read_mmd_callback()
455 phydev: *mut bindings::phy_device, in write_mmd_callback()
473 unsafe extern "C" fn link_change_notify_callback(phydev: *mut bindings::phy_device) { in link_change_notify_callback()
493 pub struct DriverVTable(Opaque<bindings::phy_driver>);
506 DriverVTable(Opaque::new(bindings::phy_driver { in create_phy_driver()
568 ..unsafe { core::mem::MaybeUninit::<bindings::phy_driver>::zeroed().assume_init() } in create_phy_driver()
672 bindings::phy_drivers_register(drivers[0].0.get(), drivers.len().try_into()?, module.0) in register()
684 bindings::phy_drivers_unregister(self.drivers[0].0.get(), self.drivers.len() as i32) in drop()
743 pub const fn mdio_device_id(&self) -> bindings::mdio_device_id { in mdio_device_id()
744 bindings::mdio_device_id { in mdio_device_id()
851 /// const _DEVICE_TABLE: [::kernel::bindings::mdio_device_id; 2] = [
852 /// ::kernel::bindings::mdio_device_id {
856 /// ::kernel::bindings::mdio_device_id {
863 /// static __mod_device_table__mdio__phydev: [::kernel::bindings::mdio_device_id; 2] = _DEVICE_TABL…
875 const _DEVICE_TABLE: [$crate::bindings::mdio_device_id;
878 $crate::bindings::mdio_device_id {
886 static __mod_device_table__mdio__phydev: [$crate::bindings::mdio_device_id;