Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 58) sorted by relevance

123

/DragonOS/kernel/src/net/
H A Dmod.rs87 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
89 Protocol::HopByHop => write!(f, "Hop-by-Hop"), in fmt()
90 Protocol::Icmp => write!(f, "ICMP"), in fmt()
91 Protocol::Igmp => write!(f, "IGMP"), in fmt()
92 Protocol::Tcp => write!(f, "TCP"), in fmt()
93 Protocol::Udp => write!(f, "UDP"), in fmt()
94 Protocol::Ipv6Route => write!(f, "IPv6-Route"), in fmt()
95 Protocol::Ipv6Frag => write!(f, "IPv6-Frag"), in fmt()
96 Protocol::Icmpv6 => write!(f, "ICMPv6"), in fmt()
97 Protocol::Ipv6NoNxt => write!(f, "IPv6-NoNxt"), in fmt()
[all …]
/DragonOS/kernel/src/libs/
H A Donce.rs29 pub fn call_once<F: FnOnce()>(&self, f: F) { in call_once()
45 f(); in call_once()
94 pub fn call_once_force<F>(&self, f: F) in call_once_force()
114 f(&self.inner.load(Ordering::SeqCst)); in call_once_force()
134 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt()
135 f.debug_struct("Once").finish_non_exhaustive() in fmt()
H A Dlock_free_flags.rs46 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
47 f.debug_struct("LockFreeFlags") in fmt()
H A Dlazy_init.rs137 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { in fmt()
139 return write!(f, "Lazy({:?})", value); in fmt()
141 return write!(f, "Lazy(uninitialized)"); in fmt()
/DragonOS/build-scripts/kernel_build/src/utils/
H A Dcargo_handler.rs44 for f in files { in emit_rerun_if_files_changed()
45 println!("cargo:rerun-if-changed={}", f.to_str().unwrap()); in emit_rerun_if_files_changed()
55 for f in features.iter() { in emit_features()
56 if f.enable() { in emit_features()
57 println!("cargo:rustc-cfg=feature=\"{}\"", f.name()); in emit_features()
/DragonOS/tools/debugging/logmonitor/src/
H A Dui.rs59 fn draw_first_tab(f: &mut Frame, app: &mut App, area: Rect) { in draw_first_tab()
67 draw_memory_logging_speed_gauges(f, app, chunks[0]); in draw_first_tab()
69 draw_footer(f, app, chunks[2]); in draw_first_tab()
73 fn draw_memory_logging_speed_gauges(f: &mut Frame, app: &mut App, area: Rect) { in draw_memory_logging_speed_gauges()
79 f.render_widget(block, area); in draw_memory_logging_speed_gauges()
90 f.render_widget(sparkline, chunks[0]); in draw_memory_logging_speed_gauges()
93 fn draw_footer(f: &mut Frame, app: &mut App, area: Rect) { in draw_footer()
133 f.render_stateful_widget(logs, area, &mut app.stateful_logs.state); in draw_footer()
/DragonOS/tools/debugging/logmonitor/src/backend/
H A Derror.rs24 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { in fmt()
27 write!(f, "File not found: {:?}", self.message.as_ref().unwrap()) in fmt()
31 f, in fmt()
/DragonOS/build-scripts/kernel_build/src/kconfig/
H A Dmod.rs39 for f in features.iter() { in make_compile_cfg()
40 if f.enable() { in make_compile_cfg()
41 cfg_content.push_str(&format!("{} = y\n", f.name())); in make_compile_cfg()
43 cfg_content.push_str(&format!("{} = n\n", f.name())); in make_compile_cfg()
114 for f in features.as_array().unwrap().iter() { in parse_d_config()
115 let name = f.get("name").unwrap().as_str().unwrap().to_string(); in parse_d_config()
116 let enable = f.get("enable").unwrap().as_str().unwrap().to_string() == "y"; in parse_d_config()
/DragonOS/kernel/src/common/math/
H A Dlibm.h9 long double f; member
19 long double f; member
36 long double f; member
H A Dround.c16 double f; in round() member
31 return 0 * u.f; in round()
/DragonOS/kernel/src/driver/virtio/
H A Dtransport_pci.rs473 fn fmt(&self, f: &mut Formatter) -> fmt::Result { in fmt()
476 f, in fmt()
480 Self::UnableToInitIrq => write!(f, "Unable to find capability such as MSIX or MSI."), in fmt()
482 f, in fmt()
486 f, in fmt()
491 f, in fmt()
497 write!(f, "No valid `VIRTIO_PCI_CAP_ISR_CFG` capability was found.") in fmt()
499 Self::UnexpectedBarType => write!(f, "Unexpected BAR (expected memory BAR)."), in fmt()
500 Self::BarNotAllocated(bar_index) => write!(f, "Bar {} not allocated.", bar_index), in fmt()
501 Self::BarOffsetOutOfRange => write!(f, "Capability offset greater than BAR length."), in fmt()
[all …]
H A Dtransport.rs22 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
24 VirtIOTransport::Pci(_) => write!(f, "VirtIOTransport::Pci"), in fmt()
25 VirtIOTransport::Mmio(_) => write!(f, "VirtIOTransport::Mmio"), in fmt()
/DragonOS/kernel/src/driver/firmware/efi/
H A Dguid.rs55 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
56 f.debug_struct("DragonStubPayloadEFI") in fmt()
/DragonOS/kernel/src/filesystem/procfs/
H A Dlog.rs85 fn fmt(&self, f: &mut Formatter<'_>) -> Result { in fmt()
105 return write!(f, "{}", res); in fmt()
/DragonOS/kernel/src/driver/pci/
H A Dpci.rs64 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
65 write!(f, "PciAddr({:#x})", self.0) in fmt()
296 fn fmt(&self, f: &mut Formatter) -> fmt::Result { in fmt()
298 Self::InvalidBarType => write!(f, "Invalid PCI BAR type."), in fmt()
299 Self::CreateMmioError => write!(f, "Error occurred while creating mmio."), in fmt()
300 Self::InvalidBusDeviceFunction => write!(f, "Found invalid BusDeviceFunction."), in fmt()
301 Self::SegmentNotFound => write!(f, "Target segment not found"), in fmt()
302 Self::McfgTableNotFound => write!(f, "ACPI MCFG Table not found"), in fmt()
303 Self::GetWrongHeader => write!(f, "GetWrongHeader with vendor id 0xffff"), in fmt()
304 Self::UnrecognisedHeaderType => write!(f, "Found device with unrecognised header type"), in fmt()
[all …]
H A Droot.rs47 fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result { in fmt()
50 f, in fmt()
55 write!(f, "PCI Root cam is {:?}", self.cam,) in fmt()
/DragonOS/kernel/crates/klog_types/src/
H A Dlib.rs146 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
147 f.debug_struct("AllocLogItem") in fmt()
208 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
209 f.debug_struct("MMLogChannel") in fmt()
/DragonOS/kernel/src/driver/net/e1000e/
H A De1000e_driver.rs76 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
77 f.debug_struct("E1000ENICDriver").finish() in fmt()
100 fn consume<R, F>(mut self, f: F) -> R in consume()
104 let result = f(self.0.as_mut_slice()); in consume()
111 fn consume<R, F>(self, _len: usize, f: F) -> R in consume()
116 let result = f(buffer.as_mut_slice()); in consume()
227 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
228 f.debug_struct("E1000EInterface") in fmt()
/DragonOS/kernel/src/filesystem/fat/
H A Dbpb.rs375 FATType::FAT12(f) | FATType::FAT16(f) => { in get_volume_id()
376 return f.volume_id; in get_volume_id()
379 FATType::FAT32(f) => { in get_volume_id()
380 return f.volume_id; in get_volume_id()
/DragonOS/tools/debugging/logmonitor/src/backend/monitor/
H A Dmm.rs159 let f = self.open_kmem_file(); in run() localVariable
160 if f.is_ok() { in run()
161 file = f.unwrap(); in run()
164 log::error!("Failed to open kmem file, error: {:?}", f.unwrap_err()); in run()
H A Dlogset.rs54 .map(|f| writeln!(f, "{:?}", cloned_value).ok()); in insert()
/DragonOS/kernel/src/exception/
H A Dmsi.rs21 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
23 f, in fmt()
/DragonOS/kernel/crates/multiboot/src/
H A Dlib.rs353 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
355 f.debug_struct("ColorInfo") in fmt()
528 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { in fmt()
530 f, in fmt()
/DragonOS/kernel/src/driver/net/
H A Dloopback.rs51 fn consume<R, F>(mut self, f: F) -> R in consume()
55 f(self.buffer.as_mut_slice()) in consume()
76 fn consume<R, F>(self, len: usize, f: F) -> R in consume()
81 let result = f(buffer.as_mut_slice()); in consume()
308 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
309 f.debug_struct("LoopbackInterface") in fmt()
/DragonOS/kernel/src/filesystem/vfs/
H A Dutils.rs138 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
139 write!(f, "{}", self.0) in fmt()

123