Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 70) 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/build-scripts/kernel_build/src/cfiles/
H A Dcommon.rs10 .for_each(|f| { in setup_common_files()
11 files.insert(f); in setup_common_files()
/DragonOS/kernel/src/driver/virtio/
H A Dtransport_pci.rs466 fn fmt(&self, f: &mut Formatter) -> fmt::Result { in fmt()
469 f, in fmt()
474 f, in fmt()
478 f, in fmt()
483 f, in fmt()
489 write!(f, "No valid `VIRTIO_PCI_CAP_ISR_CFG` capability was found.") in fmt()
491 Self::UnexpectedBarType => write!(f, "Unexpected BAR (expected memory BAR)."), in fmt()
492 Self::BarNotAllocated(bar_index) => write!(f, "Bar {} not allocated.", bar_index), in fmt()
493 Self::BarOffsetOutOfRange => write!(f, "Capability offset greater than BAR length."), in fmt()
495 f, in fmt()
[all …]
/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/build-scripts/kernel_build/src/cfiles/arch/
H A Driscv64.rs24 .for_each(|f| { in setup_files()
25 files.insert(f); in setup_files()
H A Dx86_64.rs25 .for_each(|f| { in setup_files()
26 files.insert(f); in setup_files()
/DragonOS/kernel/crates/rbpf/examples/
H A Dto_json.rs62 Ok(f) => f, in main()
H A Dload_elf.rs55 Ok(f) => f, in main()
/DragonOS/user/apps/test_ebpf/syscall_ebpf/xtask/src/
H A Dbuild_ebpf.rs24 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { in fmt()
25 f.write_str(match self { 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 …]
/DragonOS/kernel/crates/klog_types/src/
H A Dlib.rs145 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
146 f.debug_struct("AllocLogItem") in fmt()
207 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
208 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.rs373 FATType::FAT12(f) | FATType::FAT16(f) => { in get_volume_id()
374 return f.volume_id; in get_volume_id()
377 FATType::FAT32(f) => { in get_volume_id()
378 return f.volume_id; in get_volume_id()
/DragonOS/kernel/src/bpf/map/
H A Darray_map.rs36 fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result { in fmt()
37 f.debug_struct("ArrayMapData") in fmt()
169 fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result { in fmt()
170 f.debug_struct("PerCpuArrayMap") in fmt()
227 fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result { in fmt()
228 f.debug_struct("PerfEventArrayMap") in fmt()
/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()

123