/DragonOS/kernel/src/libs/ |
H A D | int_like.rs | 35 pub const fn into(self) -> $backing_type { constant 39 pub const fn from(x: $backing_type) -> Self { constant 44 pub const fn new(x: $backing_type) -> Self { constant 49 pub const fn data(&self) -> $backing_type { constant 67 pub const fn new(x: $new_type_name) -> Self { constant 73 pub const fn default() -> Self { constant
|
H A D | align.rs | 24 const fn max(a: usize, b: usize) -> usize { in max() constant 133 pub const fn page_align_up(addr: usize) -> usize { in page_align_up() constant 138 pub const fn page_align_down(addr: usize) -> usize { in page_align_down() constant 143 pub const fn align_up(addr: usize, align: usize) -> usize { in align_up() constant 148 pub const fn align_down(addr: usize, align: usize) -> usize { in align_down() constant
|
H A D | once.rs | 22 pub const fn new() -> Self { in new() constant
|
H A D | mutex.rs | 48 pub const fn new(value: T) -> Self { in new() constant
|
H A D | lazy_init.rs | 40 pub const fn new() -> Lazy<T> { in new() constant
|
/DragonOS/kernel/src/libs/lib_ui/font/ |
H A D | mod.rs | 24 pub const fn new( in new() constant 37 pub const fn width(&self) -> u32 { in width() constant 42 pub const fn height(&self) -> u32 { in height() constant 63 pub const fn new(width: usize, height: usize) -> Self { in new() constant 76 pub const fn new(data: &'static [u8], width: usize) -> Self { in new() constant 84 pub const fn size(&self) -> Size { in size() constant 88 pub const fn len(&self) -> usize { in len() constant
|
/DragonOS/kernel/src/exception/ |
H A D | irqdata.rs | 422 pub const fn trigger_bits(&self) -> u32 { in trigger_bits() constant 519 pub const fn is_set_affinity_pending(&self) -> bool { in is_set_affinity_pending() constant 523 pub const fn is_per_cpu(&self) -> bool { in is_per_cpu() constant 527 pub const fn can_balance(&self) -> bool { in can_balance() constant 531 pub const fn affinity_was_set(&self) -> bool { in affinity_was_set() constant 547 pub const fn trigger_type_was_set(&self) -> bool { in trigger_type_was_set() constant 555 pub const fn trigger_type(&self) -> IrqLineStatus { in trigger_type() constant 561 pub const fn set_trigger_type(&mut self, trigger: IrqLineStatus) { in set_trigger_type() constant 568 pub const fn is_level_type(&self) -> bool { in is_level_type() constant 578 pub const fn is_single_target(&self) -> bool { in is_single_target() constant [all …]
|
H A D | msi.rs | 33 pub const fn new(address: u64, data: u32) -> Self { in new() constant 42 pub const fn new_lo_hi(address_lo: u32, address_hi: u32, data: u32) -> Self { in new_lo_hi() constant 51 pub const fn address(&self) -> u64 { in address() constant 55 pub const fn new_zeroed() -> Self { in new_zeroed() constant 93 pub const fn new( in new() constant
|
H A D | dummychip.rs | 35 pub const fn new() -> Self { in new() constant 84 pub const fn new() -> Self { in new() constant
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | device_number.rs | 27 pub const fn new(x: u32) -> Self { in new() constant 30 pub const fn data(&self) -> u32 { in data() constant 44 pub const fn new(major: Major, minor: u32) -> Self { in new() constant 50 pub const fn major(&self) -> Major { in major() constant 54 pub const fn minor(&self) -> u32 { in minor() constant 58 pub const fn data(&self) -> u32 { in data() constant
|
/DragonOS/kernel/src/time/ |
H A D | mod.rs | 214 pub const fn from_micros_const(micros: i64) -> Instant { in from_micros_const() constant 226 pub const fn from_millis_const(millis: i64) -> Instant { in from_millis_const() constant 247 pub const fn millis(&self) -> i64 { in millis() constant 253 pub const fn micros(&self) -> i64 { in micros() constant 259 pub const fn secs(&self) -> i64 { in secs() constant 265 pub const fn total_millis(&self) -> i64 { in total_millis() constant 270 pub const fn total_micros(&self) -> i64 { in total_micros() constant 326 pub const fn from_micros(micros: u64) -> Duration { in from_micros() constant 331 pub const fn from_millis(millis: u64) -> Duration { in from_millis() constant 338 pub const fn from_secs(secs: u64) -> Duration { in from_secs() constant [all …]
|
H A D | jiffies.rs | 25 pub const fn sh_div(nom: u32, den: u32, lsh: u32) -> u32 { in sh_div() constant
|
/DragonOS/kernel/crates/unified-init/src/ |
H A D | lib.rs | 15 pub const fn new( in new() constant 28 pub const fn name(&self) -> &'static str { in name() constant
|
/DragonOS/kernel/src/init/ |
H A D | cmdline.rs | 48 pub const fn new(name: &'static str, ty: KCmdlineParamType) -> Self { in new() constant 58 pub const fn default_str(mut self, default_str: &'static str) -> Self { in default_str() constant 63 pub const fn default_bool(mut self, default_bool: bool) -> Self { in default_bool() constant 68 pub const fn inv(mut self, inv: bool) -> Self { in inv() constant 73 pub const fn build_early_kv(self) -> Option<KernelCmdlineEarlyKV> { in build_early_kv() constant 87 pub const fn build(self) -> Option<KernelCmdlineParameter> { in build() constant 236 const fn new() -> Self { in new() constant
|
/DragonOS/kernel/src/sched/ |
H A D | completion.rs | 19 pub const fn new() -> Self { in new() constant 149 pub const fn new() -> Self { in new() constant
|
/DragonOS/kernel/crates/crc/src/tables/ |
H A D | crc64.rs | 10 pub const fn new(poly: u64, table: [u64; 256]) -> Self { in new() constant
|
/DragonOS/kernel/crates/klog_types/src/ |
H A D | lib.rs | 60 pub const fn zeroed() -> Self { in zeroed() constant 172 pub const fn new() -> Self { in new() constant 229 pub const fn new(capacity: usize) -> Self { in new() constant
|
/DragonOS/kernel/src/driver/irqchip/ |
H A D | riscv_intc.rs | 175 pub const fn riscv_intc_hwirq_to_virq(hwirq: HardwareIrqNumber) -> Option<IrqNumber> { in riscv_intc_hwirq_to_virq() constant 185 pub const fn riscv_intc_virq_to_hwirq(virq: IrqNumber) -> Option<HardwareIrqNumber> { in riscv_intc_virq_to_hwirq() constant
|
/DragonOS/kernel/src/mm/ |
H A D | no_init.rs | 54 pub const fn new() -> Self { in new() constant 101 pub const fn new() -> Self { in new() constant
|
H A D | percpu.rs | 82 pub const fn define_lazy() -> Lazy<Self> { in define_lazy() constant
|
/DragonOS/kernel/src/driver/tty/virtual_terminal/ |
H A D | console_map.rs | 121 pub const fn new(map_type: TranslationMapType) -> Self { in new() constant
|
/DragonOS/kernel/crates/rust-slabmalloc/src/ |
H A D | sc.rs | 18 const fn cmin(a: usize, b: usize) -> usize { in cmin() constant 92 pub const fn new(size: usize) -> SCAllocator<'a, P> { in new() constant
|
/DragonOS/kernel/src/arch/x86_64/process/ |
H A D | table.rs | 39 const fn new() -> Self { in new() constant
|
/DragonOS/kernel/src/smp/cpu/ |
H A D | mod.rs | 58 const fn new() -> Self { in new() constant 69 pub const fn thread(&self) -> &Option<Arc<ProcessControlBlock>> { in thread() constant
|
/DragonOS/kernel/src/driver/open_firmware/ |
H A D | fdt.rs | 37 pub const fn new() -> Self { in new() constant 58 const fn new() -> Self { in new() constant
|