Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 72) sorted by relevance

123

/DragonOS-0.1.9/build-scripts/kernel_build/src/kconfig/
Dmod.rs18 let mut r = Vec::new(); in build() localVariable
21 Self::dfs(m, &mut r); in build()
26 let features = ConfigParser::parse_d_configs(&r); in build()
61 fn dfs(module: &Module, r: &mut Vec<PathBuf>) { in dfs()
73 Self::dfs(m, r); in dfs()
77 r.push(d_config_path); in dfs()
90 let r = Self::include(&cfg_content); in parse_kernel_config() localVariable
92 return r; in parse_kernel_config()
97 let mut r = Vec::new(); in parse_d_configs() localVariable
99 r.extend(Self::parse_d_config(d_config)); in parse_d_configs()
[all …]
/DragonOS-0.1.9/kernel/src/driver/base/device/
Ddd.rs71 let mut r = Ok(false); in do_device_attach() localVariable
93 let r = self.do_device_attach_driver(&driver, &mut data); in do_device_attach() localVariable
94 if unlikely(r.is_err()) { in do_device_attach()
98 if r.unwrap() == true { in do_device_attach()
106 r = Ok(true); in do_device_attach()
127 return r; in do_device_attach()
149 let r = bus.match_device(&data.dev, driver); in do_device_attach_driver() localVariable
151 if let Err(e) = r { in do_device_attach_driver()
162 if r.unwrap() == false { in do_device_attach_driver()
209 let r = driver_manager().driver_sysfs_add(dev); in device_bind_driver() localVariable
[all …]
/DragonOS-0.1.9/kernel/src/libs/
Dstring.c41 int strcmp(const char *l, const char *r) in strcmp() argument
43 for (; *l == *r && *l; l++, r++) in strcmp()
45 return *(unsigned char *)l - *(unsigned char *)r; in strcmp()
Drwlock.rs123 let r = self.inner_try_read(); in try_read() localVariable
124 if r.is_none() { in try_read()
127 return r; in try_read()
213 let r = self.inner_try_write(); in try_write() localVariable
214 if r.is_none() { in try_write()
218 return r; in try_write()
227 let r = self.inner_try_write().map(|mut g| { in try_write_irqsave() localVariable
231 if r.is_none() { in try_write_irqsave()
235 return r; in try_write_irqsave()
290 let r = self.inner_try_upgradeable_read(); in try_upgradeable_read() localVariable
[all …]
Donce.rs35 let r = self.inner.compare_exchange( in call_once() localVariable
41 if r.is_err() { in call_once()
/DragonOS-0.1.9/kernel/src/debug/klog/
Dmm.rs66 let r = __MM_ALLOCATOR_LOG_CHANNEL.buf.push(log); in log() localVariable
67 if let Err(r) = r { in log()
72 log = r.into_inner(); in log()
/DragonOS-0.1.9/tools/debugging/logmonitor/src/backend/
Dmod.rs28 let r = Arc::new(Self { in new() localVariable
36 r.data.lock().unwrap().kmem_path = Some(PathBuf::from(&command_line_args.kmem)); in new()
40 let instance = r.clone(); in new()
42 let dt = r.data.clone(); in new()
49 *r.main_thread.write().unwrap() = Some(main_thread); in new()
51 return r; in new()
/DragonOS-0.1.9/kernel/src/driver/acpi/
Dsysfs.rs160 let mut r = Self { in new() localVariable
168 if attr.name == r.name { in new()
169 r.instance = attr.instance; in new()
173 r.instance += 1; in new()
174 if r.instance > ACPI_MAX_TABLE_INSTANCES as isize { in new()
175 kwarn!("too many table instances. name: {}", r.name); in new()
191 if r.instance > 1 || (r.instance == 1 && has_multiple_instances) { in new()
192 r.filename = format!("{}{}", r.name, r.instance); in new()
194 r.filename = r.name.clone(); in new()
197 let result = Arc::new(r); in new()
/DragonOS-0.1.9/kernel/src/arch/riscv64/mm/
Dmod.rs136 let r = KERNEL_BEGIN_VA + (phys - KERNEL_BEGIN_PA); in phys_2_virt() localVariable
137 return Some(r); in phys_2_virt()
149 let r = KERNEL_BEGIN_PA + (virt - KERNEL_BEGIN_VA); in virt_2_phys() localVariable
150 return Some(r); in virt_2_phys()
154 let r = PhysAddr::new(paddr); in virt_2_phys() localVariable
155 return Some(r); in virt_2_phys()
163 let r = ((ppn & ((1 << 54) - 1)) << 10) | page_flags; in make_entry() localVariable
164 return r; in make_entry()
/DragonOS-0.1.9/kernel/src/mm/allocator/
Dkernel_allocator.rs87 let r = self.local_alloc_zeroed(layout); in alloc() localVariable
91 Some(r as usize), in alloc()
97 return r; in alloc()
103 let r = self.local_alloc_zeroed(layout); in alloc_zeroed() localVariable
108 Some(r as usize), in alloc_zeroed()
114 return r; in alloc_zeroed()
Dbump.rs163 let r = (PhysAddr(res_page_phys), count); in allocate() localVariable
164 self.ensure_early_mapping(r.0, r.1); in allocate()
165 return Some(r); in allocate()
/DragonOS-0.1.9/kernel/src/mm/
Ducontext.rs465 for r in regions { in munmap()
466 let r = r.lock().region; in munmap() localVariable
467 let r = self.mappings.remove_vma(&r).unwrap(); in munmap() localVariable
468 let intersection = r.lock().region().intersect(&to_unmap).unwrap(); in munmap()
469 let (before, r, after) = r.extract(intersection).unwrap(); in munmap()
483 r.unmap(&mut self.user_mapper.utable, &mut flusher); in munmap()
518 for r in regions { in mprotect()
520 let r = r.lock().region().clone(); in mprotect() localVariable
521 let r = self.mappings.remove_vma(&r).unwrap(); in mprotect() localVariable
523 let intersection = r.lock().region().intersect(&region).unwrap(); in mprotect()
[all …]
Dc_adapter.rs141 let r = mmio_pool().create_mmio(size as usize); in rs_mmio_create() localVariable
142 if r.is_err() { in rs_mmio_create()
143 return r.unwrap_err().to_posix_errno(); in rs_mmio_create()
145 let space_guard = r.unwrap(); in rs_mmio_create()
/DragonOS-0.1.9/kernel/src/driver/base/platform/
Dmod.rs91 let r = bus_register(paltform_bus.clone() as Arc<dyn Bus>); in platform_bus_init() localVariable
92 if r.is_err() { in platform_bus_init()
95 return r; in platform_bus_init()
101 return r; in platform_bus_init()
/DragonOS-0.1.9/tools/debugging/logmonitor/src/backend/monitor/
Dmm.rs53 let r = Self { in new() localVariable
63 let r = Arc::new(r); in new() localVariable
65 let self_ref = Arc::downgrade(&r); in new()
66 let r_ptr = r.as_ref() as *const Self as *mut Self; in new()
70 return r; in new()
197 let r = kmem_file in process_logs() localVariable
200 assert!(r == buf.len()); in process_logs()
/DragonOS-0.1.9/kernel/src/driver/base/
Dkobject.rs132 let r = attr.show(kobj, buf).map_err(|e| { in show() localVariable
140 return r; in show()
149 let r = attr.store(kobj, buf).map_err(|e| { in store() localVariable
157 return r; in store()
192 let r = Self::create_dir(kobj.clone()); in add_kobj() localVariable
194 if let Err(e) = r { in add_kobj()
219 let r = sysfs_instance().create_groups(&kobj, groups); in create_dir() localVariable
220 if let Err(e) = r { in create_dir()
Dkset.rs48 let r = Self { in new() localVariable
56 let r = Arc::new(r); in new() localVariable
59 let p = r.as_ref() as *const Self as *mut Self; in new()
60 (*p).self_ref = Arc::downgrade(&r); in new()
63 return r; in new()
/DragonOS-0.1.9/kernel/src/driver/input/serio/
Dmod.rs27 let r = bus_register(serio_bus.clone() as Arc<dyn Bus>); in serio_bus_init() localVariable
30 return r; in serio_bus_init()
/DragonOS-0.1.9/kernel/src/time/
Dtimekeep.rs21 let r = rtc_time.get(); in ktime_get_real() localVariable
23 if let Err(e) = r { in ktime_get_real()
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/
Dfbmem.rs87 let r = Self { in new() localVariable
90 let r = Arc::new(r); in new() localVariable
91 r.subsystem() in new()
92 .set_class(Some(Arc::downgrade(&r) as Weak<dyn Class>)); in new()
94 return r; in new()
217 let r = Arc::new(Self { in new() localVariable
234 let mut inner_guard = r.inner.lock(); in new()
236 inner_guard.devfs_metadata.raw_dev = r.do_device_number(&inner_guard); in new()
239 return r; in new()
/DragonOS-0.1.9/kernel/src/exception/
Dirqdomain.rs201 let r = domain.ops.map(&domain, hwirq, irq); in domain_associate() localVariable
202 if let Err(e) = r { in domain_associate()
247 let mut r = Ok(()); in activate_irq() localVariable
249 r = self.do_activate_irq(Some(irq_data.clone()), reserve); in activate_irq()
252 if !r.is_ok() { in activate_irq()
256 return r; in activate_irq()
265 let mut r = Ok(()); in do_activate_irq() localVariable
274 r = self.do_activate_irq(Some(parent_data), reserve); in do_activate_irq()
277 if r.is_err() { in do_activate_irq()
287 return r; in do_activate_irq()
[all …]
Dmanage.rs768 let r; in irq_do_set_affinity() localVariable
770 r = chip.irq_set_affinity(irq_data, &cpumask, force); in irq_do_set_affinity()
772 r = chip.irq_set_affinity(irq_data, &cpumask, force); in irq_do_set_affinity()
778 if let Ok(rs) = r { in irq_do_set_affinity()
790 ret = Err(r.unwrap_err()); in irq_do_set_affinity()
866 let r = irq_domain_manager().activate_irq(irq_data, false); in __irq_startup_managed() localVariable
867 if r.is_err() { in __irq_startup_managed()
913 let r = chip.irq_set_type(desc_inner_guard.irq_data(), trigger_type); in do_set_irq_trigger() localVariable
915 if let Ok(rs) = r { in do_set_irq_trigger()
948 r in do_set_irq_trigger()
[all …]
/DragonOS-0.1.9/kernel/src/driver/serial/serial8250/
Dserial8250_pio.rs82 let r = Self { in new() localVariable
89 if let Err(e) = r.check_baudrate(&baudrate) { in new()
93 return Ok(r); in new()
97 let r = self in init() localVariable
100 if r.is_err() { in init()
/DragonOS-0.1.9/kernel/src/filesystem/sysfs/
Dfile.rs155 let r = parent.add_file( in add_file_with_mode() localVariable
163 if let Err(e) = r { in add_file_with_mode()
185 let r = parent.remove(attr.name()); in remove_file() localVariable
186 if unlikely(r.is_err()) { in remove_file()
221 let r = parent.remove(attr.name()); in remove_bin_file() localVariable
222 if unlikely(r.is_err()) { in remove_bin_file()
267 let r = parent.add_file( in add_bin_file_with_mode() localVariable
275 if let Err(e) = r { in add_bin_file_with_mode()
/DragonOS-0.1.9/kernel/src/process/
Dexit.rs91 let r = do_wait(&mut kwo)?; in kernel_wait4() localVariable
103 return Ok(r); in kernel_wait4()
143 let r = do_waitpid(child_pcb, kwo); in do_wait() localVariable
144 if r.is_some() { in do_wait()
145 return r.unwrap(); in do_wait()

123