Home
last modified time | relevance | path

Searched refs:RtcGeneralDevice (Results 1 – 6 of 6) sorted by relevance

/DragonOS/kernel/src/driver/rtc/
H A Dutils.rs6 use super::{sysfs::RtcGeneralDevice, RtcDevice};
14 pub fn kobj2rtc_general_device(kobj: Arc<dyn KObject>) -> Option<Arc<RtcGeneralDevice>> { in kobj2rtc_general_device() argument
H A Dsysfs.rs44 pub struct RtcGeneralDevice { struct
62 impl RtcGeneralDevice { argument
108 impl Drop for RtcGeneralDevice { implementation
114 impl RtcDevice for RtcGeneralDevice { implementation
120 impl Device for RtcGeneralDevice { implementation
187 impl KObject for RtcGeneralDevice { implementation
254 ) -> Arc<RtcGeneralDevice> { in rtc_general_device_create() argument
255 let dev = RtcGeneralDevice::new(priority.unwrap_or_default()); in rtc_general_device_create()
334 let rtc_device: Arc<RtcGeneralDevice> = in show()
H A Dmod.rs11 use self::sysfs::RtcGeneralDevice;
22 static GLOBAL_DEFAULT_RTC: RwLock<Option<Arc<RtcGeneralDevice>>> = RwLock::new(None);
25 fn global_default_rtc() -> Option<Arc<RtcGeneralDevice>> { in global_default_rtc()
30 fn register_default_rtc(general_device: Arc<RtcGeneralDevice>) -> bool { in register_default_rtc()
H A Dinterface.rs6 use super::{global_default_rtc, sysfs::RtcGeneralDevice, utils::kobj2rtc_device, RtcTime};
9 pub fn rtc_read_time(general_dev: &Arc<RtcGeneralDevice>) -> Result<RtcTime, SystemError> { in rtc_read_time()
H A Dclass.rs20 use super::{interface::rtc_read_time, register_default_rtc, sysfs::RtcGeneralDevice};
84 pub(super) fn rtc_register_device(dev: &Arc<RtcGeneralDevice>) -> Result<(), SystemError> { in rtc_register_device()
92 fn rtc_hctosys(dev: &Arc<RtcGeneralDevice>) { in rtc_hctosys() argument
H A Drtc_cmos.rs12 sysfs::{rtc_general_device_create, RtcGeneralDevice},
37 static CMOS_RTC_GENERAL_DEVICE: RwLock<Option<Arc<RtcGeneralDevice>>> = RwLock::new(None);
93 let general_rtc_device: Arc<RtcGeneralDevice> = rtc_general_device_create(&dev, None); in probe()