Home
last modified time | relevance | path

Searched refs:downcast_ref (Results 1 – 19 of 19) sorted by relevance

/DragonOS/kernel/src/debug/kprobe/
H A Dtest.rs15 let pt_regs = regs.as_any().downcast_ref::<TrapFrame>().unwrap(); in pre_handler()
23 let pt_regs = regs.as_any().downcast_ref::<TrapFrame>().unwrap(); in post_handler()
31 let pt_regs = regs.as_any().downcast_ref::<TrapFrame>().unwrap(); in fault_handler()
53 let pt_regs = regs.as_any().downcast_ref::<TrapFrame>().unwrap(); in kprobe_test()
/DragonOS/kernel/crates/intertrait/macros/src/
H A Dgen_caster.rs18 |from| from.downcast_ref::<#ty>().unwrap(), in generate_caster()
28 |from| from.downcast_ref::<#ty>().unwrap(), in generate_caster()
/DragonOS/kernel/src/filesystem/devfs/
H A Dmod.rs142 .downcast_ref::<LockedDevFSInode>() in register_device()
169 .downcast_ref::<LockedDevFSInode>() in register_device()
210 .downcast_ref::<LockedDevFSInode>() in unregister_device()
223 .downcast_ref::<LockedDevFSInode>() in unregister_device()
590 .downcast_ref::<LockedDevFSInode>()
596 .downcast_ref::<DevFS>()
/DragonOS/kernel/src/filesystem/procfs/
H A Dmod.rs377 .downcast_ref::<LockedProcFSInode>() in new()
390 .downcast_ref::<LockedProcFSInode>() in new()
421 .downcast_ref::<LockedProcFSInode>() in register_pid()
653 .downcast_ref::<LockedProcFSInode>() in link()
810 .downcast_ref::<LockedProcFSInode>() in procfs_register_pid()
813 let procfs: &ProcFS = fs.as_any_ref().downcast_ref::<ProcFS>().unwrap(); in procfs_register_pid()
827 .downcast_ref::<LockedProcFSInode>() in procfs_unregister_pid()
830 let procfs: &ProcFS = fs.as_any_ref().downcast_ref::<ProcFS>().unwrap(); in procfs_unregister_pid()
/DragonOS/kernel/src/arch/x86_64/driver/apic/
H A Dioapic.rs499 .downcast_ref::<IoApicChipData>() in irq_mask()
530 .downcast_ref::<IoApicChipData>() in irq_set_type()
558 .downcast_ref::<IoApicChipData>() in irq_set_affinity()
609 .downcast_ref::<IoApicChipData>() in irqchip_state()
643 .downcast_ref::<IoApicChipData>() in irq_disable()
H A Dlapic_vector.rs90 let apicd = chip_data.ref_any().downcast_ref::<ApicChipData>().unwrap(); in irq_compose_msi_msg()
102 .downcast_ref::<ApicChipData>() in retrigger()
/DragonOS/kernel/src/filesystem/vfs/
H A Dfile.rs584 let inode = self.inode.downcast_ref::<SocketInode>().unwrap(); in add_epoll()
590 let inode = self.inode.downcast_ref::<LockedPipeInode>().unwrap(); in add_epoll()
608 let inode = self.inode.downcast_ref::<SocketInode>().unwrap(); in remove_epoll()
614 let inode = self.inode.downcast_ref::<LockedPipeInode>().unwrap(); in remove_epoll()
618 let inode = self.inode.downcast_ref::<EventFdInode>(); in remove_epoll()
624 .downcast_ref::<PerfEventInode>() in remove_epoll()
H A Dmod.rs587 pub fn downcast_ref<T: IndexNode>(&self) -> Option<&T> { in downcast_ref() method
588 return self.as_any_ref().downcast_ref::<T>(); in downcast_ref()
/DragonOS/kernel/src/driver/irqchip/
H A Driscv_sifive_plic.rs264 .downcast_ref::<PlicChipData>() in irq_unmask()
287 .downcast_ref::<PlicChipData>() in irq_mask()
362 .downcast_ref::<PlicChipData>() in irq_set_affinity()
592 .downcast_ref::<PlicChipData>() in map()
/DragonOS/kernel/src/driver/tty/pty/
H A Dunix98pty.rs259 .downcast_ref::<MountFS>() in ptmx_open()
262 let fsinfo = fs.as_any_ref().downcast_ref::<DevPtsFs>().unwrap(); in ptmx_open()
/DragonOS/kernel/crates/intertrait/src/
H A Dlib.rs245 .and_then(|caster| caster.downcast_ref::<Caster<T>>()) in caster()
252 .and_then(|caster| caster.downcast_ref::<Caster<T>>()) in caster()
390 cast_ref: |from| from.downcast_ref::<TestStruct>().unwrap(), in create_test_caster()
/DragonOS/kernel/src/perf/
H A Dkprobe.rs70 let trap_frame = trap_frame.as_any().downcast_ref::<TrapFrame>().unwrap(); in call()
H A Dmod.rs319 .downcast_ref::<BpfPerfEvent>() in perf_event_output()
/DragonOS/kernel/src/filesystem/overlayfs/
H A Dmod.rs153 .and_then(|d| d.as_any().downcast_ref::<OverlayMountData>()) in make_overlayfs()
246 if let Some(ovl_inode) = inode.as_any_ref().downcast_ref::<OvlInode>() { in has_whiteout()
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_driver.rs110 .downcast_ref::<Ps2MouseDevice>(); in process_packet()
/DragonOS/kernel/src/arch/x86_64/driver/
H A Drtc.rs242 .downcast_ref::<CmosRtcDevice>() in read_time()
/DragonOS/kernel/src/filesystem/ramfs/
H A Dmod.rs358 .downcast_ref::<LockedRamFSInode>() in link()
/DragonOS/kernel/src/net/
H A Dsyscall.rs604 let socketinode = inode.as_any_ref().downcast_ref::<Arc<SocketInode>>(); in to_endpoint()
/DragonOS/kernel/src/filesystem/fat/
H A Dfs.rs1719 .downcast_ref::<LockedFATInode>() in move_to()