Lines Matching full:rtc

13 /* The RTC allows to set/get offset for correction */
15 /* The RTC allows to set/read an alarm */
17 /* The RTC can wake-up the platform through alarm */
60 struct rtc { struct
68 * struct optee_rtc_alarm - The RTC alarm
81 * @RTC_WAIT_ALARM_RESET: Reset the wait for the RTC alarm
82 * @RTC_WAIT_ALARM_ALARM_OCCURRED: The RTC alarm occurred
83 * @RTC_WAIT_ALARM_CANCELED: The wait for the RTC alarm was canceled
92 * struct rtc_ops - The RTC device operations
94 * @get_time: Get the RTC time.
95 * @set_time: Set the RTC time.
96 * @get_offset: Get the RTC offset.
97 * @set_offset: Set the RTC offset
98 * @read_alarm: Read the RTC alarm
99 * @set_alarm: Set the RTC alarm
100 * @enable_alarm: Enable the RTC alarm
101 * @wait_alarm: Wait for the RTC alarm
102 * @cancel_wait: Cancel the wait for the RTC alarm
106 TEE_Result (*get_time)(struct rtc *rtc, struct optee_rtc_time *tm);
107 TEE_Result (*set_time)(struct rtc *rtc, struct optee_rtc_time *tm);
108 TEE_Result (*get_offset)(struct rtc *rtc, long *offset);
109 TEE_Result (*set_offset)(struct rtc *rtc, long offset);
110 TEE_Result (*read_alarm)(struct rtc *rtc, struct optee_rtc_alarm *alrm);
111 TEE_Result (*set_alarm)(struct rtc *rtc, struct optee_rtc_alarm *alrm);
112 TEE_Result (*enable_alarm)(struct rtc *rtc, bool enable);
113 TEE_Result (*wait_alarm)(struct rtc *rtc,
115 TEE_Result (*cancel_wait)(struct rtc *rtc);
116 TEE_Result (*set_alarm_wakeup_status)(struct rtc *rtc, bool status);
120 extern struct rtc *rtc_device;
122 /* Register a RTC device as the system RTC */
123 void rtc_register(struct rtc *rtc);
143 * rtc_timecmp() - Compare two RTC time structures
144 * @a: First RTC time
145 * @b: Second RTC time
288 static inline void rtc_register(struct rtc *rtc __unused) {} in rtc_register()