Searched refs:NetDeivceState (Results 1 – 5 of 5) sorted by relevance
/DragonOS/kernel/src/driver/net/ |
H A D | mod.rs | 21 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 D | sysfs.rs | 20 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 D | loopback.rs | 31 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 D | virtio_net.rs | 19 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 D | e1000e_driver.rs | 11 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()
|