Lines Matching full:pub

21 pub enum DeviceState {
43 pub enum DuplexMode {
72 pub struct Device(Opaque<bindings::phy_device>);
91 pub fn phy_id(&self) -> u32 { in phy_id()
99 pub fn state(&self) -> DeviceState { in state()
122 pub fn is_link_up(&self) -> bool { in is_link_up()
135 pub fn is_autoneg_enabled(&self) -> bool { in is_autoneg_enabled()
147 pub fn is_autoneg_completed(&self) -> bool { in is_autoneg_completed()
158 pub fn set_speed(&mut self, speed: u32) { in set_speed()
166 pub fn set_duplex(&mut self, mode: DuplexMode) { in set_duplex()
180 pub fn read(&mut self, regnum: u16) -> Result<u16> { in read()
196 pub fn write(&mut self, regnum: u16, val: u16) -> Result { in write()
207 pub fn read_paged(&mut self, page: u16, regnum: u16) -> Result<u16> { in read_paged()
220 pub fn resolve_aneg_linkmode(&mut self) { in resolve_aneg_linkmode()
228 pub fn genphy_soft_reset(&mut self) -> Result { in genphy_soft_reset()
236 pub fn init_hw(&mut self) -> Result { in init_hw()
244 pub fn start_aneg(&mut self) -> Result { in start_aneg()
252 pub fn genphy_resume(&mut self) -> Result { in genphy_resume()
260 pub fn genphy_suspend(&mut self) -> Result { in genphy_suspend()
268 pub fn genphy_read_status(&mut self) -> Result<u16> { in genphy_read_status()
281 pub fn genphy_update_link(&mut self) -> Result { in genphy_update_link()
289 pub fn genphy_read_lpa(&mut self) -> Result { in genphy_read_lpa()
297 pub fn genphy_read_abilities(&mut self) -> Result { in genphy_read_abilities()
308 pub mod flags {
310 pub const IS_INTERNAL: u32 = bindings::PHY_IS_INTERNAL;
312 pub const RST_AFTER_CLK_EN: u32 = bindings::PHY_RST_AFTER_CLK_EN;
314 pub const POLL_CABLE_TEST: u32 = bindings::PHY_POLL_CABLE_TEST;
316 pub const ALWAYS_CALL_SUSPEND: u32 = bindings::PHY_ALWAYS_CALL_SUSPEND;
491 pub struct DriverVTable(Opaque<bindings::phy_driver>);
502 pub const fn create_phy_driver<T: Driver>() -> DriverVTable { in create_phy_driver()
569 pub trait Driver {
639 pub struct Registration {
645 pub fn register( in register()
677 pub struct DeviceId {
684 pub const fn new_with_exact_mask(id: u32) -> Self { in new_with_exact_mask()
692 pub const fn new_with_model_mask(id: u32) -> Self { in new_with_model_mask()
700 pub const fn new_with_vendor_mask(id: u32) -> Self { in new_with_vendor_mask()
708 pub const fn new_with_custom_mask(id: u32, mask: u32) -> Self { in new_with_custom_mask()
716 pub const fn new_with_driver<T: Driver>() -> Self { in new_with_driver()
721 pub const fn mask_as_int(&self) -> u32 { in mask_as_int()
727 pub const fn mdio_device_id(&self) -> bindings::mdio_device_id { in mdio_device_id()