Lines Matching full:pub
12 pub mod reg;
22 pub enum DeviceState {
44 pub enum DuplexMode {
74 pub struct Device(Opaque<bindings::phy_device>);
95 pub fn phy_id(&self) -> u32 { in phy_id()
103 pub fn state(&self) -> DeviceState { in state()
126 pub fn is_link_up(&self) -> bool { in is_link_up()
139 pub fn is_autoneg_enabled(&self) -> bool { in is_autoneg_enabled()
151 pub fn is_autoneg_completed(&self) -> bool { in is_autoneg_completed()
162 pub fn set_speed(&mut self, speed: u32) { in set_speed()
170 pub fn set_duplex(&mut self, mode: DuplexMode) { in set_duplex()
184 pub fn read<R: reg::Register>(&mut self, reg: R) -> Result<u16> { in read()
189 pub fn write<R: reg::Register>(&mut self, reg: R, val: u16) -> Result { in write()
194 pub fn read_paged(&mut self, page: u16, regnum: u16) -> Result<u16> { in read_paged()
207 pub fn resolve_aneg_linkmode(&mut self) { in resolve_aneg_linkmode()
215 pub fn genphy_soft_reset(&mut self) -> Result { in genphy_soft_reset()
223 pub fn init_hw(&mut self) -> Result { in init_hw()
231 pub fn start_aneg(&mut self) -> Result { in start_aneg()
239 pub fn genphy_resume(&mut self) -> Result { in genphy_resume()
247 pub fn genphy_suspend(&mut self) -> Result { in genphy_suspend()
255 pub fn genphy_read_status<R: reg::Register>(&mut self) -> Result<u16> { in genphy_read_status()
260 pub fn genphy_update_link(&mut self) -> Result { in genphy_update_link()
268 pub fn genphy_read_lpa(&mut self) -> Result { in genphy_read_lpa()
276 pub fn genphy_read_abilities(&mut self) -> Result { in genphy_read_abilities()
295 pub mod flags {
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;
493 pub struct DriverVTable(Opaque<bindings::phy_driver>);
504 pub const fn create_phy_driver<T: Driver>() -> DriverVTable { in create_phy_driver()
576 pub trait Driver {
651 pub struct Registration {
661 pub fn register( in register()
693 pub struct DeviceId {
700 pub const fn new_with_exact_mask(id: u32) -> Self { in new_with_exact_mask()
708 pub const fn new_with_model_mask(id: u32) -> Self { in new_with_model_mask()
716 pub const fn new_with_vendor_mask(id: u32) -> Self { in new_with_vendor_mask()
724 pub const fn new_with_custom_mask(id: u32, mask: u32) -> Self { in new_with_custom_mask()
732 pub const fn new_with_driver<T: Driver>() -> Self { in new_with_driver()
737 pub const fn mask_as_int(&self) -> u32 { in mask_as_int()
743 pub const fn mdio_device_id(&self) -> bindings::mdio_device_id { in mdio_device_id()