Home
last modified time | relevance | path

Searched refs:NetDeivceState (Results 1 – 5 of 5) sorted by relevance

/DragonOS/kernel/src/driver/net/
H A Dmod.rs21 pub struct NetDeivceState: u16 {
76 fn net_state(&self) -> NetDeivceState; in net_state() argument
78 fn set_net_state(&self, state: NetDeivceState); in set_net_state() argument
93 pub state: NetDeivceState,
103 state: NetDeivceState::empty(), in default()
116 dev.set_net_state(NetDeivceState::__LINK_STATE_PRESENT); in register_netdevice()
H A Dsysfs.rs20 use super::{class::sys_class_net_instance, NetDeivceState, NetDevice, Operstate};
382 .contains(NetDeivceState::__LINK_STATE_START) in show()
385 .contains(NetDeivceState::__LINK_STATE_NOCARRIER) in show()
498 .contains(NetDeivceState::__LINK_STATE_START) in show()
H A Dloopback.rs31 use super::{register_netdevice, NetDeivceState, NetDevice, NetDeviceCommonData, Operstate};
521 fn net_state(&self) -> NetDeivceState { in net_state() argument
525 fn set_net_state(&self, state: NetDeivceState) { in set_net_state() argument
547 iface.set_net_state(NetDeivceState::__LINK_STATE_START); in loopback_driver_init()
H A Dvirtio_net.rs19 use super::{NetDeivceState, NetDevice, NetDeviceCommonData, Operstate};
697 fn net_state(&self) -> NetDeivceState { in net_state() argument
701 fn set_net_state(&self, state: NetDeivceState) { in set_net_state() argument
844 iface.set_net_state(NetDeivceState::__LINK_STATE_START); in probe()
/DragonOS/kernel/src/driver/net/e1000e/
H A De1000e_driver.rs11 net::{register_netdevice, NetDeivceState, NetDevice, NetDeviceCommonData, Operstate},
362 fn net_state(&self) -> NetDeivceState { in net_state() argument
366 fn set_net_state(&self, state: NetDeivceState) { in set_net_state() argument
442 iface.set_net_state(NetDeivceState::__LINK_STATE_START); in e1000e_driver_init()