Lines Matching full:time
23 * get() - get the current time
25 * Returns the current time read from the RTC device. The driver
29 * @time: Place to put the time that is read
31 int (*get)(struct udevice *dev, struct rtc_time *time);
34 * set() - set the current time
36 * Sets the time in the RTC device. The driver can expect every
40 * @time: Time to write
42 int (*set)(struct udevice *dev, const struct rtc_time *time);
47 * This function resets the RTC to a known-good state. The time may
80 * dm_rtc_get() - Read the time from an RTC
83 * @time: Place to put the current time
86 int dm_rtc_get(struct udevice *dev, struct rtc_time *time);
89 * dm_rtc_set() - Write a time to an RTC
92 * @time: Time to write into the RTC
95 int dm_rtc_set(struct udevice *dev, struct rtc_time *time);
102 * After resetting the RTC the time should then be set to a known value by
208 * rtc_init() - Set up the real time clock ready for use
225 * rtc_calc_weekday() - Work out the weekday from a time
228 * It sets time->tm_wdaay to the correct day of the week.
230 * @time: Time to inspect. tm_wday is updated
233 int rtc_calc_weekday(struct rtc_time *time);
236 * rtc_to_tm() - Convert a time_t value into a broken-out time
244 * @time: Place to put the broken-out time
246 void rtc_to_tm(u64 time_t, struct rtc_time *time);
249 * rtc_mktime() - Convert a broken-out time into a time_t value
256 * @time: Broken-out time to convert
259 unsigned long rtc_mktime(const struct rtc_time *time);